GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2025 set2

GATE 2025 set2 · CS · MCQ · 2 marks · Algorithms › Graph Algorithms

GATE 2025 set2 Computer Science and Information Technology question: Let G be an edge-weighted undirected graph with positive edge weights. Suppose a…

Let be an edge-weighted undirected graph with positive edge weights. Suppose a positive constant is added to the weight of every edge.

Which ONE of the following statements is TRUE about the minimum spanning trees (MSTs) and shortest paths (SPs) in before and after the edge weight update?

  1. (A)

    Every MST remains an MST, and every SP remains an SP.

  2. (B)

    MSTs need not remain MSTs, and every SP remains an SP.

  3. (C)

    Every MST remains an MST, and SPs need not remain SPs.

  4. (D)

    MSTs need not remain MSTs, and SPs need not remain SPs.

Show answer

Official answer: C

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion