Science, asked by asifrazaq1517, 6 months ago

Write down the algorithm of Breadth first search, Depth first search and Hill Climbing. Also, explain the working of algorithm and conclude the time and space complexity​

Answers

Answered by vparkash407
1

Answer:

Breadth-first search (BFS) is an algorithm for traversing or searching tree or graph data structures. It starts at the tree root (or some arbitrary node of a graph, sometimes referred to as a 'search key'[1]), and explores all of the neighbor nodes at the present depth prior to moving on to the nodes at the next depth level.

Similar questions