Q2 — Search Algorithms Theory

Three guarantee questions: DFID's closed-list secret, which algorithms survive an unknown heuristic, and why wA* at infinity forgets g entirely.

The Question

Answer the given subquestions.

#QuestionOfficial answer
2.1Under what cases does Depth First Iterative Deepening (DFID) guarantee to find the shortest path if one exists?C
2.2Given a finite state space with unit edge costs, and a heuristic function whose properties are not known, which of the following algorithms are suitable for ...B, C, D
2.3If w is set to a large value (tending to infinity) then wA* algorithm will __________ .A, D

The Topic in 60 Seconds

Guarantees attach to assumptions: DFID needs unit costs + amnesia about CLOSED; heuristic methods need admissibility — unknown hh kills them; f=g+w⋅hf = g + w\cdot h degenerates to pure hh-greed as w→∞w \to \infty.

Deep-dive: browse the Concepts section for optimal search.

Solutions

2.1 — DFID optimality → C

DFID re-runs depth-limited DFS with limit 1,2,3,…1, 2, 3, \dots, discarding all bookkeeping between rounds. Optimality lives in the amnesia: iteration kk re-expands every node closed by iterations 1..k−11..k{-}1 from scratch, so nothing blocks the shallowest goal when its turn comes.

OptionVerdict
A — inspects only new nodesFails: an early round could close a node ON the shallow path; later rounds refuse to reuse it
B — new + openNot the guarantee: stale frontier entries still block rediscovery
C — new + closedCorrect: re-inspecting closed nodes every iteration is precisely the optimality proof
D — noneWrong: C is textbook DFID

2.2 — Unknown-quality hh, unit costs → B, C, D

Split options into hh-users and hh-ignorers:

OptionUses hh?Verdict
A — DFSno, but ignores costs tooNo: returns a goal, not the shallowest
B — BFSnoYes: unit costs make fewest-edges = cheapest
C — DijkstranoYes: cheapest-first expansion, no assumptions beyond non-negative costs
D — Branch & BoundnoYes: ranks by true accumulated gg
E — A*yes (admissibility)No: unknown quality removes the guarantee
F — WA*yes (w⋅w \cdot admissibility)No
G — SMGSyesNo: pruning rule safe only under admissible hh

2.3 — w→∞w \to \infty → A, D

f(n)=g(n)+w⋅h(n)→w→∞h(n) dominates completelyf(n) = g(n) + w \cdot h(n) \xrightarrow{w \to \infty} h(n)\ \text{dominates completely}

  • A ✓: ordering collapses to hh alone = Best-First Search behaviour (greedy best-first).
  • B ✗: Dijkstra orders by gg — the exact opposite limit (w=0w = 0).
  • C ✗ / D ✓: even with admissible hh, ignoring gg means the first goal popped may sit down a cheap-hh but expensive-gg corridor — no optimality guarantee at any w>1w > 1, a fortiori at infinity.

Tricks & Tips

Answers: 2.1 C · 2.2 B, C, D · 2.3 A, D