Rectilinear minimum spanning tree

From Wikipedia, the free encyclopedia

Example of rectilinear minimum spanning tree from random points.

In graph theory, the rectilinear minimum spanning tree (RMST) of a set of n points in the plane (or more generally, in ) is a minimum spanning tree of that set, where the weight of the edge between each pair of points is the rectilinear distance between those two points.

Planar case

By explicitly constructing the complete graph on n vertices, which has n(n-1)/2 edges, a rectilinear minimum spanning tree can be found using existing algorithms for finding a minimum spanning tree. In particular, using Prim's algorithm with an adjacency matrix yields time complexity O(n2).

In the planar case, more efficient algorithms exist. They are based on the idea that connections may only happen with the nearest neighbour of a point in each octant - that is, each of the eight regions of the plane delimited by the coordinate axis from this point and their bisectors.

The resulting graph has only a linear number of edges and can be constructed in O(n log n) using a divide and conquer algorithm[1] or a sweep line algorithm.[2]

Applications

See also

References

Related Articles

Wikiwand AI