The maximum value of such that the edge between the nodes and is included in every minimum spanning tree of the given graph is _________. (answer in integer)
GATE CSE 2025Algorithms › Graph AlgorithmsVerified
GATE CSE 2025 PYQ: The maximum value of x \text{x} x such that the edge between the nodes B \text{B} B and C \text{C} C is…
Answer
5
Approach
Use Kruskal's algorithm. Edges AC=1 and BD=3 are always selected first, leaving two components: {A,C} and {B,D}. The remaining edge connecting these components must be chosen. To force BC into every MST, BC must be strictly cheaper than the alternative crossing edge AD=6. Thus x < 6. Since x is an integer, the maximum value is 5. At x=6, AD and BC tie, so an MST can avoid BC.
The edge BC is forced into every MST only while it is strictly cheaper than the competing edge AD=6. Since x must be an integer, the maximum possible value is x=5. At x=6, a tie allows an MST that excludes BC.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.