in Algorithms
513 views
0 votes
0 votes

Let SP be the problem of finding the shortest path between 2 nodes, and LP be the problem of finding the longest path between 2 nodes, in an unweighted, undirected graph. Which of the following is true?

  1. SP is NP-hard, LP is not
  2. LP is NP-hard, SP is not
  3. Both are NP-hard
  4. Neither SP nor LP is NP-hard
in Algorithms
by
513 views

4 Comments

as all NPC are NPH and It's already mentioned undirected graph.See this.

0
0

@Abhisek Tiwari 4

yes, they mention longest path as NP-Hard, but shortest path they havenot mentioned 

right?

0
0
shortest path is standard eg of NPC. As NPC is subset of NPH So can't we say All NPC are NPH also?
0
0

Please log in or register to answer this question.

Related questions