GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2024 set1

GATE 2024 set1 · CS · MSQ · 2 marks · Algorithms › Graph Algorithms

GATE 2024 set1 Computer Science and Information Technology question: Let G be a directed graph and T a depth first search (DFS) spanning tree in G that is…

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

  1. (A)

    There are no back-edges in with respect to the tree

  2. (B)

    There are no cross-edges in with respect to the tree

  3. (C)

    There are no forward-edges in with respect to the tree

  4. (D)

    The only edges in are the edges in

Show answer

Official answer: C

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion