Is it important to learn first about Disjoint Set for Kruskal and Prim’s Algo because I am unable to understand that and I thought of reading it later.
Is it important to learn first about Disjoint Set for Kruskal and Prim's Algo because I am unable to understand that and I thought of reading it later
hello @cbcao263
kruskal involves cycle detection which we can do easily by using dsu . so i think u should study dsu before kruskals.
it is not tough topic give some time do dry run and practice some problems.
you will get it