C language implementation of PRIM algorithm
no vote
Primm (Prim) algorithm is a constructive algorithm. Set G= (V,E) is a has n a vertex of with right connected no to figure, T= (U,TE) is g of minimum generated tree, which u is t of vertex set, TE is t of side set, is by g constructed from starting vertex v starting of minimum generated tree t of steps following: (1) initial of U={v}, to v to other vertex of all side for candidate side; (2) repeated following steps (n-1) times, makes other (n-1) a vertex was joined to u in the: A. from candidate side in the pick right value minimum of side joined TE, set the side in V-U in the of vertex is k, will k joined u in the; b. investigation current V-U in the of all vertex j, modify candidate side, if side (k,j) of right value is less than original and vertex j associated of candidate side, is with side (k,j) replaced which as candidate side. This code implements the Prim algorithm. Code to run correctly.