GATEverse Practice, past papers & mock tests
GATE 2007
AlgorithmsGraph AlgorithmseasyMCQ1 mark
Let G = (V, E) be a directed graph where |V| = n and |E| = m. What is the time complexity of testing whether G contains a cycle using Depth-First Search (DFS)?
Save your progress

Related Algorithms PYQs