Showing NP-completeness of longest path problem

  • Thread starter Thread starter TaPaKaH
  • Start date Start date
  • Tags Tags
    Path
Click For Summary

Homework Help Overview

The discussion revolves around demonstrating the NP-completeness of the longest path problem in directed graphs. The problem involves determining whether there exists a simple path from a source node to a target node with a specified minimum length.

Discussion Character

  • Exploratory, Assumption checking

Approaches and Questions Raised

  • Participants discuss the necessity of finding a polynomial-time reduction from known NP-complete problems. There are inquiries about which NP-complete problems could serve as suitable candidates for reduction, particularly those related to graph traversal.

Discussion Status

The conversation is ongoing, with some participants suggesting potential NP-complete problems for reduction. One participant has indicated a successful reduction from the directed Hamiltonian cycle problem, which may provide a productive direction for the discussion.

Contextual Notes

Participants are considering specific NP-complete problems that are graph-related and suitable for reduction. There are constraints regarding which problems can be used for this purpose, as noted by one participant listing allowed problems.

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.
 

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
12
Views
3K
  • · Replies 14 ·
Replies
14
Views
4K