February 24–March 2, 2009

Problem

Click here to see a pdf version of the problem.

This nifty problem was suggested by Tom Boothby. It arose while finding efficient algorithms to do arithmetic in finite fields for SAGE. A bit of background is necessary.

Define the four "inputs"

inputs A, a, B, b

consisting of 3 x 3 arrays of 1's and 0's. We are allowed to combine these inputs together using the logical operations and, or, xor (exclusive or). Associating "true" with a 1, and "false" with a 0, the following table summarizes the operations.

r s r and s r or s r xor s
0 0 0 0 0
0 1 0 1 1
1 0 0 1 1
1 1 1 1 0

We apply these operations to each of the cells in the 3 x 3 grids, so for example, we have

logical operations

Suppose we wish to make the outputs V and W from combinations of A, a, B and b.

example problem

We can make V and W in four steps as follows:

  1. Let C = a and B
  2. Let D = b and A
  3. Let V = C or b
  4. Let W = D or a

But if we're clever, we can do it with only three steps, like this:

  1. Let E = a or b
  2. Let V = E and B
  3. Let W = E and A

Now we're ready for the puzzle: Starting from the four inputs A, a, B and b, make both outputs

outputs

The winner will be the one who accomplishes this using the fewest number of steps.

Solution

here

List of solvers

Luan Nguyen wins the prize!