merge-and-shrink
Merge-and-shrink abstraction heuristics for SAS+ planning, with DFP and SCC-DFP merging, label reduction and bisimulation shrinking
cargo add merge-and-shrink Who it is for
- People building optimal planners or search algorithms in Rust who need a strong admissible heuristic; the heuristic search itself, A* and friends, lives in
heuristic-search. - Researchers and students experimenting with abstraction heuristics, merge or shrink strategies, or cost partitioning, who want a small, readable, tested implementation to change and measure.
- Anyone who needs a reference h* on small tasks: with exact bisimulation and
prune: false, the result is perfect on every state, so it can check other heuristics. - To add several abstractions up admissibly, combine them with
cost-partition; for delete-relaxation, landmark or red-black heuristics, useplanning-heuristicsinstead, and for exhaustive search over decision diagrams,symbolic-search.
Without a size limit, exact bisimulation can still grow exponentially on large tasks. Set max_states (Fast Downward uses 50000) to bound every product; the heuristic stays admissible but is no longer perfect. The implementation favors readability over speed, so for large benchmarks Fast Downward remains much faster.
Algorithms 7
- Bisimulation goal-respecting bisimulation · exact bisimulation
Shrinks by exact, optionally size-bounded, goal-respecting bisimulation that keeps every goal distance exact.
- DFP DFP merge strategy · Dräger-Finkbeiner-Podelski
Merge strategy that picks the pair of factors whose shared operators lead closest to the goal.
-
Shrinks by bisimulation over transitions on optimal paths only, shrinking more but no longer perfect after further merges.
- Label reduction exact label reduction
Combines equal-cost operators that only one factor can tell apart into one label in every factor, exactly.
- Linear merge strategy linear merging
Merges the variables in a fixed order.
- Merge-and-shrink M&S · merge-and-shrink heuristic · merge-and-shrink abstraction
Builds an admissible abstraction heuristic over all variables by repeatedly merging factors into synchronized products and shrinking them to a size limit.
- SCC-DFP SCC-DFP merge strategy
Merges the variables of each strongly connected component of the causal graph first, then continues with DFP.