Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

RHW landmarks

Also known as back-chained landmarks, Richter-Helmert-Westphal landmarks

heuristic planning-heuristics

RHW landmark extraction finds landmarks by working back from the goal. A landmark is a fact, or a set of facts of which one must hold, that is true at some point of every plan. For each landmark it looks at the possible first achievers: the operators that add it and that can run before it holds. A precondition that all of them share is a new landmark; preconditions on one variable can form a disjunctive landmark; and values that every path through a variable's domain transition graph passes are landmarks too. It also records the orderings between landmarks (greedy-necessary, natural and reasonable), which LAMA-style search uses.

Pseudocode

algorithm RhwLandmarks(s, G)input: state s, goal facts Goutput: landmarks with orderings, or failureLM ← ∅ORD ← ∅QUEUE ← ∅for each g in G doadd-landmark({g}, nil, nil)while QUEUE ≠ ∅ doL ← pop(QUEUE)A ← first-achievers(L, s)                 ▷ rules adding L, possible before L holdsif A = ∅ thenreturn failurefor each fact p in the conditions of every a ∈ A doadd-landmark({p}, L, greedy-necessary)for each variable v with a condition in every a ∈ A doD ← the values of v those conditions nameif 2 ≤ |D| ≤ 4 and no fact of D holds in s thenadd-landmark(D, L, greedy-necessary)   ▷ disjunctive landmarkif L = {v = d} thenfor each value d′ on every DTG path of v from s[v] to d doadd-landmark({v = d′}, L, natural)drop-disjunctions-with-fact-landmarks(LM)return LM, ORDprocedure add-landmark(X, L, kind)if X ∉ LM thenLM ← LM ∪ {X}if X does not hold in s thenpush(QUEUE, X)if L ≠ nil thenORD ← ORD ∪ {(X, L, kind)}

In the crates

Lineage

Comes from

builds on Ordered landmarks (Hoffmann, Porteous & Sebastia 2004)

Led to

Landmark count heuristic builds on it

Papers

  1. Landmarks Revisited Silvia Richter, Malte Helmert, Matthias Westphal · 2008· AAAI Conference on Artificial Intelligence introduces