Update current impl comment for select_nth_unstable_by_key
This commit is contained in:
parent
ea327915d8
commit
448a388387
1 changed files with 3 additions and 2 deletions
|
@ -3113,8 +3113,9 @@ impl<T> [T] {
|
||||||
///
|
///
|
||||||
/// # Current implementation
|
/// # Current implementation
|
||||||
///
|
///
|
||||||
/// The current algorithm is based on the quickselect portion of the same quicksort algorithm
|
/// The current algorithm is an introselect implementation based on Pattern Defeating Quicksort, which is also
|
||||||
/// used for [`sort_unstable`].
|
/// the basis for [`sort_unstable`]. The fallback algorithm is Median of Medians using Tukey's Ninther for
|
||||||
|
/// pivot selection, which guarantees linear runtime for all inputs.
|
||||||
///
|
///
|
||||||
/// [`sort_unstable`]: slice::sort_unstable
|
/// [`sort_unstable`]: slice::sort_unstable
|
||||||
///
|
///
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue