Forgot your password?
typodupeerror

Submission + - Quadsort: A stable sorting algorithm faster than quicksort and Timsort (github.com)

scandum writes: Long has the conviction been held that quicksort is faster than merge sort. Timsort (derived from merge sort and insertion sort) was introduced in 2002 and while slower than quicksort for random data, Timsort performs better on ordered data.

Quadsort (derived from merge sort) was introduced in 2020 and is faster than quicksort for random data, and slightly faster than Timsort on ordered data.

Also of notice is the significant performance difference on small arrays, quadsort is on average two times faster than Timsort on data sets between 10 and 1000 elements. Quadsort achieves this performance through several optimizations spread out over 1500 lines of code that get the maximum performance out of merge sort.

This discussion was created for logged-in users only, but now has been archived. No new comments can be posted.

Quadsort: A stable sorting algorithm faster than quicksort and Timsort

Comments Filter:

You can bring any calculator you like to the midterm, as long as it doesn't dim the lights when you turn it on. -- Hepler, Systems Design 182

Working...