Computer Sciences > Gate 2014 Set-1 > Graph Theory
Let G be a graph with n vertices and m edges. What is the tightest upper bound on the running time on Depth First Search of G?
Assume that the graph is represented using adjacency matrix.
A
θ (n)
B
θ (n+m)
C
θ(n2)
D
θ(m2)

Correct : Graph Theory

Similar Questions

Let G=(V,E) be a directed graph where V is the set of vertices and E the set of edges. Then which one of the following graphs has the same strongly connected co...
#18 MCQ
In an adjacency list representation of an undirected simple graph G = (V, E), each edge (u, v) has two adjacency list entries: [v] in the adjacency list of u, a...
#91 MCQ
Consider a set U of 23 different compounds in a Chemistry lab. There is a subset S of U of 9 compounds, each of which reacts with exactly 3 compounds of U. Cons...
#95 MCQ

Related Topics

No tags found

Unique Visitor Count

Total Unique Visitors

Loading......