Gradient LabSign up free

Home / GATE DA / 2024 / Q.14

GATE DA 2024, Q.14: Edge type when d[u] < d[v] in DFS

Data structures and algorithmsDFS edge classification1 markMCQ

The question

In an undirected unweighted graph G, DFS is run from s. d[u] is the shortest-path distance from s to u. If d[u] < d[v] and edge (u, v) is first explored from u towards v, what kind of edge does it become?

Checking your access…

Source: official GATE DA 2024 question paper and answer key (IISc Bengaluru). The question is lightly reworded; every number and option is kept.