File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -3005,8 +3005,9 @@ impl<T> [T] {
3005
3005
///
3006
3006
/// # Current implementation
3007
3007
///
3008
- /// The current algorithm is based on the quickselect portion of the same quicksort algorithm
3009
- /// used for [`sort_unstable`].
3008
+ /// The current algorithm is an introselect implementation based on Pattern Defeating Quicksort, which is also
3009
+ /// the basis for [`sort_unstable`]. The fallback algorithm is Median of Medians using Tukey's Ninther for
3010
+ /// pivot selection, which guarantees linear runtime for all inputs.
3010
3011
///
3011
3012
/// [`sort_unstable`]: slice::sort_unstable
3012
3013
///
@@ -3056,8 +3057,9 @@ impl<T> [T] {
3056
3057
///
3057
3058
/// # Current implementation
3058
3059
///
3059
- /// The current algorithm is based on the quickselect portion of the same quicksort algorithm
3060
- /// used for [`sort_unstable`].
3060
+ /// The current algorithm is an introselect implementation based on Pattern Defeating Quicksort, which is also
3061
+ /// the basis for [`sort_unstable`]. The fallback algorithm is Median of Medians using Tukey's Ninther for
3062
+ /// pivot selection, which guarantees linear runtime for all inputs.
3061
3063
///
3062
3064
/// [`sort_unstable`]: slice::sort_unstable
3063
3065
///
You can’t perform that action at this time.
0 commit comments