August 2018
Intermediate to advanced
124 pages
2h 47m
English
In this section, we'll look at the flow of the BFS algorithm, how a queue is used, and how graph data affects the algorithm. The flow of the BFS algorithm is similar to that of DFS, but instead of using a stack data structure, a queue data structure is used.
A flowchart of the BFS algorithm can be illustrated as follows:

Read now
Unlock full access