Graph Traversal: BFS and DFS - Complexity Analysis - Problem Set

Download Q&A
Q. What is the space complexity of DFS using recursion?
  • A. O(V)
  • B. O(E)
  • C. O(V + E)
  • D. O(1)
Q. Which algorithm is typically used for topological sorting?
  • A. BFS
  • B. DFS
  • C. Both
  • D. None
Q. Which traversal method is more suitable for searching deep trees?
  • A. BFS
  • B. DFS
  • C. Both are equally suitable
  • D. Neither
Showing 1 to 3 of 3 (1 Pages)
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely