Video pre-release - Possibly the worst (functional) sorting algorithm ever? (Patreon)
Content
Director Rhys here! This one was a fun one to film but my oh my did it take me a while to get my head around the algorithm...
Matt first came across the paper this algorithm was in about five years ago but we've only now decided to make a video about it. It shouldn't sort. Or at least when you look at the pseudo-code it feels like it shouldn't sort. But it does. That's not a spoiler, but I can't say too much more without giving it all away.
Suffice to say we had many, many takes of the physical sorting passes. We knew we had it right when Cameraperson Alex nodded along with a satisfied grin.
I thought it would have been fun to do it with different sized fruits, start with a grape and go all the way up to watermelon. But then they would have rolled all over the place. Instead we cut out a bunch of coloured squares (thanks left over post-it notes from the paper size video!) and put them on stands (thanks Magic the Gathering video!). If you look pretty closely you'll see which squares I cut out as they're not exactly square. I blame the terrible scissors we had available. And my terrible cutting ability.
The thing we all genuinely love about this is that it wasn't designed to be a stupid but functional sorting algorithm (I'm looking at you Bogosort) but just happens to be one. Beautiful.
We also considered trying to get a fun sonification of the algorithm asking some people to play piano for us but in the end it didn't fit the flow of the video. Maybe next time.
What's your favourite sorting algorithm. I know that asking that question here is totally legitimate. I must say I am rather a sucker for sleep sort. Gentle and inefficient.
Spot any errors or the like then do let us know. As ever genuine and huge thanks for all of your support which literally keeps the channel going. You are all fantastic :D