AD*
Also known as Anytime Dynamic A*
search heuristic-search
AD* (Anytime Dynamic A*) plans when time is short and the world changes. Like D* Lite, it searches backwards from the goal, so its work stays valid while the start moves and edge costs change. Like ARA*, it multiplies the heuristic by a weight w ≥ 1, and with a consistent heuristic (one that never drops by more than an edge's cost along that edge) each compute returns a path that costs at most w times the optimum. A lower w on the next call improves the path, and w = 1 gives an optimal one. Use it for a robot that must move now and refine its plan while it senses new obstacles.
Pseudocode
algorithm AD*(s₀, t, h, w)input: start s₀ (it moves), fixed goal t, consistent heuristic h(a, b), weight w ≥ 1output: after each call, a path that costs at most w times the optimumkm, rhs[t] ← 0, 0 ▷ g and rhs of an unseen vertex are ∞▷ key(s) = ⟨m + ε · h(s₀, s) + km, m⟩ with m = min(g[s], rhs[s]); ε = w if g[s] > rhs[s], else 1U ← {t} ▷ ordered by keyrepeatU ← U ∪ INCONS ▷ re-keys all of U only when w droppedINCONS, CLOSED ← ∅, ∅compute()yield path-from(s₀) ▷ the caller may lower w (set_weight)if the start moved to s′ thenkm ← km + w · h(s₀, s′)s₀ ← s′for each changed edge (u, v) doupdate-vertex(u)until s₀ = tprocedure 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] and u ∈ CLOSED thenINCONS ← INCONS ∪ {u} ▷ waits for the next callelse 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)) ▷ the start moved since u was queuedcontinueif g[u] > rhs[u] theng[u] ← rhs[u]remove(U, u)CLOSED ← CLOSED ∪ {u}elseg[u] ← ∞update-vertex(u)for each p in predecessors(u) doupdate-vertex(p)In the crates
heuristic-searchAnytime Dynamic A*: D* Lite with anytime weighted repair.
Lineage
Papers
- Anytime Dynamic A*: An Anytime, Replanning Algorithm Maxim Likhachev, Dave Ferguson, Geoff Gordon, Anthony Stentz, Sebastian Thrun · 2005· Proceedings of the Fifteenth International Conference on Automated Planning and Scheduling (ICAPS 2005)