Question DSA-GRDY-0076
HardWhat is the greedy choice in Kruskal's algorithm?
- A.
Add the edge closest to the start vertex
- B.
Add edges in input order
- 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
Greedy question
What is the greedy choice in Kruskal's algorithm?
Add the edge closest to the start vertex
Add edges in input order
Sign up free to see the answer and a step-by-step explanation.
Add the most expensive edge
Add the cheapest edge that doesn't create a cycle