Recently, I solved some Fill-a-Pix Puzzles (or also called Mosaic Puzzles) and got fascinated by the techniques to solve a puzzle. For those who don't know the rules to solve such a puzzle, you can follow this link or just comprehend the following mathematical description of the problem (which I need to formulate my problem):
Definition Let $A = (a_{ij}) \in M_{m,n}(\{0,1\})$ and $\mathcal{M}_A = (m_{ij}) \in M_{m,n}(\{0,\dots,9\})$ be the matrix defined by $$m_{ij} = \Big| \big\{ a_{kl} \, \big| \, |k-i|\leq 1, |l-j|\leq 1, a_{kl} = 1 \big\} \Big|.$$ Let us call $A$ the picture matrix and $\mathcal{M}_A$ the corresponding data matrix.
Example
If $$A = \begin{pmatrix} 0 & 1 & 0 \\ 1 & 0 & 1 \\ 1 & 1 & 0 \end{pmatrix},$$ then $$ \mathcal{M}_A = \begin{pmatrix} 2 & 3 & 2 \\ 4 & 5 & 3 \\ 3 & 4 & 2 \end{pmatrix}. $$
Observations and Thoughts
- Not every matrix can be a data matrix, for instance there is no picture matrix $A \in M_{1,2}(\{0,1\})$ such that $ \mathcal{M}_A = \begin{pmatrix} 0 & 2 \end{pmatrix} $.
It is not hard to show that if $\require{enclose} \enclose{horizontalstrike}{M}$ is a data matrix, then there is a unique matrix $\require{enclose} \enclose{horizontalstrike}{A}$ such that $\require{enclose} \enclose{horizontalstrike}{M = \mathcal{M}_A}$. A proof via induction is the key.(This observation is wrong, see 5.)- Let $M$ be a data matrix. Sometimes it suffices to not even know all entries of $M$ and still get a unique picture matrix corresponding to $M$ (this is exactly how this puzzle works). For example, if $$ M = \begin{pmatrix}* & * & * \\ * & 9 & * \\ * & * & * \end{pmatrix},$$ then the unique matrix $A$ with $M = \mathcal{M}_A$ is $$ A = \begin{pmatrix} 1 & 1 & 1 \\ 1 & 1 & 1 \\ 1 & 1 & 1 \end{pmatrix}. $$
- This does not always work though. To be more explicit: If we only know few entries of the data matrix, it can correspond to more than one possible picture matrices. An example is $$ M = \begin{pmatrix} * & * & * \\ * & 8 & * \\ * & * & * \end{pmatrix}. $$ Here, both $M = \mathcal{M}_A$ and $M = \mathcal{M}_B$ where $$ A = \begin{pmatrix} 1 & 0 & 1 \\ 1 & 1 & 1 \\ 1 & 1 & 1 \end{pmatrix} \quad \text{or} \quad B = \begin{pmatrix} 0 & 1 & 1 \\ 1 & 1 & 1 \\ 1 & 1 & 1 \end{pmatrix} $$ are possible solutions, depending, for instance, on the upper left entry of $M$.
- Even if we know all entries of the data matrix $M$, there might be different matrices $A$ and $B$ with $\mathcal{M}_A = M = \mathcal{M}_B$ as Jaap Scherphuis pointed out in the comments (and this is why observation 2. is wrong). I will put his example here: If $M = \begin{pmatrix} 1 & 1 \end{pmatrix}$, then both $A = \begin{pmatrix} 0 & 1 \end{pmatrix}$ and $A = \begin{pmatrix} 1 & 0 \end{pmatrix}$ satisfy $\mathcal{M}_A = M = \mathcal{M}_B$ despite $A \neq B$.
Assumption: From now on, we suppose $M$ is a data matrix for which there is exactly one corresponding picture matrix.
Question Given a data matrix $M$, what is the minimal number of entries of $M$ I need to know, such that I can find a unique picture matrix $A$ such that $M = \mathcal{M}_A$?
Is there any mathematics done on this problem already? If not, is there a similar problem where people have done research on it?
Thank you in advance!