Groups
Category
Prim's algorithm builds a Minimum Spanning Tree (MST) by growing a tree from an arbitrary start vertex, always adding the lightest edge that connects the tree to a new vertex.
FloydโWarshall computes the shortest distances between all pairs of vertices in O(n^3) time using dynamic programming.