Algorithm (informal)
- Determine the vertex where the search should start and assign the maximum search depth
- Check if the current vertex is the goal state
- If not: Do nothing
- If yes: return
- Check if the current vertex is within the maximum search depth
- If not: Do nothing
- If yes:
- Expand the vertex and save all of its successors in a stack
- Call DLS recursively for all vertices of the stack and go back to Step 2
Read more about this topic: Depth-limited Search