Graph Traversal: BFS and DFS - Typical Problems - Problem Set

Download Q&A
Q. Which algorithm is best suited for finding connected components in a graph?
  • A. BFS
  • B. DFS
  • C. Dijkstra's Algorithm
  • D. A* Search
Q. Which of the following statements about BFS and DFS is false?
  • A. BFS can find the shortest path in unweighted graphs
  • B. DFS can be more memory efficient than BFS
  • C. BFS uses a stack
  • D. DFS can be implemented recursively
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