Showing NP-completeness of longest path problem

  • Thread starter Thread starter TaPaKaH
  • Start date Start date
  • Tags Tags
    Path
Click For Summary
The discussion centers on proving the NP-completeness of the longest path problem in directed graphs, specifically determining if there exists a simple path from a source to a target node of at least a given length K. Participants note that the problem is already established as being in NP but struggle with finding a polynomial-time reduction from a known NP-complete problem. Suggestions for potential reductions include various graph-related NP-complete problems such as Hamiltonian cycle, TSP, and vertex cover. One participant successfully identifies a reduction from the directed Hamiltonian cycle. The conversation highlights the challenge of establishing connections between different NP-complete problems for effective reductions.
TaPaKaH
Messages
51
Reaction score
0

Homework Statement


Show that the following problem is NP-complete:
Given: A directed graph ##G=(V,E)##, source and target nodes ##s,t\in V## and a parameter K.
Goal: Determine whether there exists a simple ##s,t##-path in ##G## of length at least ##K##.

The Attempt at a Solution


I've already shown that the problem is in NP, but I can't come up with a poly time reduction from a known NP-complete problem. Any ideas welcome.
 
Physics news on Phys.org
TaPaKaH said:

Homework Statement


Show that the following problem is NP-complete:
Given: A directed graph ##G=(V,E)##, source and target nodes ##s,t\in V## and a parameter K.
Goal: Determine whether there exists a simple ##s,t##-path in ##G## of length at least ##K##.

The Attempt at a Solution


I've already shown that the problem is in NP, but I can't come up with a poly time reduction from a known NP-complete problem. Any ideas welcome.

Google "longest path problem"; several on-line articles have all you need.
 
TaPaKaH, what are some NP-complete problems you are allowed to reduce to? Ones that are graph related already (ones that are related to doing walks around a graph in particular) would be particularly nice as starting points.
 
2-partition, 3-partition, TSP (undirected), ILP, SAT, 3-SAT, clique, vertex cover, independent set, Hamiltonian path (undirected) and cycle (directed and undirected) is what I am allowed to use.
 
I just managed to come up with a reduction from directed Hamiltonial cycle.
 
Question: A clock's minute hand has length 4 and its hour hand has length 3. What is the distance between the tips at the moment when it is increasing most rapidly?(Putnam Exam Question) Answer: Making assumption that both the hands moves at constant angular velocities, the answer is ## \sqrt{7} .## But don't you think this assumption is somewhat doubtful and wrong?

Similar threads

  • · Replies 19 ·
Replies
19
Views
5K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 14 ·
Replies
14
Views
4K
Replies
12
Views
3K