How The Heck Does Shazam Work?

How audio fingerprinting and a connect-the-dots trick lets Shazam identify a song in seconds.