BAE*
Also known as Bidirectional A* with error, Bidirectional A* with Error
search heuristic-searchminiplan
BAE* (Bidirectional A* with error) searches forwards from the start and backwards from the goal 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. The term g − h_opposite is the heuristic's error on the path so far, so b grows where the heuristic was too low. The search stops once the two smallest b values add up to at least 2μ, with μ the cost of the best path through a state that both sides reached; with a consistent heuristic (one that never drops by more than an edge's cost along that edge), μ is then optimal. Shperberg et al. (2025) call DIBBS identical to BAE*; in this crate, bae_star differs from dibbs only in its side choice: it expands the side with fewer open states.
Pseudocode
algorithm BAE*(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 |OPEN-F| ≤ |OPEN-B| then ▷ bae_star: the side with fewer open statesexpand(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
heuristic-searchBidirectional A* with error.
miniplanHeuristic-guided Bidirectional A* with Error over the grounded task.
Papers
- Bidirectional heuristic search based on error estimate S. K. Sadhukhan · 2013· CSI Journal of Computing
- Bidirectional Bounded-Suboptimal Heuristic Search with Consistent Heuristics Shahaf S. Shperberg, Natalie Morad, Lior Siag, Ariel Felner, Dor Atzmon · 2025