Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

BFWS-f5

Also known as BFWS(f5), BFWS #r, BFWS(⟨w#g,#r, #g⟩)

search width-search

BFWS-f5 is BFWS with a finer novelty measure: it keeps one novelty table for each pair of goal count #g and relaxed-plan count #r. A relaxed plan is a plan for the task with all delete effects removed; with the sas-plus adapter it comes from the best supporters of hadd. #r counts how many facts of the current relaxed plan the path to a state has made true, and the relaxed plan is computed again at each state where #g drops. The open list is still ordered by ⟨w, #g⟩. Like BFWS, it is complete on finite state spaces but not optimal, and the #r guidance can save many expansions on planning tasks.

Pseudocode

algorithm BFWS-f5(s₀, k)input: initial state s₀, width bound koutput: a plan to a goal state, or failureif goal(s₀) thenreturn empty planRELEVANT[s₀] ← relaxed-plan-features(s₀) ∖ features(s₀)REACHED[s₀] ← ∅SEEN ← {s₀}OPEN ← {s₀}                        ▷ ordered by ⟨w, g⟩, then by generation orderw[s₀] ← novelty(s₀)while OPEN ≠ ∅ dos ← extract-min(OPEN)for each (a, s′) in successors(s) doif s′ ∈ SEEN thencontinueSEEN ← SEEN ∪ {s′}parent[s′] ← (s, a)if unsatisfied-goals(s′) < unsatisfied-goals(s) thenRELEVANT[s′] ← relaxed-plan-features(s′) ∖ features(s′)   ▷ a new relaxed planREACHED[s′] ← ∅elseRELEVANT[s′] ← RELEVANT[s]REACHED[s′] ← REACHED[s] ∪ (features(s′) ∩ RELEVANT[s])w[s′] ← novelty(s′)if goal(s′) thenreturn plan-to(s′)insert(OPEN, s′, ⟨w[s′], unsatisfied-goals(s′)⟩)return failurefunction novelty(s)g ← unsatisfied-goals(s)r ← |REACHED[s]|w ← evaluate-and-insert(TABLE[g, r], features(s))   ▷ one table per pair (g, r)if w = nil thenw ← k + 1return w

In the crates

  • width-search

    BFWS(⟨w_{#g,#r}, #g⟩), where #r counts relaxed-plan facts reached, recomputed whenever the goal count drops.

    bfws_r

Lineage

Comes from

builds on BFWS

builds on hadd

Led to

Nothing on this site.

Papers

  1. Best-First Width Search: Exploration and Exploitation in Classical Planning Nir Lipovetzky, Hector Geffner · 2017· Proceedings of the AAAI Conference on Artificial Intelligence introduces doi 10.1609/aaai.v31i1.11027