Depth First Search
1. Which one of the following is an application of a directed graph?
2. If and represent the number of vertices and edges respectively, which one of the following combinations cannot be true for a graph?
3. Which data structure can be used to represent a graph using an adjacency matrix and provides random access to its entries?
4. When performing DFS on a directed graph, how does the traversal move from a vertex?
5. Which one of the following is an application of a directed graph?
6. What is the main purpose of marking a vertex as visited during DFS?
7. Which statement best describes the order in which DFS explores a graph?
8. For a graph represented using an adjacency list, what is the time complexity of DFS in terms of , the number of vertices, and , the number of edges?
9. Consider a connected undirected graph with vertices. During a DFS traversal, how many tree edges are required to first reach all vertices?