2
0
Эх сурвалжийг харах

* fixed quicksort comment about memory use - our implementation uses O(log n) stack, not O(n log n)

git-svn-id: trunk@41236 -
nickysn 6 жил өмнө
parent
commit
f4718831ca

+ 1 - 1
rtl/inc/sortbase.pp

@@ -46,7 +46,7 @@ type
 
 
   Average performance: O(n log n)
   Average performance: O(n log n)
     Worst performance: O(n*n)
     Worst performance: O(n*n)
-     Extra memory use: O(n log n) on the stack
+     Extra memory use: O(log n) on the stack
                Stable: no
                Stable: no
      Additional notes: Uses the middle element as the pivot. This makes it work
      Additional notes: Uses the middle element as the pivot. This makes it work
                        well also on already sorted sequences, which can occur
                        well also on already sorted sequences, which can occur