added code description for prims algorithm
parent
298036bcc8
commit
85895d1c41
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
APPROACH: We will have 3 arrays(key, mst and parent).
|
APPROACH:- We will have 3 arrays(key, mst and parent).
|
||||||
|
|
||||||
Significance of all three arrays:-
|
Significance of all three arrays:-
|
||||||
-> Key : This array holds the weight/ cost of the MST.
|
-> Key : This array holds the weight/ cost of the MST.
|
||||||
|
|
Loading…
Reference in New Issue