On the complexity of and algorithms for detecting k-length negative cost cycles

Let G be a directed graph with an integral cost on each edge. For a given positive integer k, the k-length negative cost cycle (kLNCC) problem is to determine whether G contains a negative cost cycle with at least k edges. Because of its applications in deadlock avoidance in synchronized streaming computing network, kLNCC was first studied in paper (Li et al. in Proceedings of the 22nd ACM symposium on parallelism in algorithms and architectures, pp 243–252, 2010), but remains open whether the problem is $${\mathcal{NP}}$$NP-hard. In this paper, we first show that an even harder problem, the fixed-point k-length negative cost cycle trail (FPkLNCCT) problem that is to determine whether G contains a negative closed trail enrouting a given vertex (as the fixed point) and containing only cycles with at least k edges, is$${\mathcal{NP}}$$NP-complete in a multigraph even when $$k=3$$k=3 by reducing from the 3SAT problem. Then, we prove the $${\mathcal{NP}}$$NP-completeness of kLNCC by giving a more sophisticated reduction from the 3 occurrence 3-satisfiability (3O3SAT) problem which is known $${\mathcal{NP}}$$NP-complete. The complexity result for kLNCC is interesting since polynomial-time algorithms are known for both 2LNCC, which is actually equivalent to negative cycle detection, and the k-cycle problem, which is to determine whether G contains a cycle with of length at least k. Thus, this paper closes the open problem proposed by Li et al. (2010) whether kLNCC admits polynomial-time algorithms. Last but not the least, we present for 3LNCC a randomized algorithm that, if G contains a negative cycle of length at most L, can find a solution with a probability $$1-\epsilon $$1-ϵ for any $$\epsilon \in (0,\,1]$$ϵ∈(0,1] within runtime $$O(2^{\min \{L,\,h\}}mn\left\lceil \ln \frac{1}{\epsilon }\right\rceil )$$O(2min{L,h}mnln1ϵ), where m, n and h are respectively the numbers of edges, vertices and length 2 negative cost cycles in G.

[1]  Fahad Panolan,et al.  Representative Sets of Product Families , 2014, ESA.

[2]  Ariel Orda,et al.  Efficient algorithms for computing disjoint QoS paths , 2004, IEEE INFOCOM 2004.

[3]  Peng Li,et al.  Efficient Approximation Algorithms for Computing k Disjoint Restricted Shortest Paths , 2015, ArXiv.

[4]  Fedor V. Fomin,et al.  Efficient Computation of Representative Sets with Applications in Parameterized and Exact Algorithms , 2013, SODA.

[5]  Longkun Guo,et al.  Efficient approximation algorithms for computing k disjoint constrained shortest paths , 2016, J. Comb. Optim..

[6]  Hong Shen,et al.  Improved approximation algorithms for computing $$k$$k disjoint paths subject to two constraints , 2015, J. Comb. Optim..

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

[8]  John E. Hopcroft,et al.  The Directed Subgraph Homeomorphism Problem , 1978, Theor. Comput. Sci..

[9]  Hong Shen,et al.  On Finding Min-Min Disjoint Paths , 2012, Algorithmica.

[10]  Jianxin Wang,et al.  Dealing with several parameterized problems by random methods , 2018, Theor. Comput. Sci..

[11]  Craig A. Tovey,et al.  A simplified NP-complete satisfiability problem , 1984, Discret. Appl. Math..

[12]  Peng Li,et al.  Deadlock avoidance for streaming computations with filtering , 2010, SPAA '10.

[13]  David S. Johnson,et al.  Computers and Intractability: A Guide to the Theory of NP-Completeness , 1978 .

[14]  David S. Johnson,et al.  Some simplified NP-complete problems , 1974, STOC '74.

[15]  L. R. Ford,et al.  NETWORK FLOW THEORY , 1956 .

[16]  Chunming Qiao,et al.  On the complexity of and algorithms for finding the shortest path with a disjoint counterpart , 2006, TNET.

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

[18]  Harold N. Gabow,et al.  Finding a long directed cycle , 2004, SODA '04.