IAE Academy

GATE 2024 DA Q.14: official answer

GATE 2024 · DAQ.14 · 1 mark · MCQ

Consider performing depth-first search (DFS) on an undirected and unweighted graph starting at vertex . For any vertex in , is the length of the shortest path from to . Let be an edge in such that . If the edge is explored first in the direction from to during the above DFS, then becomes a ______ edge.

  1. (A)

    tree

  2. (B)

    cross

  3. (C)

    back

  4. (D)

    gray

See the question in the paper

Official answer

From the GATE 2024 DA paper. Every question of this paper · Download the full paper · All 28 Graph algorithms questions, with notes

More Graph algorithms questions