Computer Science · Graph Algorithms
Consider the following statements regarding algorithms used to compute Minimum Spanning Trees (MST): Statement 1: Kruskal's algorithm systematically builds an MST by globally sorting all edges in ascending order of weight and repeatedly selecting the smallest edge that does not form a cycle. Statement 2: Prim's algorithm sequentially expands an MST locally by starting from an arbitrary vertex and repeatedly adding the cheapest edge that connects a vertex already in the tree to a vertex outside the tree.
- 1Statement 1 is false, but Statement 2 is true.
- 2Both statements are true.✓
- 3Statement 1 is true, but Statement 2 is false.
- 4Both statements are false.
Correct answer
Both statements are true.
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Graph Algorithms?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Graph Algorithms