top | item 21747512

(no title)

NeoBasilisk | 6 years ago

It's probably because the implementation of the algorithm is the simplest, because you don't need to modify the existing data structure. You don't need to merge or create new arrays. You just repeatedly loop and swap two elements when needed. Super easy by all metrics.

discuss

order

vengefulduck|6 years ago

You don’t need to modify the data structure for most quadratic sorts though. Or even for quick sort.

BubRoss|6 years ago

Most people get the partition algorithm wrong on their first try if they write it themselves.