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
decoupled-searchfeaturemerge-and-shrinkAdmissible merge-and-shrink heuristic adapter on decoupled states, from the merge-and-shrink crate.
merge-and-shrinkBuilds an admissible abstraction heuristic over all variables by repeatedly merging factors into synchronized products and shrinking them to a size limit.
Lineage
Comes from
generalizes Pattern database
Led to
Symbolic merge-and-shrink builds on it
Papers
- 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
- Merge-and-Shrink: A Compositional Theory of Transformations of Factored Transition Systems Silvan Sievers, Malte Helmert · 2021· Journal of Artificial Intelligence Research