Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

Symbolic BFS

Also known as symbolic breadth-first search

search symbolic-search

Symbolic BFS is breadth-first search over sets of states, each stored as a binary decision diagram (BDD): a compact graph that represents a Boolean function over the bits of a state. One step computes the image of a whole layer (the set of all its successors) and keeps only the states not seen before. The first layer that contains a goal state gives a plan with the fewest operators, and an empty layer proves that no plan exists. Backward search does the same from the goal set with preimages (sets of predecessors). Use it for unit-cost tasks with large but regular state spaces, where BDDs stay small.

Pseudocode

algorithm Symbolic BFS(I, G, T)input: initial state set I, goal set G, operator relations Toutput: a plan with the fewest operators, or failureL₀ ← IR ← L₀                                       ▷ all states reached so fari ← 0while Lᵢ ∩ G = ∅ doLᵢ₊₁ ← (⋃ over o in T of image(o, Lᵢ)) ∖ R ▷ only new statesif Lᵢ₊₁ = ∅ thenreturn failureR ← R ∪ Lᵢ₊₁i ← i + 1return reconstruct(L₀, …, Lᵢ, G, T)function reconstruct(L₀, …, Lₙ, G, T)s ← pick-state(Lₙ ∩ G)plan ← ⟨⟩for k in n, …, 1 dofor each o in T doif preimage(o, {s}) ∩ Lₖ₋₁ ≠ ∅ thens ← pick-state(preimage(o, {s}) ∩ Lₖ₋₁)plan ← ⟨o⟩ · planbreakreturn plan

In the crates

Lineage

Comes from

builds on Breadth-first search

Led to

Nothing on this site.

Papers

  1. Efficient symbolic search for cost-optimal planning Álvaro Torralba, Vidal Alcázar, Peter Kissmann, Stefan Edelkamp · 2017· Artificial Intelligence survey doi 10.1016/j.artint.2016.10.001