Graph Traversal: BFS and DFS - Applications - Problem Set

Download Q&A
Q. What is the primary difference between BFS and DFS?
  • A. BFS uses a stack, DFS uses a queue
  • B. BFS explores nodes level by level, DFS explores as far as possible along a branch
  • C. BFS is faster than DFS
  • D. DFS is always more memory efficient than BFS
Q. Which algorithm is typically used to find the shortest path in a weighted graph?
  • A. BFS
  • B. DFS
  • C. Dijkstra's Algorithm
  • D. Prim's Algorithm
Showing 1 to 2 of 2 (1 Pages)
Soulshift Feedback ×

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

Not likely Very likely