laajuushaku
Laajuushaku, also known as breadth-first search (BFS), is a graph traversal algorithm. It starts at a designated root node and explores all the neighbor nodes at the present depth prior to moving on to the nodes at the next depth level. This means it explores the graph in layers.
The algorithm uses a queue data structure to keep track of the nodes to visit. When a
Common applications of laajuushaku include finding the shortest path in networks, web crawling, and solving puzzles