Let G be an undirected connected graph with distinct edge weights. Let be the edge with maximum weight and the edge with minimum weight. Which of the following statements is false?
GATE CSE · Algorithms
Practice problems for Minimum Spanning Tree in Algorithms.
71 questions · 3 PYQs · 17 AI practice · GATE CSE 2027
Let G be an undirected connected graph with distinct edge weights. Let be the edge with maximum weight and the edge with minimum weight. Which of the following statements is false?
The correct matching for the following pairs is
Choose the correct alternatives (more than one may be correct) and write the corresponding letters only: Kruskal's algorithm for finding a minimum spanning tree of a weighted graph G with n vertices and m edges has the time complexity of:
Consider a weighted connected graph G. A new edge e with weight w is added to G, creating a cycle. Which of the following correctly describes how to update the MST T of G?
Consider the following weighted undirected graph.
[IMAGE: Undirected weighted graph with 6 vertices {1, 2, 3, 4, 5, 6}. Edges: 1-2 weight 10, 1-6 weight 8, 2-3 weight 5, 2-4 weight 7, 3-4 weight 3, 4-5 weight 2, 4-6 weight 6, 5-6 weight 9]
Apply Kruskal's algorithm. What is the weight of the MST?
A graph G has n vertices and the following n-1 edge weights (one spanning tree exists): 1, 2, 4, 8, 16, ..., 2^(n-2). All edge weights are distinct powers of 2. How many spanning trees of G are MSTs?
Consider a graph G with V vertices where every edge has the same weight w. How many distinct MSTs does G have?
Kruskal's algorithm builds an MST by greedily adding edges in non-decreasing order of weight, skipping edges that form a cycle. Which data structure is used to efficiently detect cycle formation during Kruskal's algorithm?
Which of the following properties defines a Minimum Spanning Tree (MST) of a connected, undirected, weighted graph G = (V, E)?
Consider the following weighted undirected graph.
[IMAGE: Undirected weighted graph with 5 vertices {u, v, w, x, y}. Edges: u-v weight 2, u-w weight 3, v-w weight 1, v-x weight 6, w-x weight 4, w-y weight 8, x-y weight 5]
If the weight of edge (v, x) is decreased from 6 to 0, does the MST change? If yes, which edge is removed from the original MST and which is added?
The cycle property of MSTs states: for any cycle C in graph G, the maximum weight edge in C does not belong to any MST (assuming distinct weights). This property is used by which algorithm to justify its correctness?
Kruskal's algorithm uses which data structure?
In Prim's algorithm implemented with a binary min-heap, the key value key[v] for a non-MST vertex v represents:
Consider the following weighted undirected graph.
[IMAGE: Undirected weighted graph with 8 vertices {1, 2, 3, 4, 5, 6, 7, 8}. Edges: 1-2 weight 4, 1-8 weight 8, 2-3 weight 9, 2-8 weight 11, 3-4 weight 7, 3-6 weight 4, 3-9 weight 2, 4-5 weight 9, 4-6 weight 14, 5-6 weight 10, 6-7 weight 2, 7-8 weight 1, 7-9 weight 6, 8-9 weight 7]
Using Prim's algorithm starting from vertex 1, what is the fourth vertex added to the MST?
Consider the following weighted graph.
[IMAGE: Undirected weighted graph with 6 vertices {A, B, C, D, E, F}. Edges: A-B weight 5, A-C weight 3, B-C weight 4, B-D weight 6, B-E weight 9, C-D weight 2, C-F weight 8, D-E weight 7, E-F weight 1]
Run Prim's algorithm starting from vertex A. What is the total weight of the MST?
Which of the following statements correctly distinguish Prim's algorithm from Kruskal's algorithm?
For which of the following graphs are Prim's and Kruskal's algorithms guaranteed to produce the same MST?
Consider the following graph.
[IMAGE: Undirected weighted graph with 7 vertices {a, b, c, d, e, f, g}. Edges: a-b weight 4, a-h weight 8, b-c weight 8, b-h weight 11, c-d weight 7, c-f weight 4, c-i weight 2, d-e weight 9, d-f weight 14, e-f weight 10, f-g weight 2, g-h weight 1, g-i weight 6, h-i weight 7. Note: This is the classic CLRS MST example with vertices {a,b,c,d,e,f,g,h,i} - 9 vertices.]
What is the total weight of the MST of this graph?
Which algorithm uses a greedy approach to find Minimum Spanning Tree?
Kruskal's algorithm is applied to the following graph.
[IMAGE: Undirected weighted graph with 7 vertices {1, 2, 3, 4, 5, 6, 7}. Edges: 1-2 weight 7, 1-4 weight 5, 2-3 weight 8, 2-4 weight 9, 2-5 weight 7, 3-5 weight 5, 4-5 weight 15, 4-6 weight 6, 5-6 weight 8, 5-7 weight 9, 6-7 weight 11]
How many edges are rejected (skipped due to cycle formation) during Kruskal's algorithm?
Want unlimited AI-generated Minimum Spanning Tree questions?
Sign up free and practice with adaptive difficulty — Easy, Medium, Hard. New questions every session.
Start practising for free →