D* Lite
Also known as D star Lite
search heuristic-search
D* Lite keeps a cheapest path to a fixed goal while the start moves, for example for a robot that drives and finds new obstacles. It searches backwards from the goal, so a start move does not make its search tree invalid. Each vertex has g, its cost to the goal, and rhs, a one-step lookahead from its successors; a vertex with g ≠ rhs is inconsistent and goes on the queue. After an edge changes, only the affected vertices are repaired, and a start move adds h(old, new) to an offset km instead of computing all queue keys again. With a consistent heuristic (its estimate never drops by more than the edge cost along an edge), each compute returns a cheapest path from the current start.
Pseudocode
algorithm D* Lite(s₀, t, h)input: start s₀ (it moves), fixed goal t, consistent heuristic h(a, b)output: a cheapest path from the current start to t after every changekm ← 0 ▷ g and rhs of an unseen vertex are ∞rhs[t] ← 0insert(U, t, key(t))repeatcompute()yield path-from(s₀) ▷ follow tight edges towards tif the start moved to s′ then ▷ move_startkm ← km + h(s₀, s′)s₀ ← s′for each changed edge (u, v) do ▷ edge_changedupdate-vertex(u)until s₀ = tfunction key(s)return ⟨min(g[s], rhs[s]) + h(s₀, s) + km, min(g[s], rhs[s])⟩procedure update-vertex(u)if u ≠ t thenrhs[u] ← min of c + g[v] over (v, c) in successors(u)remove(U, u)if g[u] ≠ rhs[u] theninsert(U, u, key(u))procedure compute()while top-key(U) < key(s₀) or rhs[s₀] ≠ g[s₀] dou ← top(U)if top-key(U) < key(u) thenupdate-key(U, u, key(u)) ▷ km made the stored key stalecontinueif g[u] > rhs[u] theng[u] ← rhs[u]remove(U, u)elseg[u] ← ∞update-vertex(u)for each p in predecessors(u) doupdate-vertex(p)In the crates
heuristic-searchIncremental search towards a fixed goal from a moving start, with start moves keyed by km.
Lineage
Papers
- D* Lite Sven Koenig, Maxim Likhachev · 2002· Proceedings of the Eighteenth National Conference on Artificial Intelligence (AAAI-02)