Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

IW

Also known as Iterated Width, IW(k)

search width-search

IW(k) is breadth-first search with novelty pruning. Each state is described by integer features, such as the facts that hold in it, and the novelty of a state is the size of the smallest set of its features that no earlier state had all at once. IW(k) drops every non-goal state with novelty greater than k, so it expands at most O(n^k) states for n features, however large the state space is. The width of a problem is, roughly, the smallest k for which IW(k) finds a shortest plan (all actions cost 1); with a larger width, IW(k) can fail. Iterated width (iterated_width) runs IW(1), IW(2), … until one succeeds, which suits large state spaces where no heuristic is at hand.

Pseudocode

algorithm IW(s₀, k)input: initial state s₀, width bound koutput: a shortest plan to a goal state if the width is at most k, else a plan or failureNOVELTY ← empty novelty table for feature sets of size ≤ kevaluate-and-insert(NOVELTY, features(s₀))if goal(s₀) thenreturn empty planOPEN ← queue ⟨s₀⟩while OPEN ≠ ∅ dos ← pop-front(OPEN)for each (a, s′) in successors(s) dow ← evaluate-and-insert(NOVELTY, features(s′))   ▷ nil when the novelty is above kif w = nil and not goal(s′) thencontinue                                     ▷ prune: nothing new in s′parent[s′] ← (s, a)if goal(s′) thenreturn plan-to(s′)push-back(OPEN, s′)return failurefunction iterated-width(s₀, k-max)for k in 1, …, k-max doπ ← IW(s₀, k)if π ≠ failure thenreturn πreturn failure

In the crates

  • width-search

    IW(k) is breadth-first search that drops every non-goal state with novelty greater than k; iterated width runs IW(1), IW(2), ... until one succeeds.

    iwiterated_width

Lineage

Comes from

builds on Breadth-first search

builds on Novelty pruning

Led to

Rollout IW builds on it

SIW builds on it

Papers

  1. Width and Serialization of Classical Planning Problems Nir Lipovetzky, Hector Geffner · 2012· ECAI 2012 (Frontiers in Artificial Intelligence and Applications) introduces doi 10.3233/978-1-61499-098-7-540
  2. Classical Planning with Simulators: Results on the Atari Video Games Nir Lipovetzky, Miquel Ramírez, Hector Geffner · 2015· IJCAI 2015 applies