This New Algorithm for Sorting Books or Files Is Close to Perfection (www.wired.com)
from fantawurstwasser@feddit.org to technology@lemmy.world on 16 Feb 20:07
https://feddit.org/post/8075609

#technology

threaded - newest

vk6flab@lemmy.radio on 16 Feb 21:05 next collapse

The radio station I worked in put the next item at the end of the shelf with a label containing the next sequential number and added the metadata to the music library database.

In essence the sort order was age.

Yes, this predates the prevalence of digital audio from an era of vinyl, CD and DAT.

That said, cool article, but it bears keeping in mind that one solution does not fit all cases.

Jimbabwe@lemmy.world on 17 Feb 04:30 collapse

Insertion: stick it on the end O(1)

Retrieval: BOGO sort your list and return the first item. It’s O(1) in the best case.

Checkmate, nerds!