Advertisement

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

  • Longkun Guo
  • Peng Li
Article
  • 15 Downloads

Abstract

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}}\)-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}}\)-complete in a multigraph even when \(k=3\) by reducing from the 3SAT problem. Then, we prove the \({\mathcal{NP}}\)-completeness of kLNCC by giving a more sophisticated reduction from the 3 occurrence 3-satisfiability (3O3SAT) problem which is known \({\mathcal{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 \) for any \(\epsilon \in (0,\,1]\) within runtime \(O(2^{\min \{L,\,h\}}mn\left\lceil \ln \frac{1}{\epsilon }\right\rceil )\), where m, n and h are respectively the numbers of edges, vertices and length 2 negative cost cycles in G.

Keywords

k-Length negative cost cycle \({\mathcal{NP}}\)-Complete 3 occurrence 3-satisfiability 3-Satisfiability Randomized algorithm 

Notes

Acknowledgements

This research work is supported by Natural Science Foundation of China (Nos. 61772005, 61300025) and Natural Science Foundation of Fujian Province (No. 2017J01753). Part of the work was done when Peng Li was with Washington University in St. Louis as a PhD student. The authors would like to thank the anonymous reviewers of COCOA 2017 for their insightful comments which helped us significantly improve the quality of the paper.

References

  1. Bellman R (1956) On a routing problem. Technical report, DTIC DocumentGoogle Scholar
  2. Cygan M, Fomin FV, Kowalik Ł, Lokshtanov D, Marx D, Pilipczuk M, Pilipczuk M, Saurabh S (2015) Parameterized algorithms, vol 4. Springer, New YorkCrossRefzbMATHGoogle Scholar
  3. Feng Q, Huang N, Jiang X, Wang J (2018) Dealing with several parameterized problems by random methods. Theor Comput Sci 734:94–104MathSciNetCrossRefzbMATHGoogle Scholar
  4. Fomin FV, Lokshtanov D, Panolan F, Saurabh S (2014) Representative sets of product families. In: Algorithms-ESA 2014. Springer, pp 443–454Google Scholar
  5. Fomin FV, Lokshtanov D, Saurabh S (2014) Efficient computation of representative sets with applications in parameterized and exact algorithms. In: Proceedings of the twenty-fifth annual ACM-SIAM symposium on discrete algorithms. SIAM, pp 142–151Google Scholar
  6. Ford LR (1956) Network flow theory. Santa Monica, Calif, RAND Corporation, p 923Google Scholar
  7. Fortune S, Hopcroft J, Wyllie J (1980) The directed subgraph homeomorphism problem* 1. Theor Comput Sci 10(2):111–121MathSciNetCrossRefzbMATHGoogle Scholar
  8. Gabow HN, Nie S (2008) Finding a long directed cycle. ACM Trans Algorithms 4(1):7MathSciNetCrossRefzbMATHGoogle Scholar
  9. Garey MR, Johnson DS (1979) Computers and intractability: a guide to the theory of np-completeness. W. H. Freeman & Co. New York, NY, USAGoogle Scholar
  10. Garey MR, Johnson DS, Stockmeyer L (1974) Some simplified np-complete problems. In: Proceedings of the sixth annual ACM symposium on theory of computing. ACM, pp 47–63Google Scholar
  11. Guo L (2016) Efficient approximation algorithms for computing k disjoint constrained shortest paths. J Comb Optim 32(1):144–158MathSciNetCrossRefzbMATHGoogle Scholar
  12. Guo L, Shen H (2013) On finding min–min disjoint paths. Algorithmica 66(3):641–653MathSciNetCrossRefzbMATHGoogle Scholar
  13. Guo L, Shen H, Liao K (2015) Improved approximation algorithms for computing k disjoint paths subject to two constraints. J Comb Optim 29(1):153–164MathSciNetCrossRefzbMATHGoogle Scholar
  14. Guo L, Liao K, Shen H, Li P (2015) Efficient approximation algorithms for computing k disjoint restricted shortest paths. In: Proceedings of the 27th ACM on symposium on parallelism in algorithms and architectures, SPAA 2015, Portland, OR, USA, June 13–15, 2015, pp 62–64Google Scholar
  15. Li P, Agrawal K, Buhler J, Chamberlain RD (2010) Deadlock avoidance for streaming computations with filtering. In: Proceedings of the 22nd ACM symposium on parallelism in algorithms and architectures, pp 243–252Google Scholar
  16. Orda A, Sprintson A (2004) Efficient algorithms for computing disjoint qos paths. In: INFOCOM 2004. Twenty-third annual joint conference of the IEEE computer and communications societies, vol 1. IEEEGoogle Scholar
  17. Shachnai H, Zehavi M (2014) Faster computation of representative families for uniform matroids with applications. CoRR, arXiv:1402.3547
  18. Tovey CA (1984) A simplified np-complete satisfiability problem. Discrete Appl Math 8(1):85–89MathSciNetCrossRefzbMATHGoogle Scholar
  19. Xu D, Chen Y, Xiong Y, Qiao C, He X (2006) On the complexity of and algorithms for finding the shortest path with a disjoint counterpart. IEEE/ACM Trans Netw 14(1):147–158CrossRefGoogle Scholar

Copyright information

© Springer Science+Business Media, LLC, part of Springer Nature 2019

Authors and Affiliations

  1. 1.College of Mathematics and Computer ScienceFuzhou UniversityFuzhouChina
  2. 2.Amazon Web ServicesAmazon.com Inc.SeattleUSA

Personalised recommendations