Logo Data Structures and Algorithms with Object-Oriented Design Patterns in C++
next up previous contents index

Best-Case Running Time

In the best case, the partitioning step divides the remaining elements into two sequences with exactly the same number of elements. For example, suppose that tex2html_wrap_inline70199 for some integer m>0. After removing the pivot tex2html_wrap_inline70203 elements remain. If these are divided evenly, each sequence will have tex2html_wrap_inline70205 elements. In this case Equation gif gives

eqnarray37878


next up previous contents index

Bruno Copyright © 1997 by Bruno R. Preiss, P.Eng. All rights reserved.