Depth First Search
1. If there are 10 edges in a graph, in the worst case how many edges can DFS examine?
2. Which one of the following statements correctly compares DFS and BFS?
3. What is the primary goal of DFS when it is started from a particular source vertex?
4. What happens when DFS reaches a vertex whose adjacent vertices have already been visited?
5. Which data structure is commonly used to implement iterative DFS?
6. Why can recursion be used to implement DFS?
7. For an adjacency-list representation, why is the DFS complexity rather than in general?
8. Which property of DFS makes it useful for detecting cycles in a graph?
9. A DFS is started from vertex in a connected graph. If the graph contains 8 vertices, how many vertices will be visited by the DFS?