1
This month’s challenge is from Thomas Dueholm Hansen and Uri Zwick (thanks). Find a matrix of bits T which has 6 columns and at least 21 rows such that the following holds: 1) For every row 1 <= i 1 < 21 there exists a column j such that T (i 1 ,j )! = T (i 1 +1,j ) and T (i 1 +1,j )= T (21,j ) 2) For every pair of rows 1 <= i 1 <i 2 < 21 there exists a column j such that T (i 1 ,j )! = T (i 1 +1,j ) and T (i 1 +1,j )= T (i 2 ,j )= T (i 2 +1,j ). Here is an example of a solution for the same problem with an 8 × 4 matrix: 0011 1101 1010 1100 0110 0100 0000 0001 Bonus question: Find this type of matrix with 7 columns and at least 33 rows. 1

Ibm quiz jan

Embed Size (px)

DESCRIPTION

Ibm quiz jan

Citation preview

Page 1: Ibm quiz jan

This month’s challenge is from Thomas Dueholm Hansen and Uri Zwick(thanks).Find a matrix of bits T which has 6 columns and at least 21 rows such thatthe following holds:

1) For every row 1 <= i1 < 21 there exists a column j such that T (i1, j)! =T (i1 + 1, j) and T (i1 + 1, j) = T (21, j)

2) For every pair of rows 1 <= i1 < i2 < 21 there exists a column j suchthat T (i1, j)! = T (i1 + 1, j) and T (i1 + 1, j) = T (i2, j) = T (i2 + 1, j).

Here is an example of a solution for the same problem with an 8× 4 matrix:00111101101011000110010000000001Bonus question: Find this type of matrix with 7 columns and at least 33rows.

1