On the Complexity of the Bilevel Shortest Path Problem
Dorothee Henke, Lasse Wulf
TL;DR
The paper studies BSP, a bilevel variant of the shortest path where the edge set is partitioned between a leader and a follower, and analyzes both strong and weak path completion across directed, undirected, and directed acyclic graphs. It delivers a complete complexity classification, showing $P$, NP-complete, or $\Sigma^p_2$-complete results for each variant, and introduces a vertex fixing lemma and a Min-Max-Ham reduction that establish $\Sigma^p_2$-completeness for the leader in the strong variant. For the weak variant, the follower’s problem reduces to a standard shortest path and is polynomial-time solvable, while the strong variant remains hard; in DAGs, the strong variant is tractable via dynamic programming. In the few-leader-edge regime the problem becomes equivalent to Shortest-${k}$-Cycle, linking BSP to a known combinatorial problem with nuanced complexity status and implying randomized algorithms with potential derandomization contingent on Shortest-${k}$-Cycle progress.
Abstract
We introduce a new bilevel version of the classic shortest path problem and completely characterize its computational complexity with respect to several problem variants. In our problem, the leader and the follower each control a subset of the edges of a graph and together aim at building a path between two given vertices, while each of the two players minimizes the cost of the resulting path according to their own cost function. We investigate both directed and undirected graphs, as well as the special case of directed acyclic graphs. Moreover, we distinguish two versions of the follower's problem: Either they have to complete the edge set selected by the leader such that the joint solution is exactly a path, or they have to complete the edge set selected by the leader such that the joint solution is a superset of a path. In general, the bilevel problem turns out to be much harder in the former case: We show that the follower's problem is already NP-hard here and that the leader's problem is even hard for the second level of the polynomial hierarchy, while both problems are one level easier in the latter case. Interestingly, for directed acyclic graphs, this difference turns around, as we give a polynomial-time algorithm for the first version of the bilevel problem, but it stays NP-hard in the second case. Finally, we consider restrictions that render the problem tractable. We prove that, for a constant number of leader's edges, one of our problem variants is actually equivalent to the shortest-$k$-cycle problem, which is a known combinatorial problem with partially unresolved complexity status. In particular, our problem admits a polynomial-time randomized algorithm that can be derandomized if and only if the shortest-$k$-cycle problem admits a deterministic polynomial-time algorithm.
