Counting the information a sorter needs

A deterministic comparison sort determines record order solely by comparing pairs of keys. A warehouse uses this model to sort six labelled parcels by mass. Their masses are initially unknown, all six masses are distinct, and every relative mass ordering of the parcels is possible. Each comparison reports either less than or greater than.


You may use the fact that a method making at most cc comparisons on every input can distinguish at most 2c2^c possible input orders.


Find the number of possible relative mass orders and the strongest integer lower bound on worst-case comparisons obtained from this counting argument. Enter both as exact integers. Also enter true or false: does this counting argument alone guarantee that a sorting method achieving that bound exists?

Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Sorting Algorithms Questions: