Overview
Iterative Deepening DFS combines the low memory use of DFS with the level-by-level discovery behavior of BFS.
Runs depth-first search repeatedly with increasing depth limits.
Compact metadata for implementation and discovery.
Iterative Deepening DFS combines the low memory use of DFS with the level-by-level discovery behavior of BFS.
Quick facts
Runtime and memory behavior at a glance.
Best
O(b^d)
Average
O(b^d)
Worst
O(b^d)
Space
O(d)
Show the same tree searched again with deeper limits.
Iterative Deepening DFS operates in O(b^d) time and O(d) space within the Depth-Limited Search family. Often compared with Depth-First Search and Breadth-First Search.
What each reference supports for this entry.
AI search reference for depth-limited and iterative-deepening graph search.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Iterative deepening DFS repeats depth-limited DFS with increasing search limits.