What are the easy algorithms to implement Voronoi diagram?
I couldn't find any algorithm specially in pseudo form. Please share some links of Voronoi diagram algorithm, tutorial etc.
What are the easy algorithms to implement Voronoi diagram?
I couldn't find any algorithm specially in pseudo form. Please share some links of Voronoi diagram algorithm, tutorial etc.
The Wikipedia page (http://en.wikipedia.org/wiki/Voronoi_diagram) has an Algorithms section with links to algorithms for implementing Voronoi diagrams.
The most effecient algorithm to construct a voronoi diagram is Fortune's algorithm. It runs in O(n log n).
Here is a link to his reference implementation in C.
Personally I really like the python implementation by Bill Simons and Carson Farmer, since I found it easier to extend.
Check brute-force solution presented with pseudo-code by Richard Franks in his answer on the question How do I derive a Voronoi diagram given its point set and its Delaunay triangulation?