Tag Search

Depth-first search algorithm

Depth-first search algorithm

Depth-first search (DFS) is a search algorithm that explores the search tree by going as deep as possible along each branch before backtracking. This means that it explores each branch of the search tree as far as possible before moving…

Breadth-first search algorithm

breadth-first search

The breadth-first search (BFS) algorithm is a search algorithm that explores the search tree by visiting all of the nodes at the same depth before moving on to the next level. This means that it visits all of the nodes…

Enable Notifications OK No thanks