Graph Traversal (BFS and DFS): GATE CS Previous Year Questions

Graph Traversal (BFS and DFS) · Algorithms

16 questions · asked in 11 of 27 years (2000–2026)

MCQ 12 · MSQ 2 · NAT 21-mark 12 · 2-mark 4

2000Questions per year2026

Questions 16–16 of 16

Q16GATE 20001 markMCQ−0.33 if wrong
Let G be an undirected graph. Consider a depth-first traversal of G, and let T be the resulting depth-first search tree. Let u be a vertex in G and let v be the first new (unvisited) vertex visited after visiting u in the traversal. Which of the following statement is always true?

Keep practising

Topics in Algorithms

All CS topics ›