An iterative recess search (IDS), which consists of many rounds of depth searches (mainly DFS, but stop searching if you reach the depth limit d), which gradually increases the depth from 1, will find the shortest path to the unweighted graph.
It works, as you gradually increase the distance allowed from the beginning of a node: a node with a distance of a + 1 will not be studied to a node having a distance a, due to the depth limit.
One common problem is that nodes with distance a will be re-visited (d - a + 1) times, where d is the depth of the shortest path to the target. It depends on the graph or search tree if we want to talk about performance. In the search tree with a large branching coefficient, nodes generated at depth d become dominant, so there are not so many problems with the transition. BFS is unsuitable for this case due to the exponential space requirement, but IDS will only use polynomial space.
source share