Time complexity of BFS algorithm can be obtained by the number of nodes traversed in BFS until the Shallowest node. Where d is the depth of Shallowest node and b is a node at every state.
T(b)=1+b2+b3+....+bd=O(bd)
Space complexity of Breadth First Search (BFS) is given by the memory size of frontier which is O(b d ).
Breadth First Search (BFS) is complete that mean if the solution of a given problem is exists at any node with a finite depth, then the algorithm definitely finds a solution.
Breadth First Search (BFS) is Optimal if path coast is a non-decreasing function of the depth of the node.
Silan Software is one of the India's leading provider of offline & online training for Java, Python, AI (Machine Learning, Deep Learning), Data Science, Software Development & many more emerging Technologies.
We provide Academic Training || Industrial Training || Corporate Training || Internship || Java || Python || AI using Python || Data Science etc