Note. Asymptotic analysis of algorithms [0018]

We begin with a preliminary example.

Similarly, other problems of arbitrary size can be posed.

A generalisation of the argument above in fact gives the answer to the question for sorting: approximately nlogn (Hoare, Quicksort). The complexity of 3-SAT is open, but widely conjectured to be exponential.

We can now restate the result of Hoare (Quicksort).