GATE IT 2005 · Shortest Path Algorithms

MCQ · 1 mark · Problem PROG-GRPH-0111

In a depth-first traversal of a graph G with n vertices, k edges are marked as tree edges. The number of connected components in G is
  1. A
    k
  2. B
    k+1
  3. C
    n-k-1
  4. D
    n-k

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

Show the worked solutionOfficial GATE Answer Key: Option D.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/3759/gate2005-it-14

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