Manuscript Offprint
arXiv:2608.26952On the Instance Optimality of Bidirectional Dijkstra's Algorithm
Abstract
Recent work by Haeupler, Hladík, Rozhon, Tarjan, and Tětek on the instance optimality of shortest-path algorithms established several results concerning Dijkstra's algorithm and bidirectional Dijkstra's algorithm in weighted and unweighted graphs. Motivated by these results, we revisit the question of instance optimality for shortest st-path algorithms in the standard query model.
We identify several issues in the analysis of the instance optimality of both unidirectional and bidirectional Dijkstra's algorithms and provide corresponding counterexamples. We then propose a minimal simple modification of the bidirectional Dijkstra algorithm and prove that the resulting variant is instance optimal in the weighted setting. Furthermore, we revisit the unweighted case, provide a simplified proof of the lower bound showing that no algorithm can achieve instance optimality up to a factor better than , where denotes the maximum degree of the graph, and discuss the implications of this result for approximation algorithms. Finally, we make progress on the open problem of instance optimality in simple graphs. We show that if the problem instance satisfies , where n is the number of nodes and m is the number of edges queried by our algorithm, then it is optimal up to a constant factor. Additionally, we show instance optimality for a broad class of instances, in particular when the largest degree in the graph is at most the square root of the number of explored edges, our algorithm exhibits optimality up to a constant factor.
1 Introduction
The shortest st-path problem asks for a path of minimum length from a given node to a target node in a weighted graph . Negative edge weights introduce significant challenges when designing shortest-path algorithms, as they can invalidate greedy strategies. The Bellman–Ford algorithm [4, 14] solves the problem in the absence of negative cycles in time. For graphs with non-negative edge weights, Dijkstra's algorithm [6] provides the canonical solution. It employs a greedy approach, using a priority queue to repeatedly select the node with the smallest distance computed so far. An implementation using Fibonacci heaps [8] achieves a time complexity of . Moreover, it has been shown that among all algorithms based solely on comparisons and addition, Dijkstra's algorithm is asymptotically optimal [17, 16].
Algorithms are traditionally evaluated according to worst-case or average-case guarantees. A considerably stronger notion is that of instance optimality [1, 7]. An algorithm A is instance optimal with respect to a complexity measure T if, for any given input x, no other correct algorithm can, in expectation, solve x using fewer queries than A, up to a constant factor. Here we will focus on instance optimality in the context of shortest st-path problems, however, the literature in this domain is vast and includes results in sorting with partial information [12], finding the convex hull [3], and ordering vertices by distance from a source vertex [13, 20].
Any correct algorithm for computing the shortest st-path must satisfy two requirements. First, it must identify a shortest st-path. Second, it must be able to certify, with sufficiently high confidence, that the path returned is indeed optimal. While classical algorithms such as Dijkstra's algorithm and breadth-first search satisfy both requirements, they are largely agnostic to the particular structure of the input graph. Consequently, they do not exploit special topological features that may allow substantially faster solutions on specific instances. This observation suggests a possible obstacle to instance optimality: an algorithm tailored to a particular graph family may be able to identify a shortest path using significantly fewer queries, provided it can still certify that no shorter path exists.
The central theme of the first part of this paper is that the difficulty of the shortest st-path problem lies not only in finding a candidate path, but also in proving that the candidate is optimal. Our counterexamples exploit precisely this distinction. We construct algorithms that use inexpensive structural shortcuts to identify a shortest path and then employ lower bounds on the shortest-path length to certify optimality. In the case of unidirectional Dijkstra's algorithm, this leads to improvements by a factor of , where denotes the maximum degree of the graph. On the other hand, we show that a slight modification of bidirectional Dijkstra's algorithm effectively performs the additional work necessary to establish such lower bounds, thereby preventing the existence of substantially faster shortcut-based algorithms.
Haeupler, Hladík, Rozhon, Tarjan, and Tětek [11] present several results concerning the instance optimality of Dijkstra's algorithm and its variants. In particular, they claim that, under certain conditions, Dijkstra's algorithm is instance optimal, that their implementation of bidirectional Dijkstra's algorithm achieves instance optimality, and that in the unweighted case bidirectional breadth-first search is instance optimal up to a factor of . We revisit these results and show that some of the arguments are incomplete and require refinement.
Our contributions are as follows. First, we present a family of counterexamples showing that the implementations of Dijkstra's algorithm and bidirectional Dijkstra's algorithm considered in [11] are not instance optimal. More precisely, we show that they can be outperformed by a factor of on certain graph families. Second, we identify the key issue in the proof of instance optimality for bidirectional Dijkstra's algorithm and propose a simple modification of the algorithm. We prove that the resulting variant is instance optimal in the weighted setting. This allows us to provide a simplified proof of instance optimality for the modified bidirectional Dijkstra's algorithm. Third, we revisit the unweighted setting and provide a simplified proof of the lower bound showing that no algorithm can achieve instance optimality up to a factor better than . Finally, we make considerable progress on the open problem concerning instance optimality of bidirectional Dijkstra's algorithm in simple graphs. First, we show that every correct algorithm that uses a sufficiently small number of queries must in turn query a constant fraction of all the nodes in the graph. Secondly, we show the full claim for graph instances whose maximum degree of explored nodes is at most the square root of the number of explored edges. Some particular implications of our results include instance optimality for classes of graphs where the average degree of the explored nodes is bounded by an explicit constant, and classes where the number of explored edges is , where is the number of explored nodes. This covers the sparsest and densest of problem instances, making the general claim more plausible.
The paper is organized as follows. In Section 2, we introduce the fundamental concepts used throughout the paper. Section 3 studies a restricted setting that illustrates the main ideas behind our counterexamples. Section 4 considers the general weighted setting and establishes instance optimality of a modified bidirectional Dijkstra algorithm. Section 5 discusses the unweighted case and approximation-related observations. Section 6 addresses the more challenging setting of simple graphs and provides a partial resolution of the corresponding open problem. Finally, Section 7 concludes the paper.
We will follow [11] and use the standard query model for sublinear graph algorithms as discussed in chapter 10 of [10]. The measure of complexity used is the number of queries performed. The graph in question is in general a weighted, directed, multi-graph with self-loops and parallel edges allowed.
Each node stores a list corresponding to its out-going edges, and a list corresponding to its in-going edges. If the graph is undirected then these two lists are the same. Each edge is on two incidence lists. Each edge consists of the two endpoints, as well as a weight. The nodes are numbered from 1 to n. For a constant cost we can perform the following queries:
-
Degree(i) which returns the degree of node i, in the case of undirected graphs we analogously have InDegree(i) and OutDegree(i).
-
Edge which returns the edge corresponding to the -th neighbor of the node , where and .
Now we will briefly describe the shortest st-path problem. We are given a weighted multi-graph . The edge weights are determined by a weight function . In our case it will be important to consider strictly positive edge weights. This edge weight function gives rise to a distance function that maps any pair of nodes into the shortest distance from to . The shortest st-path problem asks for an arbitrary path of shortest length starting at and ending at .
Dijkstra's algorithm [6] accepts a weighted multigraph with nonnegative edge weights, and a starting node s. It then computes the shortest distances by storing for each node u the shortest path computed thus far . In the beginning only the starting node s is open. The main loop of the algorithm stops when there are no more open nodes. In each iteration of the main loop the open node u with the smallest computed distance is chosen and set closed. Then for each of the open neighbors v of u their computed distance is updated as . Once a node has been closed its computed distance equals the true distance. Algorithm 1 summarizes the full Dijkstra's algorithm.
Algorithm 1 Dijkstra's Algorithm
1: function DIJKSTRA(G, s) 2: for all ; 3: ; 4: Open s; 5: while an open vertex exists do 6: Let u be the open vertex with the smallest ; 7: Close u; 8: for each neighbor v of u do 9: if v is not closed then 10: ; 11: end if 12: end for 13: end while 14: end function
Instance optimality [7] is a strong measure of algorithmic complexity that essentially gives guarantees regarding any possible instance of the algorithm.
Definition 2.1 (Algorithm Correctness). An algorithm A is said to be correct if on any input it returns the correct answer with probability at least 0.9.
Naturally, the 0.9 cutoff is arbitrary and can change in different contexts.
Definition 2.2 (Instance Optimality). An algorithm A is instance optimal if it is correct and there exists a constant such that for any input x and for any correct algorithm it holds that the expected complexity and of A and on x satisfy
3 Is Dijkstra's Algorithm Instance Optimal?
We shall start with the simplest example. Haeupler et al. [11] first give a simple and restricted example of the kind of proof they focus on the their paper. The full statement and proof of Theorem 2 in [11] is as follows:
Quoted Theorem A1 ([11, Theorem 2]). Let us have a directed weighted graph G with positive weights and assume we are given two vertices s, t. Assume the only operation we can do is to take a vertex we have seen and ask for its next out-neighbor (in an adversarial ordering) and the weight of the edge to that vertex.
Consider executing Dijkstra’s algorithm from s and stopping it once we close some vertex v with . Then this algorithm correctly computes the st-distance. Furthermore, no correct deterministic algorithm A can perform fewer queries on G.
Proof (from [11]). First, we argue correctness. By the standard proof of correctness of Dijkstra's algorithm, once we close the vertex , we have . At the same time, vertices are closed in order of non-decreasing distance, meaning that . Moreover, it always holds that . Thus, we have , meaning that the distance is correct.
For the sake of contradiction, let us have an algorithm that performs fewer queries than Dijkstra on . Therefore, there has to be an edge for that does not query. We define a graph where we replace the edge by with weight . The distance between and in is then . However, the algorithm does not query this edge. Since the rest of the graph is exactly the same, the algorithm thus returns the same answer on both and , which implies that the algorithm is not correct.
In the above proof, the error is highlighted in red. For instance, this does not hold if algorithm A (sometimes) queries the neighbors of t. Since in the constructed case the new edge is attached to t this kind of algorithm then might act different given this new edge. In our counterexample we aim to do exactly this; condition the execution on the neighborhoods of s and t.
Let us construct such an algorithm that will contradict the Quoted Theorem A1 on a particular class of graphs. We will be concerned with undirected graphs; however, it is trivial to adjust the setting to directed graphs. One such algorithm is presented as Algorithm 2. We are careful to implement Algorithm 2 with only the operations allowed by the Quoted Theorem A1. The idea behind the algorithm is to first check for a shortcut of the form that connects s and t and see if it corresponds to the shortest path before defaulting to a more general search strategy (e.g. standard Dijkstra's algorithm) if no shortcut is found. Initially, we check if there exists a node such that its neighborhood is exactly . The next step is to evaluate the lower bound on the shortest s, t path as since any st-path must use at least one edge to leave s and one edge to get to t, that is if there is no direct edge which alternative is also hard coded into Algorithm 2. If we find such a node m whose neighborhood is and for whom it holds that the lower bound is equal to then we can safely return as the path of shortest length without needing to explore further shortest paths. If there is no such node m, we simply resort to Algorithm 3 (or any other correct shortest st-path algorithm). In order to fulfill the constraint of the Quoted Theorem A1 one can replace Algorithm 3 on Line 35 by any correct shortest st-path algorithm that uses only the allowed operations. This implies that Algorithm 2 is always correct.
Algorithm 2 Cheap Bidirectional st-Dijkstra
1: function CHEAP_BID(G, s, t) 2: m, t_pointer ← Null 3: b_s, ← +∞ 4: b_t, ← +∞ 5: for Next Neighbor v of s do 6: if v = t then 7: m ← Null 8: Break the for loop 9: end if 10: N_v ← {} 11: for Next Neighbor u of v do 12: N_v ← N_v ∪ {u} 13: if |N_v| > 2 then 14: Break the for loop 15: end if 16: if u = t then 17: t_pointer ← t 18: ← 19: ← 20: end if 21: end for 22: if N_v = {s, t} then 23: m ← v 24: end if 25: b_s ← min(b_s, ) 26: end for 27: if t_pointer ≠ Null then 28: for Next Neighbor v of t do 29: b_t ← min(b_t, ) 30: end for 31: end if 32: if m ≠ Null and b_s + b_t = + then 33: return Path (s, m, t), Length b_s + b_t 34: else 35: return Shortest path computed by Algorithm 3 36: end if 37: end function
What is left is to construct a family of graph instances on which Algorithm 2 uses more than a constant factor fewer queries in expectation, compared to Dijkstra's algorithm as described in Quoted Theorem A1. We denote an instance of such a graph as and it consists of
• Nodes: has nodes, namely and .
• Edges: has the following edges: , , nodes form a clique, and finally nodes also form a clique. All edges are undirected.
- Edge Weights: edges incident to s or t have arbitrary uniform positive weights, and all other edge weights are arbitrary (and positive).
Figure 1 shows an example of the graph for D = 3.
Note that for the sake of providing a counterexample to Quoted Theorem A1 the clique attached to node t is irrelevant and the same would hold in its absence; however, it will be relevant to the bidirectional case.

Figure 1: Depiction of the graph .
Claim 3.1. Let . The expected number queries for Algorithm 2 on graph with input is , while the expected number of queries for Dijkstra's algorithm on the same graph and input is .
Proof. Let be the average number of queries performed by Algorithm 2 on graph with inputs .
The first for loop is executed at most times. The only non constant operation is the nested for loop, that loops over the neighbors of a given neighbor of . However, we see that Line 13 prevents the inner loop from execution more than 3 times hence its cost is constant per the iteration of the outer loop. The conclusion is that the total cost of the first for loop is .
Next, in the case we found node as a neighbor of a nodes whose neighborhood equals , we compute the lowest edge weight incident to . We do this with a loop that executes times and uses operations on each iteration. In total that is .
Then in the case that we found a node and the path satisfies the lower bound for the -path we can safely return as the shortest path. Since in the case of graphs with inputs we will always find such a node the expected number of operations is .
Next, we shall show that the expected number of operations used by Dijkstra's algorithm with the stopping condition on with inputs is . At the first iteration of the while loop, all the nodes will be added to the open priority queue. However, all the edge weights are the same, so the priority queue will not be able to distinguish node from the rest of the nodes. Notice that the algorithm terminates when a node is closed whose distance is greater than or equal to the current . However, this can only occur once is closed, since nodes all have distances from equaling . Therefore, the algorithm will have to explore all nodes before it can confirm to be the shortest path. For each of the nodes the algorithm will have to perform queries (since they all have degree ). Therefore, the algorithm will perform queries before stopping, regardless of when it explores . The final conclusion is that , where is the complexity of the Dijkstra's algorithm variant in question.
Corollary 1. Dijkstra's algorithm, with restrictions as in [11], is not instance optimal for the shortest st-path problem.
Proof. With Claim 3.1 we successfully showed that there cannot exist a constant such
Runtime on Erdős-Rényi graphs (p = 0.020)

(a) Erdős–Rényi graphs
Runtime on graphs

(b) graphs
Figure 2: Runtime comparison of shortest-path algorithms. (a) Comparing Dijkstra's Algorithm as Described in Quoted Theorem A1 with Algorithm 3, on Erdős–Rényi graphs. (b) Comparing Algorithm 3 and Algorithm 2, on graphs. All the code used is available on GitHub
that for all , hence Dijkstra's algorithm is not instance optimal.
4 Instance Optimality in Weighted Graphs
Despite its near optimal asymptotic time complexity, Dijkstra's algorithm often performs worse on larger datasets compared to other approaches. With preprocessing available, powerful alternatives exist [9]. Here we focus on bidirectional Dijkstra's algorithm, originally proposed by Dantzig [5] and Nicholson [15]. The idea is to alternate between two executions of Dijkstra's algorithm; one starting at s and going forward, and one starting from t and going backward (reversing the edges). Then at some time after the two executions meet the information of the two executions is combined to construct the path of shortest length. Much more details on bidirectional search are available in [19]. In Figure 2a we can see the results of experiments performed measuring the runtime for the shortest st-path problem comparing: Unidirectional Dijkstra's Algorithm as described by the Quoted Theorem A1 and the Bidirectional Dijkstra's Algorithm as described by Algorithm 3 which is the implementation as proposed by Haeupler et al. All data-points represent means of 10 iterations of the experiment.
There are two key properties of Algorithm 3
-
The switch between the forward and backward execution happens on every iteration of the main while loop, so that the exploration from both directions is balanced.
-
The stopping condition is where is the length of the shortest st-path computed so far, and , are the most recent nodes explored by the forward and backward execution respectively. This was first suggested in [18].
Algorithm 3 Bidirectional Dijkstra's Algorithm Implementation From [11]
Require: Graph , source vertex s, target vertex t
1: ▷ Length of the shortest path found so far
2: ▷ Middle edge of the shortest path found so far
3: , ▷ Vertices currently being explored in the two executions
4: Initialize forward search from s on G and backward search from t on G with edges reversed
5: while neither of the two executions has terminated do
6: Alternate between relaxing one edge in the forward and backward algorithms
7: end while
8:
9: “shortest su-path from forward execution” + + “shortest vt-path from backward execution”
10: return P
11: function FORWARD_ALGORITHM
12: ;
13: Open s
14: while an open vertex exists do
15: Let u be the open vertex with smallest
16: Close u
17:
18: if then
19: terminate the whole algorithm
20: end if
21: for each forward neighbor v of u do
22: if v is not closed then
23:
24: end if
25: if v is closed in the backward execution and then
26:
27:
28: end if
29: end for
30: end while
31: end function
32: function BACKWARD_ALGORITHM
33: Analogous to FORWARD_ALGORITHM with roles of forward and backward swapped
34: end function
We shall see that the condition on Line 25, highlighted in red, breaks instance optimality. Now we will examine Theorem 3 in [11] and comment on the corresponding proof that is offered.
Quoted Theorem A2 ([11, Theorem 3]). Algorithm 3 is an instance-optimal algorithm, under query complexity, for the shortest st-path problem in both directed and undirected graphs with positive weights.
In their proof they arrive at a contradiction by assuming the existence of an algorithm A which queries a sufficiently small fraction of edges that Algorithm 3 queries. The main error in the proof is that they claim the shortest st-path has its length strictly larger than , where and are two edges from the forward and backward executions respectively, that are accessed with a sufficiently small probability by algorithm A. More precisely, they assume that there was a point in the execution when it was true that . We will exploit this by constructing a counterexample with an algorithm A for which it holds that for every pair of edges and , belonging to the forward and backward exploration respectively, that is accessed by Algorithm 3 and not by A, it holds that , and hence the construction in the proof does not work.
This is achieved with the same algorithm and family of graphs as in Section 3.
Claim 4.1. Let . The expected number of queries for Algorithm 2 on graph with inputs is , while the expected number of queries for Algorithm 3 on graph with inputs is .
Proof. Let be the expected number of queries for Algorithm 2 on graph with inputs . Using the same reasoning as in Claim 3.1 we have .
Now it is left to show that where is the expected number of queries performed by Algorithm 3 on graph with inputs . We will consider the expectation with respect to all possible orderings of the nodes in the priority queue, which is a stronger notion than simply considering a particular adversarial ordering. Once either the forward or backward execution closes node the rest of the operations to find the shortest path take queries, since the next closed node will trigger the termination condition on Line 18. However, since all edge weights are uniform neither execution can distinguish from the rest of the neighbors of . Therefore, the number of queries used is determined only by the ordering in which node is closed in the two executions. Let be one such ordering for the forward execution and be the ordering for the backward execution. For all the nodes that are closed before all of their neighbors need to be examined for a number of queries. This is repeated times, until is closed. Hence given and the number of queries used is , where the factor of 2 comes from the fact that the we alternate between the two executions. Now we will take an average over all orderings and to obtain the expected number of queries over a uniformly random ordering of the neighbors of and :
In Figure 2b we can see an experimental comparison of the runtime for Algorithm 2 and Algorithm 3 on graphs side by side. All data-points are means for 20 iterations of the experiment. As expected, the results are consistent with the fact that the two algorithms exhibit different asymptotic runtimes, further strengthening the claim that Algorithm 3 is not instance optimal.
In our constructed example, all edges of the form and for are accessed with probability 0 by Algorithm 2. If we apply the reasoning from the proof of Theorem 3 in [11], we can see that the claim is that the shortest st-path has its length strictly larger than . However, in our constructed example hence exactly equals the shortest st-path.
4.1 Instance Optimality of Bidirectional Dijkstra's Algorithm
In our counterexample, for every pair of edges , that Algorithm 3 queries but Algorithm 2 does not, it holds that .
The simplest adjustment of Algorithm 3 for which our counterexample does not work, is to take the if statement on Line 25 and relax it to omitting the condition that v is closed in the backward execution.
From this point forward, we shall refer to Algorithm 3 with the additional relaxation on Line 25 as BID (BIdirectional Dijkstra).
This now raises the question: is BID instance optimal? In the next theorem we shall argue that the answer is yes, but first let us take a look at the following lemmas.
Lemma 4.2. Consider BID on some input instance . Let be a node such that and without loss of generality assume the final updated occurred from the forward execution as . Then, when is closed and explored, must already have its final value.
Proof. For the sake of contradiction, assume that is already closed and explored and that the update had not yet been done. Since is a neighbor of the backward execution must already have set a finite value for via . Now we will consider two options.
First, consider that is already closed when the backward execution finished exploring edges from . Then it must be the case that the backward execution would update as which contradicts our assumption that the final update happened from the forward execution as .
The remaining option is that is not yet closed when the backward execution finishes exploring . In that case it follows that the backward execution will set before is closed. If the forward execution has already computed the final value for at that time, then when the backward execution explores the edge it will set the final value for as again contradicting the assumption that the update happened from the forward execution. Finally, if the forward execution has not yet computed the final value for then consider the node that will set the final value for . Let this node be . In that case, when the update occurs, the update would also occur right after, since with the relaxation on Line 25 we do not require to be closed in the backward execution. This contradicts the assumption that was updated as .
Since all alternatives lead to contradictions the assumption that m is already closed and explored from the backward execution and the final update had not yet been done must be false.
Lemma 4.3. Consider BID on some input instance . Let and be the sets of edges explored by the forward and backward executions, respectively, and let . Then for every edge explored from , and every edge explored from , we have
Proof. For the sake of contradiction assume there exists a pair of explored edges , explored from the forward and backward execution respectively, from and respectively, such that where is the length of the shortest st-path. It follows that both and are closed in their respective executions.
To demonstrate a contradiction it suffices to show that when the last of or is closed the final update of is already done, since then the algorithm would terminate on Line 19 without having a chance to explore the given edge. Without loss of generality assume the final update of was made from the forward execution as . The assumption is therefore .
First, consider the case when . In that case is already closed and explored in the forward execution when gets closed and hence already has its final value. In that case whichever node is closed second will trigger the termination of the algorithm.
Now consider the second case . This implies that , which in turn implies that is already closed and explored at the time that is closed in the backward execution. By Lemma 4.2 it follows that if is closed and explored the update had already been done. As before, whichever node is closed second will trigger the termination of the algorithm.
This shows that it is impossible for such a pair of edges and to exist, which concludes our proof.
Now we will use Lemma 4.3 to show that the BID is indeed instance optimal.
Theorem 4.4. BID is an instance-optimal algorithm, under query complexity, for the shortest st-path problem in both directed and undirected multi-graphs with positive weights.
Proof. Correctness. By the structure of BID it is clear that for every edge uv the algorithm will consider as a shortest path candidate at the latest when the last of u and v is closed and explored by their respective executions, given that the algorithm does not terminate beforehand. Secondly, since nodes are closed in non-decreasing distance order and the edge weights are positive, it is clear that when nodes and are closed, all subsequent st-path candidates will have their lengths of at least . It follows that when and are closed, all path candidates of length less than have already been examined. Finally, it follows that when the condition on Line 18 is satisfied the shortest path had already been considered, and was updated accordingly on Line 26. This concludes the correctness proof.
Instance Optimality. Let and be the sets of edges accessed by the forward and backward executions respectively. Since the two executions alternate edge relaxations, we have .
Suppose, for the sake of contradiction, that there exists a correct algorithm A who on G queries at most edges in expectation. Let be the indicator random variable for the event that A queries edge e. Then
By Lemma 4.3, all edges , satisfy .
Since , neither nor can contain more than a constant fraction of all edges in . If every edge of had query probability greater than 1/5, then we would get
for sufficiently large . This contradicts the assumed bound. Hence, there exists an edge with
The same argument gives an edge with
Note that we are without loss of generality assuming that the edge was explored from in the forward execution, and the edge was explored from in the backward execution. In the case that we construct by simply taking and decreasing the weight of to some . In the case that we construct by taking the same graph , but replacing the edges and with and . In the case of undirected graphs this clearly does not affect the degree of the nodes. In the case of directed graphs orient the edges appropriately to preserve in and out degrees, namely replace , with , . Since we have we set the weight of to be some , and the edge weight of to be arbitrary. Hence, this produces a new shortest st-path in through . By the union bound,
and therefore
The only queries whose answers differ between and are queries involving or on , or equivalently, queries involving or on . Therefore, with probability at least 1/2, the executions of on and are identical, assuming the same internal randomness. On this event, returns the same answer on both inputs even though the correct shortest st-paths differ.
Consequently, A is incorrect on at least one of G and with probability at least . This contradicts the requirement that a correct algorithm succeeds with probability at least 0.9, equivalently that it errs with probability at most 0.1.
Therefore every correct algorithm must perform queries in expectation. Since BID performs queries, it is instance optimal.
5 Approximate Instance Optimality in Unweighted Graphs
Intuitively, it is more difficult to produce an instance optimal shortest st-path algorithm in the unweighted setting, since some lower bounds on the distances can be deduced by default. Theorem 6.1 in [11] states that Algorithm 3 is instance optimal for the unweighted shortest st-path problem, up to a factor of . If one uses the unweighted version of graph and Algorithm 2 on it one exactly achieves this bound. They go on to show that this is indeed the best one can do in terms of instance optimality in the unweighted case.
Quoted Theorem A3 ([11, Theorem 6.2]). Assume the shortest st-path problem when the allowed graph weights come from a set W with and we restrict the class of input graphs to those of degree at most . Then there is no algorithm that is instance optimal, under both query and time complexity, for the problem up to a factor of .
Simplified Proof of Theorem A3.
Assume the allowed edge weights come from , with . For each , let be an undirected graph consisting of two stars centered at and , each with leaves, together with one additional edge of weight . The incidence-list ordering at is chosen so that . All other edges have weights in . Thus the maximum degree is at most .
If is chosen uniformly at random, then any correct algorithm for the shortest -path problem must, with constant probability, query a constant fraction of the incident edges of before finding the edge . Hence its expected query and time complexity is .
Therefore, for any candidate algorithm A, there exists some fixed instance on which A has expected complexity .
On this fixed instance , consider the following correct algorithm: first query Edge( ). If this edge is and has weight , return the path . This path is shortest because no edge has weight smaller than . Otherwise, discard the attempt and run any correct shortest-path algorithm, for example Dijkstra's algorithm.
On , this tailored algorithm runs in time and queries. Thus is worse by a factor on . Hence no algorithm can be instance-optimal up to a factor .
Note that our proof of Quoted Theorem A3 chooses a particular instance and ordering of nodes, while the original proof offered in [11] does not depend on node ordering. Strictly speaking, an instance optimal algorithm must be optimal up to a constant factor with respect all possible labelings of any input instance, however for other slightly relaxed instance-optimality-like measures, such as instance optimality in the random-order setting [2], this is not the case.
Approximation and Unknown Edge Weights. The proof technique used in Theorem A3 relies crucially on the knowledge of the minimum possible edge weight. Without such knowledge, the argument no longer implies a lower bound for approximation algorithms. Nevertheless, a related observation can be made. Consider the family of graphs from the proof of Theorem A3. If an algorithm correctly guesses that the direct edge appears at a prescribed position in the adjacency list of , then it may immediately return this edge without exploring the remainder of the graph. Even though the algorithm cannot certify optimality, the returned path has weight at most , while any feasible st-path has weight at least . Therefore, the returned solution is automatically a -approximation, since
This demonstrates that once approximation guarantees are permitted, the hard instances used in the proof of Theorem A3 become substantially easier. In particular, the existence of a direct edge can be exploited to obtain a -approximate solution in constant time on the corresponding instance. While this observation does not establish any lower bound for approximation algorithms, it illustrates that the ratio naturally arises as a threshold beyond which the exact shortest path need not be identified.
6 Instance Optimality in Simple Graphs
The instance optimality proofs we have discussed thus far rely on constructing new graphs from existing ones, by adding edges. This is only valid under the assumption that the input instances can include multigraphs, as the edges we are adding in Quoted Theorems A2, A1 can in principle lead to multiple edges between two nodes. For this reason, the authors of [11] leave the instance optimality status of Algorithm 3 in simple graphs as an open question. Here we aim to make progress towards this question.
Note that we are assuming that adding nodes to the graph is not a valid option, since otherwise the problem becomes trivial: if one needs to add an edge between nodes u and v in the construction of , but the edge uv already exists, then just add a quasi node m with edges um and mv. Every algorithm that does not condition on the number of nodes, and does not query the edge uv will not be able to distinguish between G and . Hence in the remainder of this section we consider the more general case where the execution of the algorithms can depend on the number of nodes.
We first prove a reservoir theorem showing that any algorithm which avoids querying a sufficiently large part of the vertex set must already pay a constant fraction of BID's search cost. This immediately yields instance optimality for instances with a large vertex reservoir and for classes satisfying , where is the number of edges explored by the forward execution, are the nodes accessed by the forward execution, and is a constant. We then develop a complementary cross-edge counting argument, which applies when the obstruction is not unused vertices but rather dense interaction between the explored forward and backward regions.
All the results in this section are agnostic as to whether the graph in question is directed or not.
Definition 6.1. A node is considered accessed, if its degree or an edge incident to it is queried.
Theorem 6.2. Consider executing BID on a simple graph G with positive edge weights, on input s, t. Let and be the sets of edges explored by the forward and backward executions, respectively, and set
Let A be any randomized algorithm for the shortest st-path problem that is correct with probability at least 0.9 on every input. Suppose there exists a vertex that A accesses with probability at most 0.25 on G. Then, for a universal constant ,
In particular, one may take , after absorbing finitely many trivial small instances into the constant.
Proof. Let . We prove the contrapositive. Suppose that . Since the relaxed bidirectional Dijkstra execution alternates edge explorations, we have . Thus, for all nontrivial instances, and . Hence the average probability with which A queries an edge of is at most
Therefore there exists an edge , explored from by the forward execution, such that . Similarly, there exists an edge , explored from by the backward execution, such that . By Lemma 4.3 we have . Let
We first dispose of the case in which the two chosen edges are not vertex-disjoint. If , then
which is impossible. Hence any overlap gives a path from to using one or both of the edges and . Indeed, if , then the edge connects to ; if , then the edge connects to ; and if , then the two-edge path
connects to after identifying .
In this case, construct by lowering the weights of the one or two involved edges so that the resulting path from to has total length less than . Then contains an st-path of length strictly smaller than . The modification can be discovered only if queries or . Therefore, by the union bound, the probability that discovers the modification is at most . With probability at least 0.5, has not queried any edge revealing the new shorter path. Coupling the executions of on and with the same random choices, on this event the transcript is identical and returns the same output on both graphs. Since the shortest st-path length is different in and , is incorrect on at least one of the two inputs with probability at least , contradicting correctness. Thus we may assume from now on that the four vertices are distinct.
We now construct a shortcut through the low-access vertex . The construction has two independent parts: one connecting to , and one connecting to .
First we describe the forward connector from to r using the edge .
If , no forward modification is needed, and the connector from to r has length 0.
If , we use the edge as the connector and lower its weight.
Assume now that . If , we use the existing edge and lower its weight. If but , we use the path
and lower the weights of and . Finally, if neither nor is an edge of , we remove the edge and add the two edges and . The edge is used in the new shortcut and is assigned a small positive weight, while is assigned an arbitrary positive weight. This preserves the degrees of and ; only the degree and incidence list of may change.
In every forward case, we obtain a path from to r whose total weight can be made arbitrarily small. Moreover, every modified oracle answer outside the incidence list of r is contained in the original edge .
We define the backward connector from to symmetrically using the edge , which was explored from by the backward execution.
If , no backward modification is needed, and the connector from to has length 0.
If , we use the edge as the connector and lower its weight.
Assume now that . If , we use the existing edge and lower its weight. If but , we use the path
and lower the weights of and . Finally, if neither nor is an edge of , we remove the edge and add the two edges and . The edge is used in the new shortcut and is assigned a small positive weight, while is assigned an arbitrary positive weight. This preserves the degrees of and ; only the degree and incidence list of may change.
Again, in every backward case, we obtain a path from to whose total weight can be made arbitrarily small. Moreover, every modified oracle answer outside the incidence list of is contained in the original edge .
Combining the forward and backward connectors, we obtain in a path of the form
Choose the modified positive edge weights so that the total length of the connector from to through r is less than . Then
Thus has an st-path strictly shorter than the shortest st-path in G.
We now bound the probability that A discovers the modification. By construction, every changed oracle answer is revealed only if A queries , queries , or accesses the vertex r. Therefore
Consequently, with probability at least 0.25, A does not query any oracle entry that reveals the new shorter path. Coupling the executions of A on G and using the same random choices, on this event the transcript seen by A is the same on the two graphs. Therefore A returns the same output on G and , while the correct shortest st-path length is different. Hence A is incorrect on at least one of G and with probability at least
This contradicts the assumption that is correct with probability at least 0.9 on every input. Therefore the assumption is impossible. Hence
up to changing the universal constant to handle finitely many trivial small instances. This proves the theorem.
Corollary 2. Consider a class of input instances I for the shortest st-path problem such that for every , the execution of the BID satisfies
where and are the sets of edges explored by the forward and backward executions, respectively. Then BID is instance optimal up to a constant factor on I.
Proof. Let . Let be any randomized algorithm that is correct with probability at least 0.9 on every input. We show that must perform queries on every instance in .
The maximum number of vertices that can be accessed by a single query is 2.
First suppose that every vertex of is accessed by with probability greater than 0.25. Then the expected number of accessed vertices is greater than . Since each query accesses at most 2 vertices, it follows that
Using the assumption , we obtain
On the other hand, suppose there exists a vertex that is accessed by with probability at most 0.25. Then by Theorem 6.2, there exists a universal constant such that .
Combining the two cases, every correct algorithm A satisfies
Thus every correct algorithm has query complexity on every instance in I.
BID performs queries. Therefore BID is instance optimal up to a constant factor on I.
Theorem 6.3. Fix a constant . Consider the class of simple positively weighted instances for which the execution of BID satisfies
where , are the edges explored by the forward and backward executions, respectively, and is the set of vertices accessed by the forward execution. Then BID is instance optimal up to a constant factor on this class against randomized algorithms that are correct with probability at least 0.9 on every input.
Proof. Let . Since BID execution alternates edge explorations, we have . Thus, after absorbing finitely many trivial instances into the constant, we may assume . Using the assumption , we get .
Let A be any randomized algorithm that is correct with probability at least 0.9 on every input. We show that A has expected query complexity on every instance in the class.
There are two cases.
First, suppose that there exists a vertex that accesses with probability at most 0.25. Then by Theorem 6.2, there exists a universal constant such that .
Second, suppose that every vertex of is accessed by with probability greater than 0.25. Since , every vertex of is also accessed by with probability greater than 0.25. Hence the expected number of accessed vertices in is greater than . Each query accesses at most two vertices. Therefore
Since , we have . Therefore . Using , we obtain .
Combining the two cases, every randomized 0.9-correct algorithm A satisfies
Thus . BID performs queries. Since is fixed on the class, the lower bound above is a constant-factor lower bound. Hence BID is instance optimal up to a constant factor on the class of instances satisfying .
Lemma 6.4. Let be a multigraph with positive edge weights. Consider Algorithm 3, with the condition on Line 25 relaxed by omitting the requirement that the neighboring vertex is closed in the backward execution. Let denote the length of the shortest st-path. Then the algorithm can close at most one distinct pair of vertices , where is closed by the forward execution and is closed by the backward execution, satisfying
More precisely, when the last of and is closed the algorithm terminates.
Equivalently, if two such pairs and satisfy
then either or .
Proof. Suppose, for the sake of contradiction, that the algorithm closes two pairs of vertices and where are closed by the forward execution, are closed by the backward execution, , and , such that and
. Without loss of generality, assume that the final update of occurs in the forward execution through an edge , so that
Let be the pair in which both of the nodes close first. Since the two original pairs have distinct forward endpoints and distinct backward endpoints, at least one node of the pairs remains to be closed after both and have been closed. Now we will show that the algorithm terminates when the later of and is closed.
By assumption, the pair satisfies . Substituting the final value of , we obtain
We now distinguish two cases.
First, suppose that . Since vertices are closed in nondecreasing distance order in the forward execution, is closed and explored before is closed. Hence the final update of has already occurred by the time is closed. Therefore, when the later of and is closed, the final value of has already been set. Since and are closed in the forward and backward executions respectively, the current vertices and satisfy
Thus the algorithm terminates by the stopping condition on Line 19.
Second, suppose that . Then the inequality above implies
Since edge weights are positive, this gives . Hence, in the backward execution, the vertex is closed before . By Lemma 4.2, once has been closed, the final update of must already have occurred. Therefore, by the time is closed, the final value of has already been set. As before, when the later of and is closed, we have
and so the algorithm terminates by the stopping condition on Line 19.
In both cases, the algorithm terminates when the later of and is closed. This prevents it from closing the remaining endpoint of the second pair, contradicting the assumption that two pairs with distinct forward and backward endpoints were both closed. Therefore, any two pairs satisfying the inequality must share their forward endpoint or their backward endpoint.
In the remainder of this paper we will provide a general proof strategy for instance optimality in simple graphs. The key observation is quite simple and is described in the following lemma.
Lemma 6.5. Consider executing BID on some simple graph G with positive edge weights, on inputs s, t. Let A be any correct algorithm for the shortest st-path problem. Let and be the two subgraphs of G obtained by taking the nodes and edges that are explored in the forward and backward execution respectively, with the removal of the edges that A queries with probability greater than 0.25. More precisely, define
and
Let , , and let be the number of cross-edges with one endpoint in X and the other in Y. Then for every edge , A must query e with probability at least 0.25. Consequently .
Proof. We will prove the claim by contradiction. Assume queries some edge with probability less than 0.25. Both and are accessed by BID. Since they are part of the explored edges in their respective executions, they are either closed or connected to closed nodes in and . Let be if is is closed, and the closed neighbor in that explored otherwise, define similarly. Let . We claim . Indeed, if , Lemma 6.4 would imply that BID terminates when the later of and is closed, before exploring any edge from that vertex. This contradicts the choice of and , since each is the closed endpoint of an edge in or . Hence we can construct by appropriately decreasing the edge weights of , and if present and , such that we have
Clearly this produces a new shortest path in that A can discover only if the edges , or , or are queried. The probability that any one of them is queried by A is at most
hence we have
Pr[A does not query and A does not query and A does not query ] 0.25.
Therefore with probability at least 0.25 A will produce the same answer on both G and , hence it will be incorrect on at least one of them with probability at least 0.125 contradicting the assumption that A is correct.
Definition 6.6 (Open and closed nodes in explored edges). Consider executing BID on some graph G with positive edge weights, on inputs s, t. Let be an edge queried by the algorithm. Assume the edge uv was explored from the closed node u as . We say that the node u is closed and node v is open with respect to the queried edge uv.
Note that the notion of open and closed nodes as per Definition 6.6 is not the same as open and closed nodes by Algorithm 3 in general. A node might be closed by the algorithm, however, with respect to the edge that closed it, we would consider it to be open.
Lemma 6.7. Consider executing BID on some simple graph G with positive edge weights, on inputs s, t. Let A be any correct algorithm for the shortest st-path problem. Let and be the two subgraphs of G obtained by taking the nodes and edges that are explored in the forward and backward execution respectively, with the removal of the edges that A queries with probability more than 0.25. More precisely, define
and
Let and . Then for every pair of nodes such that the following must hold
-
For every and every where and are closed, it must hold that .
-
For every and every where and are open, it must hold that .
-
For every and every where is open and is closed, it must hold that for every we have .
Note that the symmetric closed-open case is analogous and omitted.
Proof. We will prove the claim by showing that if any case is not true, a degree-preserving edge switch, as the one used in the proof of Theorem 4.4 can be made. This then allows one to construct an auxiliary graph on which A gives the wrong answer with sufficiently high probability. Recall that such a degree-preserving edge switch requires two edges and queried by the forward and backward execution respectively, but not queried (with a sufficiently high probability) by A, where and are closed in their respective edges. In multigraphs we can always add and however in simple graphs, such a switch requires both and to be absent. Now we will show that in each case, assuming it does not hold, such a degree-preserving switch exists thereby contradicting the assumption that A is correct. Assume we have some pair such that . Note that in each following case, the closed endpoints of the selected forward and backward edges satisfy the strict inequality of Lemma 4.3, so after the switch the new edge weights can be chosen to create a strictly shorter st-path.
-
Let and be such that and are closed. Assume . Then clearly the absence of edges and allows for a degree-preserving switch. Further, the probability that does not query or is at least 0.5, hence it will not be able to distinguish between and with probability at least 0.5. Therefore will produce the wrong answer on or with probability at least 0.25 > 0.1.
-
Let and be such that and are open. Assume . Then clearly the absence of edges and allows for a degree-preserving switch. Further, the probability that does not query or is at least 0.5, hence it will not be able to distinguish between and with probability at least 0.5. Therefore will produce the wrong answer on or with probability at least 0.25 > 0.1.
-
Let and be such that is open and is closed. Assume that for some we have . Then we can make a slightly different degree preserving switch, namely we can remove the edge and and replace them with and . Degrees are clearly preserved. Now the only difference is that in we must lower the edge weight of and set the edge weight of low enough so that we have . Again, this produces a new shortest path in that can only discover by querying the edges , or , or . By assumption the probability of these individual queries is at most 0.25, hence the union probability is at most 0.75. This finally allows us to conclude that will not be able to distinguish from with probability at least 0.25, therefore it will give the wrong answer on at least one instance with probability at least 0.125 > 0.1.
Lemma 6.8. Consider the setup of Lemma 6.7. Then
Consequently,
Proof. Recall that and contain only edges queried by A with probability at most 1/4.
We first show that . Suppose, for contradiction, that there exists an edge such that . Let be the endpoint from which was explored by the forward execution, and let be the endpoint from which was explored by the backward execution.
We first note that . Indeed, if , then the same vertex is closed in both executions. Since , Lemma 6.4 implies that when this vertex is closed by the second execution, BID terminates before exploring any edge from it. Hence could not be explored from in both executions, a contradiction.
Thus . Since was explored from in the forward execution and from in the backward execution, Lemma 4.3 gives . Construct a graph from by lowering the weight of to a positive value satisfying . Then contains an st-path of length strictly smaller than , namely the path obtained by concatenating a shortest -path, the edge , and a shortest -path.
The only oracle answers changed between and are those revealing the weight of . Since , the edge is queried by with probability at most . Therefore, with probability at least , algorithm does not query any changed oracle entry. Coupling the executions of on and using the same internal randomness, has the same transcript and returns the same output on both inputs on this event. Since the shortest -path length differs between and , is incorrect on at least one of the two inputs with probability at least . This contradicts the assumption that is correct with probability at least on every input. Hence .
It remains to show that . Suppose, for contradiction, that there exists a vertex . Since , there exists an edge incident to . Since , there exists an edge incident to . By the first part of the proof, .
Let be the endpoint from which was explored by the forward execution, and let be the endpoint from which was explored by the backward execution. We claim that . If , then is closed in both executions. As above, Lemma 6.4 implies that BID terminates when is closed by the second execution, before exploring any edge from it. This contradicts the fact that both and are explored from in the two executions.
If , then, because is simple and both and are incident to , we must have , contradicting . Therefore .
Since was explored from in the forward execution and was explored from in the backward execution, Lemma 4.3 gives . Let .
We now modify the weights of the edges connecting to and to . If , the first connector is trivial and has length 0; otherwise the first connector is the edge . If , the second connector is trivial and has length 0; otherwise the second connector is the edge .
Construct by lowering the weights of the nontrivial connector edges among and so that their total length is less than . Then contains an st-path of length strictly smaller than :
The only oracle answers changed between G and are those revealing the modified edges, which are contained in . Both and belong to the low-query subgraphs, so
By the union bound,
Hence, with probability at least 1/2, algorithm A does not query any changed oracle entry. Coupling the executions of A on G and using the same internal randomness, A has the same transcript and returns the same output on both inputs on this event. Since the shortest st-path length differs between G and , A is incorrect on at least one of the two inputs with probability at least . This contradicts the assumption that A is correct with probability at least 0.9 on every input. Therefore .
Finally, if an edge belonged to both and , then its endpoints would belong to both and , contradicting the vertex-disjointness just proved. Thus .
Theorem 6.9 (Tensor lower bound for queried cross edges). Consider the setup of Lemma 6.7. Let , , and write , , . Let
Then
Consequently, if for some parameter , and , then . In particular, if , then . By Lemma 6.5, this implies .
Proof. Orient every edge of and according to its first-exploration direction. That is, if an edge uv is first explored from u to v, we orient it as . Equivalently, the tail of the oriented edge is closed with respect to that edge, and the head is open with respect to that edge, in the sense of Definition 6.6. If an edge is later explored in the opposite direction, we keep the original first-exploration orientation.
We define an auxiliary graph with vertex set . For every oriented edge in , and every oriented edge in , put an edge in between the vertices and . Note that by Lemma 6.8 we have that for every it follows .
We claim that the set of missing cross edges
is an independent set in . Indeed, suppose not. Then there exist oriented edges in and in such that both and . But is closed with respect to the edge , and is closed with respect to the edge . Therefore, by Item 1 of Lemma 6.7, the missing cross edge forces , a contradiction.
Hence the missing cross edges form an independent set in . Therefore the present cross edges form a vertex cover of . Thus .
Now we estimate . The graph has one edge for every pair consisting of one edge of and one edge of . Hence . Moreover, for every ,
Therefore . Using the elementary vertex-cover bound
we get
This proves the claimed tensor lower bound.
If and , then
In particular, implies , so again . Finally, Lemma 6.5 states that every edge in must be queried by with probability at least 0.25, and therefore
Corollary 3. Consider a class of input instances I for the shortest st-path problem such that for every , the execution of Algorithm BID satisfies
where and are the sets of edges explored by the forward and backward executions, respectively, and is the maximum degree of . Then every randomized algorithm that is correct with probability at least 0.9 on every input satisfies
on every instance . Consequently, Algorithm BID is instance optimal up to a constant factor on .
Proof. Let . Suppose, toward a contradiction, that for some correct algorithm A we have . For an edge , let be the event that A queries . Define
Let , .
The expected number of queries made by A to edges of is at most . Hence the number of edges in queried with probability greater than 1/4 is less than
Since Algorithm BID alternates between the two executions, we have . In particular, after absorbing finitely many trivial instances into the constant, and . Therefore
The same argument gives
Now consider the setup of Theorem 6.9 applied to the low-query edge sets and (i.e. and ). Let denote the number of cross edges obtained there. Since the graph has maximum degree , we have . By the assumption , it follows that . Thus Theorem 6.9 gives
Using the lower bounds on and , we obtain
Since , we have, again up to finitely many trivial instances, . Therefore
By Lemma 6.5, every such cross edge forces A to query with sufficiently large probability, and in particular . Hence
Since
we get , contradicting the assumption . Thus every correct algorithm satisfies .
Finally, Algorithm BID performs queries, so this lower bound proves that Algorithm BID is instance optimal up to a constant factor on .
Note that a more general version of Corollary 3 can be obtained if one does not consider the maximum degree in the entire graph, rather the maximum degree in the two subgraphs induced by the explored edges and nodes of the two executions in BID.
7 Conclusion
Motivated by the recent work of Haeupler et al. on the instance optimality of shortest-path algorithms, we revisited the instance optimality of Dijkstra-style algorithms in the standard query model. We introduced a family of graph instances together with a corresponding shortcut-based algorithm that exploits structural properties of the input while maintaining correctness through suitable lower-bound certificates. Using this construction, we showed that the implementations of unidirectional and bidirectional Dijkstra's algorithms considered in [11] are not instance optimal in general.
We further identified a gap in the proof of instance optimality for bidirectional Dijkstra's algorithm and proposed a simple modification that restores instance optimality in the weighted setting, as well as providing a simplified proof of the main result in [11]. In addition, we presented a simplified proof of the lower bound of Theorem 6.2 from [11], highlighting the role played by lower bounds on shortest-path length in establishing instance-optimal guarantees.
Finally, we considered the open problem of instance optimality in simple graphs. First, we established instance optimality for problem instances where the number of nodes is at least 1/16 the query complexity of BID. Second we provided a more general proof strategy which allowed us to conclude that BID is instances optimal for graph where the maximal degree is at most the square root of the number of explored edges. Determining whether instance optimality can be established in arbitrary simple graphs remains an interesting direction for future work.
References
[1] Beyond the Worst-Case Analysis of Algorithms. Cambridge University Press, 2021.
[2] Peyman Afshani, Jérémy Barbay, and Timothy M. Chan. Instance-optimal geometric algorithms. J. ACM, 64(1), March 2017.
[3] Peyman Afshani, Jérémy Barbay, and Timothy M. Chan. Instance-optimal geometric algorithms. In 2009 50th Annual IEEE Symposium on Foundations of Computer Science, pages 129–138, 2009.
[4] Richard Bellman. On a routing problem. Quarterly of Applied Mathematics, 16(1):87–90, 1958.
[5] GEORGE B. DANTZIG. Linear Programming and Extensions. Princeton University Press, 1991.
[6] Edsger W. Dijkstra. A note on two problems in connexion with graphs. Numerische Mathematik, 1(1):269–271, 1959.
[7] Ronald Fagin, Amnon Lotem, and Moni Naor. Optimal aggregation algorithms for middleware. Journal of Computer and System Sciences, 66:614–656, 05 2001.
[8] Michael L. Fredman and Robert Endre Tarjan. Fibonacci heaps and their uses in improved network optimization algorithms. Journal of the ACM, 34(3):596–615, 1987.
[9] Andrew V. Goldberg, Haim Kaplan, and Renato F. Werneck. Reach for : Efficient Point-to-Point Shortest Path Algorithms, pages 129–143.
[10] Oded Goldreich. Introduction to Property Testing. Cambridge University Press, 2017.
[11] Bernhard Haeupler, Richard Hladík, Václav Rozhoň, Robert E. Tarjan, and Jakub Tětek. Bidirectional Dijkstra's algorithm is instance-optimal. In Proceedings of the 2025 Symposium on Simplicity in Algorithms, SOSA 2025, pages 202–215. SIAM, 2025.
[12] Bernhard Haeupler, Richard Hladík, John Iacono, Václav Rozhoň, Robert E. Tarjan, and Jakub Tětek. Fast and Simple Sorting Using Partial Information, pages 3953–3973.
[13] Bernhard Haeupler, Richard Hladík, Václav Rozhoň, Robert E. Tarjan, and Jakub Tetěk. Universal optimality of dijkstra via beyond-worst-case heaps. In 2024 IEEE 65th Annual Symposium on Foundations of Computer Science (FOCS), pages 2099–2130, 2024.
[14] Lester R. Ford Jr. Network flow theory. Technical Report P-923, RAND Corporation, 1956.
[15] T. A. J. Nicholson. Finding the shortest route between two points in a network. The Computer Journal, 9(3):275–280, 11 1966.
[16] Seth Pettie. Shortest paths and the triangle inequality. ACM Transactions on Algorithms, 6(3):47:1–47:17, 2010.
[17] Seth Pettie and Vijaya Ramachandran. Computing shortest paths with comparisons and additions. In Proceedings of the Thirteenth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 267–276, 2002.
[18] Ira Pohl. Bi-directional and heuristic search in path problems. 1969.
[19] Nathan Sturtevant and Ariel Felner. A brief history and recent achievements in bidirectional search. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 32, 2018.
[20] Ivor van der Hoog, Eva Rotenberg, and Daniel Rutschmann. Simpler universally optimal dijkstra, 2026.