hsa
Also known as set-additive heuristic, hsa
heuristic planning-heuristics
The set-additive heuristic hsa works like h_add, but each fact keeps a set of operators (a relaxed plan) instead of a number. An operator offers its effect the union of the sets of its preconditions, plus itself. Each fact keeps its cheapest offer, and the estimate is the total cost of the union of the goal facts' sets. So an operator that two subgoals need is counted once, not twice, and hsa is never above h_add. It is not admissible; use it to guide satisficing search, for example greedy best-first search.
Pseudocode
algorithm HSetAdd(s, G)input: state s, goal facts Goutput: the cost of a relaxed plan, or ∞ for a dead endfor each fact f doif f ∈ s thenplan[f] ← ∅elseplan[f] ← nilrepeatchanged ← falsefor each rule (C → f) of an operator o doif plan[c] ≠ nil for every c ∈ C thenoffer ← {o} ∪ ⋃ plan[c] over c ∈ Cif plan[f] = nil or cost(offer) < cost(plan[f]) thenplan[f] ← offerchanged ← trueuntil not changedif plan[g] = nil for some g ∈ G thenreturn ∞return cost(⋃ plan[g] over g ∈ G) ▷ cost(P) = ∑ cost(o) over o ∈ PIn the crates
planning-heuristicsSet-additive heuristic: like h_add, but each fact carries a set of operators.
Lineage
Comes from
builds on hadd
Led to
Nothing on this site.
Papers
- Heuristics for Planning with Action Costs Revisited Emil Keyder, Héctor Geffner · 2008· European Conference on Artificial Intelligence (ECAI)