- Type
- Quiz
- Course
- CS607P Artificial Intelligence (Practical)
- Size
- PDF 855 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from page 1 of 1. Download the file for all 1 page.
Q1. On the given graph, if we perform DFS starting from node A. Which of the following could be a valid DFS traversal order? Graph (Adjacency List): A → B, C B → (no outgoing edges) C → (no outgoing edges)
Correct answer: A, B, C
Q2. ___________ condition is sufficient to detect cycle in a directed graph.
Correct answer: There is an edge from currently being visited node to an ancestor of currently visited node in DFS forest
Q3. What will be the time complexity of the iterative depth first search traversal code , where V = No. of Vertices, E = No. of Edges ?
Correct answer: O(V+E)
Q4. On the given graph, if DFS starts from A and visits C first, what is the traversal order? Graph (Adjacency List): A → B, C B → C C → (no outgoing edges)
Correct answer: A, C, B
Q5. If DFS starts from A on the given graph, which node will NOT be visited? Graph (Adjacency List): A → B, C B → C D → A
Correct answer: D
Related CS607P files
All CS607P files →Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.