Deleting the smallest one among four bottles is a waste. Three comparison to decide the largest one among four bottles. (Compare A and B, then compare C and D; wlog, assume A>B, C>D, compare A and C, assume A>C) Ignoring the largest one A, we are left B, E and C>D. Compare B and E, assume that B>E; compare B and C, assume that B>C. Compare E and C, the larger one is the 3rd among five bottles. (Six times. )
We did not compare the 4th and 5th. So seven times is enough to sort the list witht 5 members. www.ddhw.com
|