0 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? SP is NP-hard, LP is not LP is NP-hard, SP is not Both are NP-hard Neither SP nor LP is NP-hard Algorithms iit-madras ms written-test + – SPluto 1.3k views answer comment Share Follow Print See all 5 Comments 5 5 Comments reply Show 2 previous comments Abhisek Tiwari 4 commented May 2, 2019 reply Follow flag as all NPC are NPH and It's already mentioned undirected graph.See this. 0 0 replyShare srestha commented May 3, 2019 reply Follow flag @Abhisek Tiwari 4 yes, they mention longest path as NP-Hard, but shortest path they havenot mentioned right? 0 0 replyShare Abhisek Tiwari 4 commented May 3, 2019 reply Follow flag 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 replyShare Please log in or register to add a comment.