fantawurstwasser@feddit.org to Technology@lemmy.worldEnglish · 12 days agoThis New Algorithm for Sorting Books or Files Is Close to Perfectionwww.wired.comexternal-linkmessage-square2fedilinkarrow-up116arrow-down13
arrow-up113arrow-down1external-linkThis New Algorithm for Sorting Books or Files Is Close to Perfectionwww.wired.comfantawurstwasser@feddit.org to Technology@lemmy.worldEnglish · 12 days agomessage-square2fedilink
minus-squareJimbabwe@lemmy.worldlinkfedilinkEnglisharrow-up3·edit-211 days agoInsertion: 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!
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!