GATE CS 2024 · Set-2 · Graph Traversals (BFS & DFS)

MSQ · 2 marks · Problem PROG-GRPH-0043

Let \(G\) be an undirected connected graph in which every edge has a positive integer weight. Suppose that every spanning tree in \(G\) has even weight. Which of the following statements is/are TRUE for every such graph \(G\) ?
  1. A
    All edges in \(G\) have even weight
  2. B
    All edges in \(G\) have even weight OR all edges in \(G\) have odd weight
  3. C
    In each cycle \(G\) in \(G\), all edges in \(G\) have even weight
  4. D
    In each cycle \(G\) in \(G\), either all edges in \(G\) have even weight OR all edges in \(G\) have odd weight

Solve it on GATE DA practice →More Graph Theory & Algorithms problems

Show the worked solutionOfficial GATE Answer Key: D.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/422856/gate-cse-2024-set-2-question-41

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com