Сортирането на данни е доста трудна и досадна работа, докато... не бъде озвучена... Демонстрирани са сортиране с пряко вмъкване, мехурчеста сортировка, пряка селекция, сортиране по части...
Anyone who has ever done a programming course or tried to learn to code out of a book will have come across sorting algorithms. Bubble, heap, merge, there’s a long list of these methods of sorting data.
The subject matter is fairly dry. Thankfully someone has found a way to not only make sorting more interesting, but easier to remember and understand too.
All it took was a bit of visualization and some sound effects. The result is each type of sort having its own distinct melody. Above is a video giving examples of insert, bubble, selection, merge, and a gnome sort. If that’s not enough for you, then check out heap sort below.
The videos were created by YouTube users andrut. He explained how the sounds were generated in the video description:
On every comparison of two numbers (elements) I play (mixing) sin waves with frequencies modulated by values of these numbers. There are quite a few parameters that may drastically change resulting sound – I just chose parameters that imo felt best.
via Hacker News
Matthew’s Opinion
I think this is a really great way of representing something that otherwise involves you sitting down and pouring over the code to figure out what is going on. It should also be possible to change the sounds being used and make something a little easier on the ear.
There’s a few other videos on YouTube explaining sorting algorithms, such the one involving robots. But none of them distill it down to a simple chart of what’s happening. It’s also interesting to note how the sounds actually suit the sort being executed, especially in the case of the bubble sort.