Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

Merge-and-shrink

Also known as M&S, merge-and-shrink heuristic, merge-and-shrink abstraction

heuristic decoupled-searchmerge-and-shrink

Merge-and-shrink builds an abstraction of a planning task: a smaller transition system that maps groups of real states to one abstract state. It starts with one small transition system (a factor) per state variable. Then it repeatedly picks two factors, shrinks them by merging equivalent abstract states until their product fits a size limit, and merges them into their synchronized product. The goal distances in the last factor never overestimate the true cost (they are admissible), so A* with this heuristic finds cheapest plans. With exact bisimulation shrinking and no size limit, the heuristic is perfect on tasks without conditional effects and derived variables.

Pseudocode

algorithm merge-and-shrink(Π, N)input: planning task Π, size limit N for each productoutput: an admissible heuristic, as goal distances of one abstract transition systemF ← { atomic(v) : v a variable of Π }    ▷ one factor per variablefor each f in F doprune(f)                               ▷ drop unreachable and dead-end abstract stateswhile |F| > 1 dof₁, f₂ ← merge-strategy-pick(F)        ▷ linear, DFP or SCC-DFPreduce-labels(F, f₁, f₂)               ▷ optional, exactshrink(f₁, f₂, N)                      ▷ bisimulation or greedy bisimulation until |f₁| · |f₂| ≤ Nf ← synchronized-product(f₁, f₂)prune(f)F ← (F ∖ {f₁, f₂}) ∪ {f}f ← the only factor in Fd ← goal-distances(f)return the heuristic h with h(s) = d[abstract-state(f, s)]

In the crates

Lineage

Comes from

generalizes Pattern database

Led to

Symbolic merge-and-shrink builds on it

Papers

  1. Merge-and-Shrink Abstraction: A Method for Generating Lower Bounds in Factored State Spaces Malte Helmert, Patrik Haslum, Jörg Hoffmann, Raz Nissim · 2014· Journal of the ACM introduces doi 10.1145/2559951
  2. Merge-and-Shrink: A Compositional Theory of Transformations of Factored Transition Systems Silvan Sievers, Malte Helmert · 2021· Journal of Artificial Intelligence Research extends doi 10.1613/jair.1.12557