TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

But what does a sorting algorithm sound like?

49 pointsby henrylalmost 16 years ago

6 comments

jim-greeralmost 16 years ago
The visualizations linked there are great too:<p><a href="http://www.hatfulofhollow.com/posts/code/timsort/index.html" rel="nofollow">http://www.hatfulofhollow.com/posts/code/timsort/index.html</a><p><a href="http://www.hatfulofhollow.com/posts/code/visualisingsorting/" rel="nofollow">http://www.hatfulofhollow.com/posts/code/visualisingsorting/</a>
bigwillalmost 16 years ago
Great start. You could definitely get a more musical sound out of it by mapping it onto a scale rather than just the full range of MIDI notes. Also, this approach operates on fixed note lengths--another interesting idea might be to use one of the compared numbers to determine note length rather than a second pitch.
nuddedalmost 16 years ago
I can't wait for the first array that will sound like the mario tune when sorted. Kudos to the creater if a different algorithm will create another song
dcaalmost 16 years ago
And so now, thanks to this, we have the answer... it sounds like an old NES RPG.
jpwagneralmost 16 years ago
That is amazing!<p>Great idea.
mburneyalmost 16 years ago
Very cool.