Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

Anytime A*

Also known as Anytime Fork-Root A*

search decoupled-search

Anytime A* is Gnad and Hoffmann's Anytime Fork-Root A* for decoupled search. There a task splits into a center and leaves, the search branches only over global actions (those not confined to one leaf), and each node keeps the price (cheapest cost) of every reachable leaf state. The open list is ordered by g plus a root heuristic, which estimates only the cost of the remaining global actions. A second, admissible heuristic over the whole remaining cost prunes every node that cannot beat the best solution found so far. The search stops when the open-list key plus the least possible leaf goal price reaches the best solution cost, and the plan is then optimal if both heuristics never overestimate what they estimate.

Pseudocode

algorithm anytime-A*(Π, F, h-root, h-fork)input: task Π, factoring F, root heuristic h-root (cost of the remaining global actions), admissible heuristic h-forkoutput: a cheapest plan, or failurem ← ∑ over leaves of the cheapest leaf-action cost from the initial to a goal leaf state  ▷ global moves free, center ignoreds₀ ← initial decoupled state, with closed leavesg[s₀] ← 0OPEN ← {s₀}                              ▷ ordered by g + h-root, leaf facts at price 0U ← goal-cost(s₀)                        ▷ ∞ unless s₀ is a goal statewhile OPEN ≠ ∅ dos ← extract-min(OPEN)if g[s] + h-root(s) + m ≥ U thenbreakfor each global action a applicable in s dos′ ← successor(s, a)                 ▷ transfer and close the leavesg[s′] ← g[s] + cost(a)if s′ is dominated or g[s′] + h-fork(s′) ≥ U thencontinueparent[s′] ← (s, a)insert(OPEN, s′, g[s′] + h-root(s′))U ← min(U, goal-cost(s′))            ▷ g plus the leaf goal prices; a better plan tightens the boundif U = ∞ thenreturn failurereturn plan-to(the goal state with cost U)

In the crates

Lineage

Comes from

builds on A*

builds on Decoupled search

Led to

Nothing on this site.

Papers

  1. Beating LM-Cut with hmax (Sometimes): Fork-Decoupled State Space Search Daniel Gnad, Jörg Hoffmann · 2015· International Conference on Automated Planning and Scheduling (ICAPS) introduces doi 10.1609/icaps.v25i1.13705