Question: Time Complexity of DFS is? (V – number of vertices, E – number of edges)

Options

A : O(V + E)

B : O(V)

C : O(E)

D : O(V*E)

Click to view Correct Answer

Previous || Next

Data Structure Depth First Search more questions

What is the best case complexity in building a heap?

What is the best case and worst case complexity of....

What is time complexity to check if a string(length S1)....

Most Efficient Time Complexity of Topological Sorting is? (V –....

Time Complexity of Breadth First Search is? (V – number....

Time complexity to find if there is an edge between....

Space complexity for an adjacency list of an undirected graph....

The time complexity to calculate the number of edges in....

What is the running time of Bellmann Ford Algorithm?

What is running time of Dijkstra’s algorithm using Binary min-....

Data Structure Adjacency List more Online Exam Quiz

Data Structure Campus Interviews

Data Structure Cartesian Tree

Data Structure Circular Linked Lists

Data Structure Coin Change Problem

Data Structure Counting Boolean Parenthesizations

Data Structure Dice Throw Problem

Data Structure Direct Addressing Tables

Data Structure Directed Acyclic Graph

Data Structure Directed Graph

Data Structure Double Ended Queue