Examveda
Examveda

The time and space complexity of BFS is (For time and space complexity problems consider b as branching factor and d as depth of the search tree.)

A. O(bd+1) and O(bd+1)

B. O(b2) and O(d2)

C. O(d2) and O(b2)

D. O(d2) and O(d2)

Answer: Option A


This Question Belongs to Computer Science >> Artificial Intelligence

Join The Discussion

Related Questions on Artificial Intelligence