logoalt Hacker News

4ndrewltoday at 9:43 AM1 replyview on HN

Is this like the travelling salesman problem, but looking for the longest, not shortest journey?


Replies

saghmtoday at 10:17 AM

Finding the longest path in a graph is itself a pretty well-described NP-complete problem: https://en.wikipedia.org/wiki/Longest_path_problem

Alternately, you can listen to a Billy Joel parody that describes the problem in decidedly less academic terms: https://www.youtube.com/watch?v=a3ww0gwEszo