


Spanning tree - A spanning tree is the subgraph of an undirected connected graph. Along with the algorithm, we will also see the complexity, working, example, and implementation of prim's algorithm.īefore starting the main topic, we should discuss the basic and important terms such as spanning tree and minimum spanning tree. In this article, we will discuss the prim's algorithm.
