|
|
|
|
|
by JaneLovesDotNet
1292 days ago
|
|
Dumb questions from a programmer who is weak at math. 1) Is there a theoretical minimum assymptotic speed for sorting? 2) Some of these newer sorts seem to have arbitrary parameters in them (e.g. do X if size of set is smaller than Y). Are we likely to see more and more complex rule sets like that lead to increased sorting speeds? |
|
2) Hybrid algorithms, i.e. those that change the underlying strategy based on some parameters, are already quite common in real-world implementaions. Examples include timsort (stable, mix of merge sort and insertion sort), used in Python, Java, and Rust, and pdqsort (unstable, mix of quicksort and heap sort), used in Rust and Go.