Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Iterative deepening depth-first search
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Search strategy}} {{more citations needed|date=January 2017}} {{Infobox Algorithm |class=[[Search algorithm]] |image= |caption = |data=[[Tree (data structure)|Tree]], [[Graph (data structure)|Graph]] |time=<math>O(b^d)</math>, where <math>b</math> is the branching factor and <math>d</math> is the depth of the shallowest solution |space=<math>O(d)</math><ref name="re1985"/> |optimal=yes (for unweighted graphs) |complete=yes }} In [[computer science]], '''iterative deepening search''' or more specifically '''iterative deepening depth-first search'''<ref name="re1985">{{cite journal|last=Korf|first=Richard|author-link=Richard E. Korf|title=Depth-first Iterative-Deepening: An Optimal Admissible Tree Search|journal=Artificial Intelligence|year=1985|volume=27|pages=97β109|doi=10.1016/0004-3702(85)90084-0|s2cid=10956233 }}</ref> (IDS or IDDFS) is a [[state space search|state space]]/graph search strategy in which a depth-limited version of [[depth-first search]] is run repeatedly with increasing depth limits until the goal is found. IDDFS is optimal, meaning that it finds the shallowest goal.<ref name=":0" /> Since it visits all the [[node (computer science)|node]]s in the [[search tree]] down to depth <math>d</math> before visiting any nodes at depth <math>d + 1</math>, the cumulative order in which nodes are first visited is effectively the same as in [[breadth-first search]]. However, IDDFS uses much less memory.<ref name="re1985"/>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)