Finding Long Paths, Cycles and Circuits

  • Harold N. Gabow
  • Shuxin Nie
Part of the Lecture Notes in Computer Science book series (LNCS, volume 5369)


We present a polynomial-time algorithm to find a cycle of length \(\exp(\Omega(\sqrt{\log \ell}))\) in an undirected graph having a cycle of length ≥ ℓ. This is a slight improvement over previously known bounds. In addition the algorithm is more general, since it can similarly approximate the longest circuit, as well as the longest S-circuit (i.e., for S an arbitrary subset of vertices, a circuit that can visit each vertex in S at most once). We also show that any algorithm for approximating the longest cycle can approximate the longest circuit, with a square root reduction in length. For digraphs, we show that the long cycle and long circuit problems have the same approximation ratio up to a constant factor. We also give an algorithm to find a vw-path of length ≥ logn/loglogn if one exists; this is within a loglogn factor of a hardness result.


Undirected Graph Approximation Ratio Recursive Call Hardness Result Hamiltonian Graph 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
    Alon, N., Yuster, R., Zwick, U.: Color-coding. J. ACM 42, 844–856 (1995)MathSciNetCrossRefzbMATHGoogle Scholar
  2. 2.
    Bodlaender, H.L.: Minor tests with depth-first search. J. Algorithms 14, 1–23 (1993)MathSciNetCrossRefzbMATHGoogle Scholar
  3. 3.
    Björklund, A., Husfeldt, T.: Finding a path of superlogarithmic length. SIAM J. Comput. 32, 1395–1402 (2003)MathSciNetCrossRefzbMATHGoogle Scholar
  4. 4.
    Björklund, A., Husfeldt, T., Khanna, S.: Approximating longest directed paths and cycles. In: Díaz, J., Karhumäki, J., Lepistö, A., Sannella, D. (eds.) ICALP 2004. LNCS, vol. 3142, pp. 222–233. Springer, Heidelberg (2004)CrossRefGoogle Scholar
  5. 5.
    Bazgan, C., Santha, M., Tuza, Z.: On the approximability of finding a(nother) Hamiltonian cycle. In: Proceedings of STACS 1998 (1998)Google Scholar
  6. 6.
    Chen, G., Xu, J., Yu, X.: Circumference of graphs with bounded degree. SIAM J. Comput. 33, 1136–1170 (2004)MathSciNetCrossRefzbMATHGoogle Scholar
  7. 7.
    Fellows, M.R., Langston, M.A.: Nonconstructive tools for proving polynomial-time decidability. J. ACM 35, 727–739 (1988)MathSciNetCrossRefzbMATHGoogle Scholar
  8. 8.
    Fellows, M.R., Langston, M.A.: On search, decision and he efficiency of polynomial-time decidability. In: Proceedings of the 21st Annual ACM Symposium on Theory of Computing, pp. 501–512 (1989)Google Scholar
  9. 9.
    Feder, T., Motwani, R.: Finding large cycles in Hamiltonian graphs. In: Proceedings of the 16th Annual ACM-SIAM Symposium on Discrete Algorithms, Vancouver, BC, pp. 166–175 (2005)Google Scholar
  10. 10.
    Feder, T., Motwani, R., Subi, C.: Approximating the longest cycle problem in sparse graphs. SIAM J. Comput. 31, 1596–1607 (2002)MathSciNetCrossRefzbMATHGoogle Scholar
  11. 11.
    Fürer, M., Raghavachari, B.: Approximating the minimum degree spanning tree to within one from the optimal degree. In: Proceedings of the 3rd Annual ACM-SIAM Symposium on Discrete Algorithms, pp. 317–324 (1992)Google Scholar
  12. 12.
    Gabow, H.N.: Finding paths and cycles of superpolylogarithmic length. SIAM J. Comput. 36(6), 1648–1671 (2007)MathSciNetCrossRefzbMATHGoogle Scholar
  13. 13.
    Gabow, H.N., Nie, S.: Finding a long directed cycle. ACM Trans. on Algorithms 4(1) Article 7, 21 pages (2008)Google Scholar
  14. 14.
    Hopcroft, J.E., Tarjan, R.E.: Dividing a graph into triconnected components. SIAM J. Comput. 2, 135–158 (1973)MathSciNetCrossRefzbMATHGoogle Scholar
  15. 15.
    Impagliazzo, R., Paturi, R.: On the complexity of k-SAT. J. Comp. Sys. Sci. 62(2), 367–375 (2001)MathSciNetCrossRefzbMATHGoogle Scholar
  16. 16.
    Karger, D., Motwani, R., Ramkumar, G.D.S.: On approximating the longest path in a graph. Algorithmica 18, 82–98 (1997)MathSciNetCrossRefzbMATHGoogle Scholar
  17. 17.
    LaPaugh, A.S., Rivest, R.L.: The subgraph homeomorphism problem. J. Comput. Sys. Sci. 20, 133–149 (1980)MathSciNetCrossRefzbMATHGoogle Scholar
  18. 18.
    Monien, B.: How to find long paths efficiently. Annals Disc. Math. 25, 239–254 (1985)MathSciNetzbMATHGoogle Scholar
  19. 19.
    Schrijver, A.: Combinatorial Optimization: Polyhedra and Efficiency, vol. A. Springer, NY (2003)zbMATHGoogle Scholar
  20. 20.
    Vishwanathan, S.: An approximation algorithm for finding a long path in Hamiltonian graphs. In: Proceedings of the 11th Annual ACM-SIAM Symposium on Discrete Algorithms, pp. 680–685 (2000)Google Scholar
  21. 21.
    West, D.B.: Introduction to Graph Theory, 2nd edn. Prentice Hall, Upper Saddle River (2001)Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 2008

Authors and Affiliations

  • Harold N. Gabow
    • 1
  • Shuxin Nie
    • 1
  1. 1.Department of Computer ScienceUniversity of ColoradoBoulder

Personalised recommendations