Topics
#bfs#dfs#ucs#dls#ids

Uninformed Search

l
View
Ready
FringeFIFO queue
Visited0
Properties at a glance
BFSUCSDFSDLSIDS
FringeFIFO queuepriority queue (g)LIFO stackstack, depth ≤ lDLS, l = 0, 1, 2 …
Complete?YesYes*Noif l ≥ dYes
Optimal?Yes**YesNoNoYes**
Timebd+1b1+⌊C*/ε⌋bmblbd
Spacebd+1b1+⌊C*/ε⌋b·mb·lb·d

Symbols

b branching factor · d depth of the shallowest goal · m longest path (may be ∞) · C* optimal cost · ε smallest action cost.

Footnotes

* complete if every action costs > 0. ** optimal only if all actions cost the same (they find the shallowest goal).

Rule of thumb

Large space, unknown solution depth: use IDS. It is complete like BFS and needs only linear memory like DFS.