@@ -1142,8 +1142,9 @@ where
1142
1142
///
1143
1143
/// # Current Implementation
1144
1144
///
1145
- /// The current algorithm is based on the quickselect portion of the same quicksort algorithm
1146
- /// used for [`sort_unstable`].
1145
+ /// The current algorithm is an introselect implementation based on Pattern Defeating Quicksort, which is also
1146
+ /// the basis for [`sort_unstable`]. The fallback algorithm is Median of Medians using Tukey's Ninther for
1147
+ /// pivot selection, which guarantees linear runtime for all inputs.
1147
1148
///
1148
1149
/// [`sort_unstable`]: Slice1Ext::sort_unstable
1149
1150
///
@@ -1193,8 +1194,9 @@ where
1193
1194
///
1194
1195
/// # Current Implementation
1195
1196
///
1196
- /// The current algorithm is based on the quickselect portion of the same quicksort algorithm
1197
- /// used for [`sort_unstable`].
1197
+ /// The current algorithm is an introselect implementation based on Pattern Defeating Quicksort, which is also
1198
+ /// the basis for [`sort_unstable`]. The fallback algorithm is Median of Medians using Tukey's Ninther for
1199
+ /// pivot selection, which guarantees linear runtime for all inputs.
1198
1200
///
1199
1201
/// [`sort_unstable`]: Slice1Ext::sort_unstable
1200
1202
///
@@ -1245,8 +1247,9 @@ where
1245
1247
///
1246
1248
/// # Current Implementation
1247
1249
///
1248
- /// The current algorithm is based on the quickselect portion of the same quicksort algorithm
1249
- /// used for [`sort_unstable`].
1250
+ /// The current algorithm is an introselect implementation based on Pattern Defeating Quicksort, which is also
1251
+ /// the basis for [`sort_unstable`]. The fallback algorithm is Median of Medians using Tukey's Ninther for
1252
+ /// pivot selection, which guarantees linear runtime for all inputs.
1250
1253
///
1251
1254
/// [`sort_unstable`]: Slice1Ext::sort_unstable
1252
1255
///
0 commit comments