Correct Answer: C
Explanation:
Loading...
Correct Answer: C
Explanation:
Take your GATE-CS preparation to the next level. Practice with full-length mock tests, get instant results, and track your progress with detailed analytics.
Browse GATE-CS Test SeriesThe given DFS algorithm computes d[v] (discovery time) and f[v] (finishing time) for each vertex. Th…
An undirected simple graph G(V,E) is 2-colorable if there exists c: V --> {0,1} such that for every …
Which of the following statements regarding BFS and DFS on an undirected simple graph G is/are TRUE?
someAlgo(G): (1) BFS from any v, find farthest vertex u. (2) BFS from u, find farthest vertex z. (3)…
The number of edges present in the forest generated by the DFS traversal of an undirected graph G wi…
Let G be a directed graph and T a DFS spanning tree in G rooted at vertex v. Suppose T is also a BFS…