Question DSA-GRAPH-0037
EasyWhich data structure does Kruskal's algorithm use to check whether an edge would create a cycle?
- A.
Disjoint-set union (union–find)
- B.
A queue
- C.
A max-heap only
- D.
A stack
Sign up free to see the answer and a step-by-step explanation.