Fast Algorithms for the Undirected Negative Cost Cycle Detection Problem

The undirected negative cost cycle detection (UNCCD) problem is concerned with checking whether an undirected, weighted graph contains a negative cost cycle. Known approaches for solving this problem involve reducing it to either the minimum weight$$b$$b-matching problem or the minimum weight$$T$$T-join problem. In this paper, we formally describe these two approaches and provide the tightest known analysis of the $$b$$b-matching approach. Our analysis establishes that the $$b$$b-matching approach runs in $$O((n+m)^{2}\cdot \log (n+m))$$O((n+m)2·log(n+m)) time on a graph with $$n$$n nodes and $$m$$m edges. We also explore the case where the edge costs are integers in the range $$\{-K,\ldots , K\}$${-K,…,K}. For $$K = O(1)$$K=O(1), we provide improved time bounds for both the above-mentioned approaches by exploiting the existence of specialized procedures for optimization problems in graphs with integral positive edge costs. We show that while the $$T$$T-join algorithm has a better time bound for general graphs, the $$b$$b-matching algorithm is more efficient for sparse graphs. Finally, we present one of the first, extensive empirical studies for the UNCCD problem. We examine both approaches on several different families of undirected graphs. Our findings provide insight into the actual efficiency of each approach and reinforce the asymptotic analysis of our algorithms.

[1]  Nicole Fassbinder,et al.  Combinatorial Optimization Networks And Matroids , 2016 .

[2]  Supratik Mukhopadhyay,et al.  Does your result checker really check? , 2004, International Conference on Dependable Systems and Networks, 2004.

[3]  Uri Zwick,et al.  All pairs shortest paths in undirected graphs with integer weights , 1999, 40th Annual Symposium on Foundations of Computer Science (Cat. No.99CB37039).

[4]  Jens Vygen,et al.  The Book Review Column1 , 2020, SIGACT News.

[5]  Jack Edmonds,et al.  Matching, Euler tours and the Chinese postman , 1973, Math. Program..

[6]  K. Subramani,et al.  A Zero-Space algorithm for Negative Cost Cycle Detection in networks , 2007, J. Discrete Algorithms.

[7]  J. Edmonds,et al.  Facets of I-matching polyhedra , 1974 .

[8]  Donald B. Johnson,et al.  Efficient Algorithms for Shortest Paths in Sparse Networks , 1977, J. ACM.

[9]  Edsger W. Dijkstra,et al.  A note on two problems in connexion with graphs , 1959, Numerische Mathematik.

[10]  Ulrich Derigs,et al.  Solving (large scale) matching problems combinatorially , 1991, Math. Program..

[11]  Robert E. Tarjan,et al.  Fibonacci heaps and their uses in improved network optimization algorithms , 1984, JACM.

[12]  J. Edmonds Paths, Trees, and Flowers , 1965, Canadian Journal of Mathematics.

[13]  Kurt Mehlhorn,et al.  Certifying algorithms for recognizing interval graphs and permutation graphs , 2003, SODA '03.

[14]  Robert E. Tarjan,et al.  Faster scaling algorithms for general graph matching problems , 1991, JACM.

[15]  W. Cunningham,et al.  A primal algorithm for optimum matching , 1978 .

[16]  Harold N. Gabow,et al.  A scaling algorithm for weighted matching on general graphs , 1985, 26th Annual Symposium on Foundations of Computer Science (sfcs 1985).

[17]  Joseph F. Pekny,et al.  A Staged Primal-Dual Algorithm for Perfect b-Matching with Edge Capacities , 1995, INFORMS J. Comput..

[18]  Robert E. Tarjan,et al.  Efficiency of a Good But Not Linear Set Union Algorithm , 1972, JACM.

[19]  Zvi Galil,et al.  Efficient implementation of graph algorithms using contraction , 1984, JACM.

[20]  Michael A. Trick Networks with additional structured constraints , 1987 .

[21]  Jack Edmonds,et al.  An introduction to matching , 1967 .

[22]  Laurence A. Wolsey,et al.  Integer and Combinatorial Optimization , 1988 .

[23]  Kurt Mehlhorn,et al.  Implementation of O(nmlogn) weighted matchings in general graphs: the power of data structures , 2002, JEAL.

[24]  Jack Edmonds,et al.  Maximum matching and a polyhedron with 0,1-vertices , 1965 .

[25]  Harold Neil Gabow,et al.  Implementation of algorithms for maximum matching on nonbipartite graphs , 1973 .

[26]  Hong-Jian Lai,et al.  Improved Algorithms for Detecting Negative Cost Cycles in Undirected Graphs , 2009, FAW.

[27]  Richard Bellman,et al.  ON A ROUTING PROBLEM , 1958 .

[28]  Timothy F. Havel,et al.  The combinatorial distance geometry method for the calculation of molecular conformation. I. A new approach to an old problem. , 1983, Journal of theoretical biology.

[29]  Vladimir Kolmogorov,et al.  Blossom V: a new implementation of a minimum cost perfect matching algorithm , 2009, Math. Program. Comput..

[30]  András Frank,et al.  A Survey On , 1996 .

[31]  M. Grötschel,et al.  Solving matching problems with linear programming , 1985, Math. Program..

[32]  S. Micali,et al.  Priority queues with variable priority and an O(EV log V) algorithm for finding a maximal weighted matching in general graphs , 1982, FOCS 1982.

[33]  David K. Smith Network Flows: Theory, Algorithms, and Applications , 1994 .

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

[35]  William J. Cook,et al.  Computing Minimum-Weight Perfect Matchings , 1999, INFORMS J. Comput..