Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

Symbolic pattern databases

Also known as symbolic PDB, BDD pattern database

abstraction symbolic-search

A symbolic pattern database is a planning heuristic computed with BDDs (binary decision diagrams). A pattern is a subset of the task variables, and the task is projected onto it: all other variables are removed, which gives a much smaller task. A blind backward Dijkstra in this projection runs to the end and stores the goal distances as one BDD per value h. A state gets the distance of its projection, and a state whose projection cannot reach the goal is a dead end. The heuristic is admissible (it never overestimates) and consistent (it drops by at most the cost of each operator), so it suits BDDA* and other optimal searches.

Pseudocode

algorithm Symbolic PDB(P, G, T)input: pattern P (a set of variables), goal set G, relations T grouped by costoutput: the heuristic as disjoint sets H_h, one per goal distance hT_P ← project(T, P)                          ▷ quantify the bits of variables outside PG_P ← project(G, P)OPEN[0] ← G_PCLOSED ← ∅H ← ∅while some OPEN[g] ≠ ∅ do                    ▷ blind backward Dijkstra to the endg ← smallest cost with OPEN[g] ≠ ∅S ← OPEN[g] ∖ CLOSEDOPEN[g] ← ∅if S ≠ ∅ thenH ← H ∪ {(g, S)}CLOSED ← CLOSED ∪ Sfor each (c, T_c) in T_P doOPEN[g + c] ← OPEN[g + c] ∪ preimage(T_c, S)return H                                     ▷ states in no H_g are dead ends

In the crates

  • symbolic-search

    Pattern database heuristics computed symbolically and stored as one BDD per h value.

    pdb

Lineage

Comes from

builds on Pattern database

builds on Symbolic Dijkstra

Led to

Canonical PDB heuristic builds on it

Papers

  1. Symbolic Pattern Databases in Heuristic Search Planning Stefan Edelkamp · 2002· Proceedings of the Sixth International Conference on Artificial Intelligence Planning Systems (AIPS) introduces