Everything About ___
Live briefing

Everything about Longest path problem

Problem of finding the longest simple path for a given graph

In graph theory and theoretical computer science, the longest path problem is the problem of finding a simple path of maximum length in a given graph. A path is called simple if it does not have any repeated vertices; the length of a path may either be measured by its number of edges, or by the sum of the weights of its edges. In contrast to the shortest path problem, which can be solved in polynomial time in graphs without negative-weight cycles, the longest path problem is NP-hard and the decision version of the problem, which asks whether a path exists of at least some given length, is NP-complete. This means that the decision problem cannot be solved in polynomial time for arbitrary graphs unless P = NP. Stronger hardness results are also known showing that it is difficult to approximate. However, it has a linear time solution for directed acyclic graphs, which has important applications in finding the critical path in scheduling problems. Wikipedia →

🧭 Start here: a 6-step reading path

  1. Read the overview: Longest path problemA 5-minute orientation
  2. Skim a recent paper: New formulations and branch-and-cut procedures for the longest induced path problemInfluential work since 2022
  3. Pick up a classic book: Witness to HopeThe most-reprinted book on the subject
  4. Read the landmark paper: The Longest Path Problem has a Polynomial Solution on Interval GraphsCited 30 times
  5. Go sideways: Independent set (graph theory)A closely related topic
  6. Go sideways: Directed acyclic graphA closely related topic

📖 Definitions

No dictionary entry for this exact phrase.

🏆 Landmark papers (most cited)

🆕 Influential since 2022

📚 Books worth reading

Ranked by number of editions on Open Library, a rough measure of how lasting a book is.

🔗 Related topics