Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

Symbolic Dijkstra

Also known as symbolic uniform-cost search, bidirectional symbolic Dijkstra

search symbolic-search

Symbolic Dijkstra is uniform-cost search over sets of states stored as BDDs (binary decision diagrams). It keeps one open set per path cost g, expands the set with the smallest g, and files the successors through operators of cost c under g + c; zero-cost operators refill the set that is being expanded. The first expanded set that contains a goal state gives a cheapest plan, and an empty open list proves that no plan exists. The bidirectional form searches forward from the start and backward from the goal, and stops when the best meeting of the two sides is proven optimal. Use it for cost-optimal planning when no good heuristic is at hand.

Pseudocode

algorithm Symbolic Dijkstra(I, G, T)input: initial state set I, goal set G, relations T grouped by costoutput: a cheapest plan, or failureOPEN[0] ← I                                  ▷ one state set per cost gCLOSED ← ∅while some OPEN[g] ≠ ∅ dog ← smallest cost with OPEN[g] ≠ ∅S ← OPEN[g] ∖ CLOSED                      ▷ drop states closed at a cost ≤ gOPEN[g] ← ∅if S = ∅ thencontinueif S ∩ G ≠ ∅ thenreturn reconstruct(S ∩ G, g)CLOSED ← CLOSED ∪ Sfor each (c, T_c) in T doOPEN[g + c] ← OPEN[g + c] ∪ image(T_c, S)  ▷ c = 0 refills the bucket of greturn failurefunction bidirectional(I, G, T)input: initial state set I, goal set G, relations T grouped by costoutput: a cheapest plan, or failureF ← frontier forward from I with imageB ← frontier backward from G with preimagebest ← ∞while F or B has open states doif best ≤ max(f-min(F), f-min(B), g-min(F) + g-min(B)) thenbreakD ← the frontier whose next set has fewer BDD nodesexpand-one-bucket(D)best ← min(best, cheapest-meeting(F, B))   ▷ new sets meet the other sideif best = ∞ thenreturn failurereturn join(forward-plan(F), backward-plan(B))

In the crates

Lineage

Comes from

builds on Dijkstra's algorithm

Led to

BDDA* generalizes it

SymBA* builds on it

Symbolic pattern databases builds on it

Papers

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