Consider the undirected graph below:

Using Prim's algorithm to construct a minimum spanning tree starting with node a, which one of the following sequences of edges represents a possible order in which the edges would be added to construct the minimum spanning tree?

This question was previously asked in
UGC NET Computer Science (Paper 2) 2020 Official Paper
View all UGC NET Papers >
  1. (a, b), (b, h), (g, h), (f, g), (c, f), (c, i), (c, d), (d, e) 
  2. (a, b), (b, h), (g, h), (g, i), (c, i), (c, f), (c, d), (d, e) 
  3. (a, b), (b, c), (c, i), (c, f), (f, g), (g, h), (c, d), (d, e) 
  4. (a, b), (g, h), (g, f), (c, f), (c, i), (f, e), (b, c), (d, e) 

Answer (Detailed Solution Below)

Option 3 : (a, b), (b, c), (c, i), (c, f), (f, g), (g, h), (c, d), (d, e) 
Free
UGC NET Paper 1: Held on 21st August 2024 Shift 1
50 Qs. 100 Marks 60 Mins

Detailed Solution

Download Solution PDF

The correct answer is option 1 and option 3.

Concept:

A minimum spanning tree (MST) or minimum weight spanning tree is a subset of the edges(V – 1 ) of a connected, edge-weighted undirected graph G(V, E) that connects all the vertices together, without any cycles and with the minimum possible total edge weight.

Key Points

 

The final sequence will be (a, b), (b, c), (c, i), (c, f), (f, g), (g, h), (c, d), (d, e) with a cost 37.  

Another final sequence is (a, b), (a, h), (g, h), (f, g), (c, f), (c, i), (c, d), (d, e) with a cost is 37(Two sequences possible ).

Latest UGC NET Updates

Last updated on Jul 7, 2025

-> The UGC NET Answer Key 2025 June was released on the official website ugcnet.nta.ac.in on 06th July 2025.

-> The UGC NET June 2025 exam will be conducted from 25th to 29th June 2025.

-> The UGC-NET exam takes place for 85 subjects, to determine the eligibility for 'Junior Research Fellowship’ and ‘Assistant Professor’ posts, as well as for PhD. admissions.

-> The exam is conducted bi-annually - in June and December cycles.

-> The exam comprises two papers - Paper I and Paper II. Paper I consists of 50 questions and Paper II consists of 100 questions. 

-> The candidates who are preparing for the exam can check the UGC NET Previous Year Papers and UGC NET Test Series to boost their preparations.

More Spanning Tree Questions

More Graphs/Spanning Tree and Shortest Paths Questions

Hot Links: teen patti customer care number teen patti gold new version teen patti refer earn teen patti palace teen patti vungo