Topics in Graph Theory and Graph Algorithms

Filter by year

Graph Theory and Graph Algorithms questions

Q14

GATE DA 2024 DAGraph Theory and Graph AlgorithmsMCQ1 mark−1/3 if wrong

Report a problem with Q14

What is wrong?
Consider performing depth-first search (DFS) on an undirected and unweighted graph GG starting at vertex ss. For any vertex uu in GG, d[u]d[u] is the length of the shortest path from ss to uu. Let (u,v)(u, v) be an edge in GG such that d[u]<d[v]d[u] < d[v]. If the edge (u,v)(u, v) is explored first in the direction from uu to vv during the above DFS, then (u,v)(u, v) becomes a ______ edge.
Show answer without attempting

Loading the answer…

Q51

GATE DA 2024 DAGraph Theory and Graph AlgorithmsMSQ2 marks

Report a problem with Q51

What is wrong?
Consider the directed acyclic graph (DAG) below:

Which of the following is/are valid vertex orderings that can be obtained from a topological sort of the DAG?
Question figure
More than one option can be correct.
Show answer without attempting

Loading the answer…

0/20 correct0 marks

Related topics in Programming Data Structures and Algorithms