fossilesque@mander.xyzM to Science Memes@mander.xyzEnglish · 1 year agoMarge Sortmander.xyzimagemessage-square17linkfedilinkarrow-up1420arrow-down111
arrow-up1409arrow-down1imageMarge Sortmander.xyzfossilesque@mander.xyzM to Science Memes@mander.xyzEnglish · 1 year agomessage-square17linkfedilink
minus-squareIron Lynx@lemmy.worldlinkfedilinkEnglisharrow-up4·edit-21 year agoTbf, Merge Sort has a Big O of n log (n) in all cases, so it’s a pretty mid sorting algorithm in general, but it’s conceptually straightforward and easy to explain to newbies.
minus-squareFushuan [he/him]@lemm.eelinkfedilinkEnglisharrow-up2·1 year agoThere’s no better big O sorting method for generic lists. Heap sort has better averages but the big O is the same in the end.
Tbf, Merge Sort has a Big O of n log (n) in all cases, so it’s a pretty mid sorting algorithm in general, but it’s conceptually straightforward and easy to explain to newbies.
There’s no better big O sorting method for generic lists. Heap sort has better averages but the big O is the same in the end.