Question DSA-HEAP-0055
MediumWhich algorithm uses a priority queue to choose the next closest vertex?
- A.
Depth-first search
- B.
Kruskal's union–find only
- 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
Heaps and Priority Queues question
Which algorithm uses a priority queue to choose the next closest vertex?
Depth-first search
Kruskal's union–find only
Sign up free to see the answer and a step-by-step explanation.
Dijkstra's algorithm
Binary search