Home / MCQ Bank / Computer
Computer Graphs

What is the time complexity of finding all reachable nodes from a given node in an undirected graph using DFS?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • O(V + E)

Related Computer Questions

Which of the following declares an abstract method in an abstract Java class? Given a prefix and a postfix notation what are the difference between them? How many child nodes does each node of Ternary Tree contain? The disk concept for reducing time lost from rotational delay is: Which of the following is the correct code for invoking a function without this keyword at all, and also too determine whether the strict mode is in effect?