PUZZLE IBM-012
Wally's Rock Permuting (WRP)
IBM Research · Ponder This · April 1999
IBM Ponder This #012 · April 1999
There are
For a fixed price of 5 euros, Wally's Rock Permuting, Inc. will accept a list of disjoint pairs of rocks and transpose the rocks in every listed pair. The price is the same whether the list contains one pair or many pairs, but no rock may appear in more than one pair in a single call.
For a given
and initial order, suppose calls to WRP are planned as efficiently as possible. For that fixed , what is the most that might ever have to be paid?
Solution
Best opened after a real attemptSolution
To be added.