3. The labeled numbers on top (or each column) is the total value of the black cells within the column.
4. The labeled numbers on right (or end of each row) is the total value of the white cells within the row.
For example:
8 1
5 2 2
6 1 6
3 4 4
- The number on top of 1st column represents sum of the black cells in {5,6,3}. Which we can assume 5 and 3 are black cells.
- The second number is 1 that we know among {2,1,4}, 1 is the only black cells. so the black cells are {5,1,3} and others are white cells.
./a.out < input
ii. the last cell of each row (excluding the first row) should indicate the sum of white cells on each row.
b. A file name 'formula' will be created, when program is executed. this file contains z3 input details.
c. A file name 'output' will be created, when program is succesfully runned. this file will show a table of 0 and 1, which each of them representing white and black cells.
1. gcc hw1.c
2. ./a.out < input
1. ./Makefile
2. ./answer.out < input