Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

DIBBS

Also known as Dynamically Improved Bounds Bidirectional Search

search heuristic-search

DIBBS (Dynamically Improved Bounds Bidirectional Search) searches from the start and from the goals at the same time, and finds a cheapest path. Each side orders its states by b = 2g + h − h_opposite: h estimates the distance to the side's target, and h_opposite the distance back to its own origin. So b grows on paths where a heuristic was too low, and the lower bound on the optimal cost improves as the search runs. The side with the smaller b_min expands next, and the search stops when b_min_F + b_min_B ≥ 2μ, with μ the cost of the cheapest path through a state that both sides reached. With consistent heuristics (an estimate never drops by more than the edge cost along an edge) the path is optimal.

Pseudocode

algorithm DIBBS(s₀, GOALS, hF, hB)input: start s₀, goal states GOALS, consistent heuristics hF (to a goal) and hB (from s₀)output: a cheapest path from s₀ to a goal, or failuregF[s₀] ← 0OPEN-F ← {s₀}                                ▷ ordered by bF = 2 gF + hF − hBgB[t] ← 0 for each t in GOALSOPEN-B ← GOALS                               ▷ ordered by bB = 2 gB + hB − hFμ ← ∞while OPEN-F ≠ ∅ and OPEN-B ≠ ∅ doif min-b(OPEN-F) + min-b(OPEN-B) ≥ 2 μ thenbreakif min-b(OPEN-F) ≤ min-b(OPEN-B) then      ▷ the side with the smaller bexpand(OPEN-F, successors, gF, gB)elseexpand(OPEN-B, predecessors, gB, gF)if μ = ∞ thenreturn failurereturn join(path from s₀ to m, path from m to a goal)procedure expand(OPEN, next, g, g-other)s ← extract-min(OPEN)for each (s′, c) in next(s) doif g[s] + c < g[s′] then                   ▷ reopens closed statesg[s′] ← g[s] + cparent[s′] ← sinsert-or-update(OPEN, s′, 2 g[s′] + h(s′) − h-opposite(s′))if g[s′] + g-other[s′] < μ thenμ ← g[s′] + g-other[s′]m ← s′

In the crates

Papers

  1. Dynamically improved bounds bidirectional search E. C. Sewell, S. H. Jacobson · 2021· Artificial Intelligence introduces doi 10.1016/j.artint.2020.103405