News for hackers. Stuff that matters.
Re:Windows 10 wallpaper was physically built and photographed by dahart on Thursday May 23, 2024 @10:12AM (#40455002)
The analog algorithm described is not described for digital computer. It’s an amusing theoretical thought experiment and not a recipe for actual fast sorting. It’s O(n) when you use your hand for contact and removal. I don’t know if it’s possible to implement spaghetti sort on a computer, maybe not, but I guess if it were possible, it would probably at least require n processors to sort n elements. Maybe the nearest analogy on digital computers is radix sort.
Re:Windows 10 wallpaper was physically built and photographed by Izkata on Thursday May 23, 2024 @10:37AM (#40455278)
Radix sort is probably the closest usable one, but a more direct translation would probably be sleep sort.
Re:Windows 10 wallpaper was physically built and photographed by dahart on Thursday May 23, 2024 @11:56AM (#40456316)
Oh yeah I forgot about sleep sort, that is similar and also more in the same spirit as spaghetti sort. ;)