Prim's Algorithm Adjacency List
Prim's Algorithm Adjacency List . Assume that vertices are represented as integers [1.|v|] and that g.e is a symmetric adjacency matrix where each g.e [u,v] contains the weight on edge (u,v) ∈ e, or 0 if there is no edge. As discussed in the previous post, in prim’s algorithm, two sets are maintained, one set contains list of vertices already included in mst, other set contains vertices not yet included. Prim (prime) algorithm for minimum spanning tree from www.programmersought.com As discussed in the previous post, in prim’s algorithm, two sets are maintained, one set contains list of vertices already included in mst, other set contains vertices not yet included. Let us understand the used terminology of prim's algorithm. C++ server side programming programming.