Voronoi 图
Voronoi 图把每个点分配给最近的站点。移动站点,观察单元如何重塑;边界是垂直平分线。
6 分钟难度 2/3交互演示区域不展示广告。
Sites14Cells14Closest pair28.9 pxBoundaryperpendicular bisector
Every pixel takes the color of its nearest site. The dark boundaries are points equally close to two sites, so each edge is a perpendicular bisector. Add sites to create smaller cells; the diagram is the dual of the Delaunay triangulation.
你看到的是什么
1
每个站点拥有比到其他站点更近的区域。
2
单元边界是相邻站点对的垂直平分线。
3
Voronoi 单元回答最近邻查询,并出现在生长模型、地图和网格生成中。
为什么重要
Voronoi 图用于无线覆盖、设施规划、生态学、计算机图形学和机器学习。
复杂度与细节
暴力法把 P 个像素分配给 S 个站点,成本为 O(PS)。最优算法可在 O(S log S) 内构造。
常见问题
什么是 Voronoi 单元?+
它是所有到某个特定站点比到其他站点更近的点的集合。
它和 Delaunay 三角剖分有什么关系?+
Delaunay 三角剖分是 Voronoi 图的对偶图。两个站点共享一条 Voronoi 边,当且仅当它们在 Delaunay 中相连。