Vidyalelo
Data Structure · Q5

Graph Algorithms (DFS, BFS, Dijkstras, etc)

Programming · Data Structure · question 5

Q5

What is the primary difference between BFS and DFS?

A.
BFS is used for weighted graphs; DFS is not.
B.
BFS explores nodes level by level; DFS explores nodes deeply first.
Answer
C.
BFS uses recursion, DFS does not.
D.
BFS is used for weighted graphs; DFS is not.

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board