Find the Longest Path

switchbg1 HN recommenders · 2021–2026
57K views · music · evergreen · Uploaded 2010-01-14

Find the Longest Path is a comedic song by Daniel J. Barrett, a Billy Joel parody that describes the NP-hard longest path problem in informal terms.

HN shares it as a fun, memorable way to explain the longest path problem and as an entry in lists of programming and math songs.

Watch on YouTube

3 comments from Hacker News

@wpasc2021 · in “Akamai Edge DNS was down”

Haha please do, a video would be great. Your song reminded me of the song: "Find the Longest Path" which you may get a kick out of: [VIDEO]

RecommendsView on HN
@seniorsassycat2021 · in “White Collar Holler – Stan Rogers”

Stan Rogers has a knack for writing songs that sound older than himself, this song shows he doesn't need nautical themes to do it. Some other programming and math songs Kill -9 [LINK] Find the longest path [VIDEO]

@saghm2026 · in “SingleRide: Longest route on NYC Subway without visiting the same station twice”

Finding the longest path in a graph is itself a pretty well-described NP-complete problem: [LINK] Alternately, you can listen to a Billy Joel parody that describes the problem in decidedly less academic terms: [VIDEO]