BFS, Stacks & Queue Data Structure
BFS, Stacks & Queue Data Structure
BFS, Stacks & Queue Data Structure
STRUCTURE
WHAT IS BFS?
Breadth- First Search (BFS) is an algorithm for traversing or searching
Tree of Graph data structure.
It starts at the root or some arbitrary mode of a graph, sometimes
referred to as a ‘Search Key’ and explores all of the neighbor nodes at
the present depth prior to moving on to the nodes at the next depth
level.
.
ADVANTAGES OF BFS