Prims
Prims is a term commonly associated with Prim's algorithm, a greedy method for computing a minimum spanning tree (MST) of a connected weighted undirected graph. The algorithm is named after Robert C. Prim, who described it in 1957. It starts from an arbitrary vertex and repeatedly adds the lightest edge that connects a vertex inside the growing tree to a vertex outside.
Two standard implementations exist. A simple version uses an adjacency matrix and maintains a set of included
Prim's algorithm has the property that, for a connected graph, it produces a minimum spanning tree. If
Applications of Prim's algorithm include network design, such as laying out cables or pipelines, and it is
History and usage: the method was introduced by Robert C. Prim in 1957, and it has since