mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Choosing pivot in Quicksort
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330420 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
8915e3eac5
commit
b999e20ec1
1 changed files with 3 additions and 0 deletions
|
@ -190,6 +190,9 @@ fruits[3] = orange20
|
|||
Like most PHP sorting functions, <function>sort</function> uses an
|
||||
implementation of <link
|
||||
xlink:href="&url.wiki.quicksort;">Quicksort</link>.
|
||||
The pivot is chosen in the middle of the partition resulting in an optimal
|
||||
time for already sorted arrays. This is however an implementation detail you
|
||||
shouldn't rely on.
|
||||
</simpara>
|
||||
</note>
|
||||
<warning>
|
||||
|
|
Loading…
Reference in a new issue