Depth First Search
1. Which one of the following steps is incorrect when performing iterative DFS using a stack?
2. What is the time complexity of DFS when is the number of vertices and is the number of edges, using an adjacency-list representation?
3. Pick the incorrect option.
4. Which of the following are applications of DFS?
5. DFS can only be applied to trees and not to graphs.
6. Pick the incorrect option.
7.
When we apply DFS on the above graph, which one of the following traversal orders is not possible?
When we apply DFS on the above graph, which one of the following traversal orders is not possible?
8. Consider a connected graph with 6 vertices. If DFS starts from one vertex, how many vertices will be visited?
9. In an undirected graph, what does a DFS tree edge represent?