Showing posts with label Breadth First Search. Show all posts
Showing posts with label Breadth First Search. Show all posts

Breadth First Search (BFS)


📌
Hello friends! In this post I am going to explain about Breadth First Search (BFS).What is the algorithm/ How we trace algorithm with the help of example. 

Breadth First Search is a Graph Traversal Methods.It is a technique used to search a vertex in a graph breadth wise. It is also used to decide the order of vertices to be visited in the search process.

Breadth First Search(BFS) produce a spanning tree as a final result is graph without loops.We use Queue data structure with maximum size of total number of vertices in the graph to implement BFS of a graph.