which is the longest and shortest path.
Answers
Answered by
6
Ans=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.
I hope its helpful to you. ❣
Similar questions
English,
2 months ago
India Languages,
2 months ago
Math,
5 months ago
Math,
5 months ago
History,
10 months ago