h2
Also known as h², hm with m = 2
heuristic planning-heuristics
h² is an admissible heuristic for classical planning: it never overestimates the cost to the goal. It estimates the cost to reach each single fact and each pair of facts. A set of more than two facts costs as much as its most expensive pair. Because it looks at pairs, h² sees some delete effects: two facts that cannot be true together cost more than each one alone. It is at least h_max and is a good choice for optimal search on small and medium tasks, but its memory grows with the square of the number of facts.
Pseudocode
algorithm H2(s, G)input: state s, goal facts Goutput: h²(s), or ∞ for a dead endfor each fact set X with |X| ∈ {1, 2} doif X ⊆ s thenh[X] ← 0elseh[X] ← ∞ ▷ two values of one variable stay ∞repeatchanged ← falsefor each operator o dofor each fact set X ⊆ eff(o) with |X| ∈ {1, 2} dochanged ← lower(X, cost(o) + cost2(pre(o))) or changedfor each p in eff(o) dofor each fact q whose variable o does not change dochanged ← lower({p, q}, cost(o) + cost2(pre(o) ∪ {q})) or changeduntil not changedreturn cost2(G)function cost2(X)return max over Y ⊆ X with |Y| ∈ {1, 2} of h[Y]function lower(X, c)if c < h[X] thenh[X] ← creturn truereturn falseIn the crates
planning-heuristicsThe h^m heuristic with m = 2: cheapest regression over fact pairs.
Lineage
Comes from
generalizes hmax
Led to
Nothing on this site.
Papers
- Admissible Heuristics for Optimal Planning Patrik Haslum, Héctor Geffner · 2000· International Conference on Artificial Intelligence Planning and Scheduling (AIPS)