Prim's algorithm
ALGORITHM
Jarnik algorithm; Prim-Jarnik algorithm; Prim-Jarnik's algorithm; Jarnik's algorithm; Prim-Jarník; DJP algorithm; Jarník algorithm; Jarník's algorithm; Jarníks algorithm; Jarniks algorithm; Prim-Jarník algorithm; Prim-Jarnik; Prim algorithm; Prim’s algorithm; Jarník-Prim; Prims algorithm
In computer science, Prim's algorithm (also known as Jarník's algorithm) is a greedy algorithm that finds a minimum spanning tree for a weighted undirected graph. This means it finds a subset of the edges that forms a tree that includes every vertex, where the total weight of all the edges in the tree is minimized.