Given an origin, a destination, and a directed graph in which each edge carries a pair of non-negative costs, the bi-objective routing (BOR) problem asks for the complete set of all Pareto-optimal paths, the Pareto frontier of non-dominated routes. This matters whenever a single "best" route does not exist: an electric vehicle trades travel time against energy, and different drivers sit at different points on the curve. BOR is hard because the Pareto-optimal set can be exponentially large, which makes compute-on-demand search too slow for interactive use, while full all-pair precomputation is infeasible to store. We propose Multi-level Bi-Objective Routing (MBOR), built on three ideas: a boundary multigraph representation, a Multi-level Encoded Pareto Frontier View (MEPFV), and two-dimensional cost-interval based pruning. On real road-network data the method runs more than 10× faster online than exact compute-on-demand baselines.
Single-objective shortest path (Dijkstra, A*, contraction hierarchies) returns one route in microseconds. The moment two costs cannot be collapsed into one number, the single route is the wrong answer: you want the whole non-dominated frontier. Formally, a path p dominates p' if it is no worse on both costs and strictly better on at least one; the answer is every path that nobody dominates. Applications include eco-routing (time vs energy), collaborative path selection among stakeholders with different objectives, and skyline path queries.
G = (N, E, c) where each edge has a cost pair c: E → ℝ+ × ℝ+, written (c1, c2).p, p', p ≺ p' (p dominates p') iff c1(p) ≤ c1(p'), c2(p) ≤ c2(p'), and c(p) ≠ c(p').POG(o,d) is the set of origin-destination paths that no path dominates; POCG(o,d) is their cost set.A ⊕ B = { a + b : a ∈ A, b ∈ B }; combining sub-path frontiers uses this sum followed by a dominance filter.BOR is NP-hard and the number of Pareto-optimal paths can be exponential in the worst case, which is exactly why neither pure compute-on-demand search nor full all-pair precomputation scales, and why MBOR precomputes only between region boundaries.
Partition G into fragments; the nodes on cross-fragment edges are boundary nodes. A small graph over only the boundary nodes carries the inter-region trade-offs as multi-edges (whole Pareto cost-sets), because two boundary nodes can be connected by several incomparable routes.
The Multi-level Encoded Pareto Frontier View stores, compactly, the within-fragment Pareto sets (FPPV) and the boundary-to-boundary Pareto sets over the boundary multigraph (BPPV), so a query stitches a few precomputed frontiers instead of re-deriving them.
In the advanced variant, each candidate boundary-node pair gets a two-dimensional cost-interval; pairs whose interval is dominated cannot contribute to the frontier and are skipped before the expensive Minkowski combination.
Partition G into fragments S = {S1,...,Sf} (min-cut, e.g. KaHIP). A node is a boundary node if it has a neighbor in another fragment. The boundary multigraph Gb = (Nb, Eb, Cb) has two kinds of edges:
The Multi-level Encoded Pareto Frontier View has two parts:
[destination, next-hop, c1, c2].[destination, fragment-of-next-hop, next-hop, c1, c2].Identify boundary nodes from cross-fragment edges; encode each fragment's Pareto path view (FPPV) by running a bi-objective label-setting search from every node (Alg 2, paretoOptEncoding); build the boundary multigraph by inserting local multi-edges (within-fragment boundary-to-boundary Pareto sets) and boundary edges; finally encode the BPPV by running the same label-setting over the boundary multigraph.
paretoOptEncoding(G): # Algorithm 2
for each start node s (in parallel):
PQ ← {label(s, cost=(0,0))} # lexicographic (c1, c2) order
while PQ not empty:
l ← PQ.pop_min()
if c2(l) ≥ c2_min[node(l)]: continue # truncated dominance
c2_min[node(l)] ← c2(l)
for each (edge / multi-edge cost) out of node(l):
l' ← extend l; if not dominated: PQ.push(l')
store the Pareto path view from s
For a query (o,d), form a superset of the frontier by combining, over boundary-node pairs (oBN, dBN), the precomputed pieces with the Minkowski sum, then filter by dominance:
PO_sup ← ∅ # Algorithm 3
for oBN in Boundary(Frag(o)):
for dBN in Boundary(Frag(d)):
PO_sup ← PO_sup ∪ ( FPPV(o→oBN) ⊕ BPPV(oBN→dBN) ⊕ FPPV(dBN→d) )
if Frag(o) == Frag(d): PO_sup ← PO_sup ∪ FPPV(o→d) # within-fragment
return DominanceCheck(PO_sup)
The combination above is the bottleneck because many boundary-node pairs cannot contribute. MBOR-Adv builds a two-dimensional cost-interval (2DCI) for each pair from the segment cost-sets in constant time, selects the most lower-left "benchmark" 2DCI, and prunes any pair whose 2DCI is dominated before doing its Minkowski sum. A second technique prunes multi-edges during encoding using a bi-objective triangle inequality and reverse-order edge enumeration, reducing the boundary multigraph's encoding cost.
For a boundary-node pair, the combined route's best conceivable cost is its ideal corner (min total c1, min total c2), and its whole frontier lies inside a rectangle anchored there. If that corner is already dominated by the frontier found so far, every path through the pair is dominated, so the pair is skipped. Processing pairs in ideal-corner order tightens the frontier early and prunes the rest, all while returning the identical exact answer.
Dataset: the 9th DIMACS Implementation Challenge San Francisco Bay Area road network (two costs: travel time and distance), partitioned with KaHIP; 50 random queries per network size. Baselines: NAMOA*dr and BOA*, both exact.
| Network | nodes | edges | boundary nodes | avg solutions |
|---|---|---|---|---|
| 1/20 BAY | 15,366 | 41,180 | 876 | 15 |
| 1/10 BAY | 32,205 | 76,230 | 696 | 13 |
| 1/5 BAY | 64,684 | 156,682 | 873 | 47 |
| Entire BAY | 321,270 | 800,172 | 1,322 | 119 |
| Method | 1/20 BAY | 1/10 BAY | 1/5 BAY | Entire BAY |
|---|---|---|---|---|
| NAMOA*dr | 4.47 / 4.13 | 8.34 / 8.17 | 39.69 / 31.93 | 482.83 / 360.20 |
| BOA* | 4.34 / 4.02 | 8.56 / 8.31 | 27.99 / 20.43 | 343.05 / 221.69 |
| MBOR-Basic | 0.64 / 0.53 | 0.33 / 0.32 | 2.61 / 1.20 | 135.31 / 29.54 |
| MBOR-Adv | 0.38 / 0.30 | 0.19 / 0.18 | 1.93 / 0.70 | 86.84 / 4.56 |
Precomputation with MBOR makes online queries more than 10× faster than the compute-on-demand baselines for most metrics; MBOR-Adv reduces online runtime a further 35.8% over MBOR-Basic on the entire BAY network. All four methods return the same (exact) solutions. Sensitivity plots over the number of fragments are in the full PDF (Figures 5–9).
A from-scratch Rust reimplementation (arunshar/mbor, hub at arunshar.com/mbor) reproduces the method on the open DIMACS Bay Area subnetworks. Every answer is checked against two exact baselines (BOA*, bi-objective Dijkstra) and an exact full-graph search; on real BAY queries all methods return the identical Pareto frontier (0 mismatches).
| Network | machine | BOA* (ms) | MBOR-Basic | MBOR-Adv | Adv vs BOA* | avg sol |
|---|---|---|---|---|---|---|
| 1/20 BAY | Mac | 5.59 | 0.62 | 0.054 | 104× | 15.2 |
| 1/10 BAY | Mac | 2.85 | 0.38 | 0.040 | 72× | 5.2 |
| 1/5 BAY | Mac | 81.70 | 10.42 | 1.87 | 44× | 47.4 |
| 1/20 BAY | MSI | 8.76 | 1.14 | 0.095 | 93× | 15.2 |
| 1/10 BAY | MSI | 4.23 | 0.58 | 0.074 | 57× | 5.2 |
The paper's ">10× with precomputation" reproduces on both machines; reproduced MBOR-Basic (0.62 ms) lands on the paper's 0.64 ms, and reproduced solution counts match the paper on 1/20 BAY (15.2 vs 15) and 1/5 BAY (47.4 vs 47). Partition is a dependency-free BFS region-growing stand-in (KaHIP min-cut would speed MBOR further); precompute is correct but not yet memory-optimized for full BAY. Full numbers and method: EVIDENCE.md.