Graph Traversal: BFS and DFS - Applications - Numerical Applications

Download Q&A
Q. In a graph, if you want to check if there is a path between two nodes, which traversal method would be more suitable?
  • A. BFS
  • B. DFS
  • C. Both are equally suitable
  • D. Neither is suitable
Q. What is a common application of DFS in graph theory?
  • A. Finding the shortest path
  • B. Topological sorting
  • C. Finding the minimum spanning tree
  • D. Finding connected components
Q. What is the main disadvantage of using BFS?
  • A. It can be slower than DFS
  • B. It requires more memory
  • C. It cannot find paths
  • D. It is not suitable for large graphs
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