We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
select_nth_unstable_by_key
1 parent ea32791 commit 448a388Copy full SHA for 448a388
library/core/src/slice/mod.rs
@@ -3113,8 +3113,9 @@ impl<T> [T] {
3113
///
3114
/// # Current implementation
3115
3116
- /// The current algorithm is based on the quickselect portion of the same quicksort algorithm
3117
- /// used for [`sort_unstable`].
+ /// The current algorithm is an introselect implementation based on Pattern Defeating Quicksort, which is also
+ /// the basis for [`sort_unstable`]. The fallback algorithm is Median of Medians using Tukey's Ninther for
3118
+ /// pivot selection, which guarantees linear runtime for all inputs.
3119
3120
/// [`sort_unstable`]: slice::sort_unstable
3121
0 commit comments