Skip to content

Code + PPT + Video for the Breadth-first Search (BFS) Algorithm.

License

Notifications You must be signed in to change notification settings

PESH-Computer-Science/BFS-and-DFS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BFS + DFS

Code + PPT + Video for the Breadth-first Search (BFS) Algorithm.

BFS General Algorithm

  • Add starting point to the queue
  • Iterate while the queue is not empty
    • Remove top coordinate from queue
    • If coordinate has been visited already: skip the below steps
    • Set coordinate to visited
    • Add all adjacent coordinates to the queue.

About

Code + PPT + Video for the Breadth-first Search (BFS) Algorithm.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages