Skip to content
GATEiit

GATE CSE 2024 Session 1 Q45: Edge types when a DFS tree is also a BFS tree

Question

Let GG be a directed graph and TT a depth first search (DFS) spanning tree in GG that is rooted at a vertex vv. Suppose TT is also a breadth first search (BFS) tree in GG, rooted at vv. Which of the following statements is/are TRUE for every such graph GG and tree TT?

Try it: multiple select: one or more correct options

Select one or more options
Select all correct options. No negative marking, no partial marks.
Show answer and explanation

Answer: C (official GATE 2024 final answer key)

Concept used: In a BFS tree no non-tree edge can skip more than one level downward.

First step: A forward edge would jump at least two levels down, contradicting BFS distances; then look for small graphs with a back or cross edge.

Full step-by-step solution

Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.

Share this question

WhatsAppDownload image

Source: official GATE 2024 Session 1 CS question paper and final answer key, organised by IISc Bangalore. Question paper · Answer key