Abstract
This paper explores the computational complexity of completing binary matrices under pairwise row distance constraints. Given a binary matrix with missing entries, the goal is to fill them such that the Hamming distance between any two rows is between $\alpha$ and $\beta$. We establish a detailed complexity landscape, showing that the problem is polynomial-time solvable for small diameters ($\beta \le 3$) or single missing entries per row ($k=1$), but generally NP-hard otherwise. Our proofs utilize Deza’s Theorem to identify sunflower structures in the matrix rows.
Introduction
The Diameter Matrix Completion (DMC) problem is a fundamental combinatorial task with applications in coding theory and bioinformatics. Unlike standard matrix completion, which seeks low-rank structures, DMC focuses on local pairwise constraints. Specifically, for a given range $[\alpha, \beta]$, we ask if an incomplete matrix $M$ can be completed to $M'$ such that for all rows $i, j$, $\alpha \le d_H(r_i, r_j) \le \beta$.
Methods and Theoretical Framework
Our primary tool is Deza’s Theorem from extremal set theory. This theorem allows us to characterize the structure of rows that satisfy tight diameter constraints. For large matrices, rows must eventually form a "sunflower" (or $\Delta$-system), where they share a common core and have disjoint differences. This structural insight enables reductions to 2-SAT and graph factor problems, specifically finding $(g, f)$-factors in bipartite graphs.
The Complexity Landscape
We provide a fine-grained analysis of DMC's complexity based on three parameters: the lower bound $\alpha$, the upper bound $\beta$, and the maximum number of missing entries per row $k$.
As shown in Figure 1, the problem is tractable when $k=1$ regardless of the distance range. However, for $k \ge 2$, the problem becomes NP-hard if the range $\beta - \alpha$ is at least 3.
Figure 2 illustrates the complexity with respect to the absolute bounds $\alpha$ and $\beta$. We prove that for $\alpha=0$, the problem is in P for $\beta \le 3$ and NP-hard for $\beta \ge 4$. An interesting observation is the role of parity; odd values of $\alpha$ often simplify the problem due to the triangle inequality constraints on Hamming distances between three rows.
Key Results
- Diameter Threshold: DMC is solvable in $O(n\ell^4)$ for $\beta \le 3$ (where $n$ is rows and $\ell$ is columns).
- Missing Entry Complexity: $k=1$ is always in P; $k=2$ is NP-hard for sufficiently large distance ranges.
- Sunflower Reduction: We demonstrate that for large $n$, the problem can be solved by focusing on a small subset of "representative" rows that form the sunflower core.
Discussion and Future Work
While we have mapped much of the complexity landscape, several open questions remain. The "white cells" in our diagrams represent specific parameter combinations where the complexity is still unknown (e.g., $\alpha=1, \beta=4$). Additionally, extending these results to non-binary alphabets remains a significant challenge, as the combinatorial properties of Hamming distances change significantly in higher dimensions. Future work may also investigate if the problem is Fixed-Parameter Tractable (FPT) when considering diameter and missing entries together as parameters.
Conclusion
By combining techniques from extremal set theory and combinatorial optimization, we have provided a near-complete picture of the complexity of binary matrix completion under diameter constraints. This work paves the way for more efficient algorithms in sequence analysis and data cleaning where missing values are prevalent.
Summary updated