Consider a black and white picture. To encode such a picture, we can use a matrix, in which 1 stands for a white pixel and 0 stands for a black pixel.
Let's define a following operation that we can apply to a picture:
Put 1 in every entry of the matrix that has a neighboring entry with a 1 in it.
For example, the result of an application of that operation to the matrix
⎝⎛100000000010000000000100100100000000⎠⎞would look like this
⎝⎛110111110111001111111110111110111110⎠⎞What will happen if we apply that operation to the following 600×600 picture?
