difficult problem
Moderator: Board moderators
-
- Learning poster
- Posts: 60
- Joined: Tue Aug 13, 2002 2:39 am
- Location: Mexico
Don't understand your statement of the problem
Tell how many 2x2 matrix there are with the condition above or
Tell how many AxB matrix there are such that doesn't contain a 2x2 matrix with the condition above?
Tell how many AxB matrix there are such that doesn't contain a 2x2 matrix with the condition above?


-
- Experienced poster
- Posts: 169
- Joined: Wed Oct 31, 2001 2:00 am
- Location: Singapore
Ok, this is how I understand it (but I can't solve it):
You have a matrix n*m, containing either 0 or 1. Out of the 2^(n*m) matrices, how many do not contain a 2*2 square with all 1s or 0s?
E.g.:
011
011
101
Contains a 2*2 square with 1s...
Which is why for same input, output is 14 (16 - all 1s and all 0s).
Does this help?
You have a matrix n*m, containing either 0 or 1. Out of the 2^(n*m) matrices, how many do not contain a 2*2 square with all 1s or 0s?
E.g.:
011
011
101
Contains a 2*2 square with 1s...
Which is why for same input, output is 14 (16 - all 1s and all 0s).
Does this help?