Correct Answer: B,C,D
Explanation:
Loading...
Correct Answer: B,C,D
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 …
Let G(V,E) be an undirected and unweighted graph with 100 vertices. Let d(u,v) denote the number of …
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…