hyperfixation-sort
v1.0.0
Published
A stupid sorting function that hyperfixates on one element at a time.
Readme
Hyperfixation Sort
A stupid sorting function that hyperfixates on one element at a time.
What is this?
Hyperfixation Sort is a sorting algorithm that mirrors the experience of having ADHD: it obsessively focuses on each element, moving it to the first position where it looks sorted, then repeats the entire process until everything is finally in order.
Algorithm
- Pick an element
- Hyperfixate on it
- Move it to the first sorted position you see
- Forget about it and move to the next element
- Repeat until the array is sorted (eventually)
Why?
Why not?
License
MIT
