Bidirectional Search for Longest Paths: Case for Front-to-Front Heuristics

Tzur Shubi, Ariel Felner, Solomon Eyal Shimony, Shahaf S. Shperberg
6/4/2026
cs.AI

No confident code implementation found for this paper.

Abstract

Bidirectional heuristic search can potentially reduce search effort for problems amenable to backward search. Therein, it is well-known that front-to-front heuristics can reduce the number of node expansions, but their overhead is so high that overall runtime almost always increases.

Show full abstract

We propose BiXDFBnB, a bidirectional depth-first branch-and-bound algorithm that adapts the Single-Frontier Bidirectional Search (SFBDS) framework - originally developed for shortest-path (MIN) problems - to the Generalized Longest Simple Path (GLSP) setting. Because SFBDS inherently operates on paired states, front-to-front (F2F) heuristic evaluation arises naturally and avoids the overhead typically associated with bidirectional frontier management. We show that this adaptation can be successfully applied to maximization (MAX) problems while efficiently handling overlapping constraints. BiXDFBnB is applied to several types of longest-path problems: Longest Simple Path (LSP), Snakes, and Coil-in-the-Box (CIB). Empirical evaluation shows that the new algorithm frequently reduces the number of node expansions and, in some cases, also improves overall runtime.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{shubi2026bidirectional,
  title  = {Bidirectional Search for Longest Paths: Case for Front-to-Front Heuristics},
  author = {Tzur Shubi and Ariel Felner and Solomon Eyal Shimony and Shahaf S. Shperberg},
  year   = {2026},
  eprint = {2606.05956},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.05956v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.05956.svg)](https://codeofpaper.com/paper/2606.05956)

Discussion