Given 5 rocks of different weight and level scales in 7 tests determine the order the rock by weight.
So I have 5 rock that is 120 possible ways of ordering them. The rock are named
(A,B,C,D,E)
So my first step is
$A<B$ then I do $ C<D $ and I then I do
$ C<A$
This gives me the following 3 permuations CABD CADB CDAB Now I add the letter E to get 15 permutations
ECABD CEABD CAEBD CABED CABDE
ECABD CEABD CAEDB CADEB CADBE
ECDAB CEDAB CDEAB CDAEB CDAEB
But I am not sure what compare next in order to get 7 tests?
Hint: 7 comparisons give you 7 bits of information (128 different values), this is enough to cover the 5! = 120 different permutations of the 5 rocks. They key is to find a set of comparisons such the the 7 binary results are distinct for each distinct permuation.