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.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Graphs question
Which data structure does Kruskal's algorithm use to check whether an edge would create a cycle?
Disjoint-set union (union–find)
A queue
Sign up free to see the answer and a step-by-step explanation.
A max-heap only
A stack