GATE CSE Minimum Spanning Trees and Shortest Paths PYQs
GATE tests the fundamental invariant properties of Minimum Spanning Trees (MSTs) and Shortest Paths (SPs) under edge-weight modifications. Questions assess whet… Read the guide
- Questions
- 1
- Asked
- 2025
- Total marks
- 2
- Marks / paper
- 0.1
1 GATE CSE Minimum Spanning Trees and Shortest Paths PYQs with solutions, from Algorithms. Browse all GATE CSE PYQs.
Questions
Every official paper that asked this topic, newest first.
What GATE tests in Minimum Spanning Trees and Shortest Paths
Concepts, patterns, formulas and traps distilled from past papers.
GATE tests the fundamental invariant properties of Minimum Spanning Trees (MSTs) and Shortest Paths (SPs) under edge-weight modifications. Questions assess whether structural properties—such as the fixed number of edges in any spanning tree () versus variable edge counts in different path alternatives—preserve or alter optimal subgraphs when weights undergo transformations like additive shifts or scaling.
Core concepts
- Fixed edge count property of Spanning Trees (|V| - 1 edges)
- Variable edge/hop count across competing paths between vertex pairs
- Preservation of MST under uniform addition, strictly monotonic increasing functions, or scaling
- Sensitivity of shortest path algorithms (Dijkstra/Bellman-Ford) to additive shifts penalizing multi-hop paths
Recurring question patterns
Weight Transformation Invariance on MST and Shortest Paths
RareMCQ2 marks2025Evaluating whether optimal structures (MST, SP) remain optimal after applying uniform arithmetic operations (e.g., adding a positive constant, multiplying by a positive constant, squaring) to all edge weights.
Formulas GATE uses
Updated Weight of a Spanning Tree under Additive Shift
Used to demonstrate that all spanning trees shift by the exact same constant , strictly preserving relative weight rankings and MST optimality.
Updated Weight of a Path under Additive Shift
Used to determine path length changes when different candidate paths have unequal hop counts .
Examiner traps in Minimum Spanning Trees and Shortest Paths
- Assuming shortest paths are preserved under uniform positive addition because all edge weights remain positive
- Failing to recognize that all spanning trees in a graph with |V| vertices always have exactly |V|-1 edges
- Confusing additive shifts (w(e) + c) which break shortest paths with positive multiplicative scaling (c · w(e)) which preserves both MSTs and shortest paths
How questions are asked
- Conceptual invariant checking under edge weight transformations
- Statement verification / Multiple Choice selection on graph optimization properties
Paper trends
Direct conceptual MCQs focusing on structural proof-based invariants of graph algorithms without requiring extensive numerical computation.
2025
Difficulty notes
Easy questions test direct theoretical properties (e.g., additive constant preservation). Medium items introduce non-linear transformations () or ask for counterexample graphs. Hard items combine transformations with algorithmic behaviors (e.g., Dijkstra's greedy choice failure with negative additions or tie-breaking behaviors).