previous | start | next

Minimum number of Comparisons

What is the minimum number of comparisons needed to sort N items?

Bubble sort sometimes makes unnecessary comparisons.

So maybe the height is smaller for some other algorithms.

We need to know the minimum height of a decision tree knowing only that it must have N! leaves, but not assumming any particular sorting algorithm.



previous | start | next