Shortest Odd Paths in Undirected Graphs with Conservative Weight Functions

We consider the Shortest Odd Path problem, where given an undirected graph $G$, a weight function on its edges, and two vertices $s$ and $t$ in $G$, the aim is to find an $(s,t)$-path with odd length and, among all such paths, of minimum weight. For the case when the weight function is conservative, i.e., when every cycle has non-negative total weight, the complexity of the Shortest Odd Path problem had been open for 20 years, and was recently shown to be NP-hard. We give a polynomial-time algorithm for the special case when the weight function is conservative and the set $E^-$ of negative-weight edges forms a single tree. Our algorithm exploits the strong connection between Shortest Odd Path and the problem of finding two internally vertex-disjoint paths between two terminals in an undirected edge-weighted graph. It also relies on solving an intermediary problem variant called Shortest Parity-Constrained Odd Path where for certain edges we have parity constraints on their position along the path. Also, we exhibit two FPT algorithms for solving Shortest Odd Path in graphs with conservative weight functions. The first FPT algorithm is parameterized by $|E^-|$, the number of negative edges, or more generally, by the maximum size of a matching in the subgraph of $G$ spanned by $E^-$. Our second FPT algorithm is parameterized by the treewidth of $G$.

[1]  Ildikó Schlotter Shortest two disjoint paths in conservative graphs , 2023, ArXiv.

[2]  Ildikó Schlotter,et al.  Odd Paths, Cycles and $T$-joins: Connections and Algorithms , 2022, 2211.12862.

[3]  T. Korhonen A Single-Exponential Time 2-Approximation Algorithm for Treewidth , 2021, 2021 IEEE 62nd Annual Symposium on Foundations of Computer Science (FOCS).

[4]  Yoichi Iwata,et al.  Finding a Shortest Non-Zero Path in Group-Labeled Graphs , 2019, Combinatorica.

[5]  Maria Chudnovsky,et al.  Detecting an Odd Hole , 2019, J. ACM.

[6]  Michal Pilipczuk,et al.  Parameterized Algorithms , 2015, Springer International Publishing.

[7]  Stefan Kratsch,et al.  Deterministic Single Exponential Time Algorithms for Connectivity Problems Parameterized by Treewidth , 2013, ICALP.

[8]  Wayne Goddard,et al.  Even Cycles in Directed Graphs , 1994, SIAM J. Discret. Math..

[9]  Hans L. Bodlaender,et al.  A linear time algorithm for finding tree-decompositions of small treewidth , 1993, STOC.

[10]  Detlef Seese,et al.  Easy Problems for Tree-Decomposable Graphs , 1991, J. Algorithms.

[11]  Esther M. Arkin,et al.  Modularity of cycles and paths in graphs , 1991, JACM.

[12]  Bruno Courcelle,et al.  The Monadic Second-Order Logic of Graphs. I. Recognizable Sets of Finite Graphs , 1990, Inf. Comput..

[13]  András Sebö,et al.  Finding the t -join structure of graphs , 1986, Math. Program..

[14]  Ulrich Derigs,et al.  An Efficient Dijkstra-like Labeling Method for Computing Shortest Odd/Even Paths , 1985, Inf. Process. Lett..

[15]  Christos H. Papadimitriou,et al.  The even-path problem for graphs and digraphs , 1984, Networks.

[16]  Martin Grötschel,et al.  Weakly bipartite graphs and the Max-cut problem , 1981, Oper. Res. Lett..

[17]  Alexander Schrijver,et al.  Combinatorial optimization. Polyhedra and efficiency. , 2003 .

[18]  Harold N. Gabow,et al.  Data structures for weighted matching and nearest common ancestors with linking , 1990, SODA '90.

[19]  M. Bálek,et al.  Large Networks and Graph Limits , 2022 .