On the complexity of Sandwich Problems for $M$-partitions
Alexey Barsukov, Santiago Guzmán-Pro
TL;DR
The paper develops a structural, CSP-based framework to understand the complexity of sandwich problems for matrix partitions by translating M-partitions into CSPs over reflexive complete 2-edge-coloured graphs. It provides a dichotomy theorem that either yields a tractable decomposition via homogeneous concatenations (and Datalog/bounded width) or proves NP-hardness through hereditary pp-constructs of $\mathbb{K}_3$, thereby extending the Hell–Nesetril classification to this graph category. The authors also connect these structural insights to graph sandwich problems, obtaining a P vs NP-complete dichotomy and a universal algorithm for broad matrix-partition families. The results unify CSP theory, polymorphisms, and sandwich problems, offering both a conceptual and algorithmic path toward solving general matrix-partition instances. The work also outlines open problems, including extensions to non-reflexive/complete cases and the list-version of SP for M-partitions.
Abstract
We present a structural classification of constraint satisfaction problems (CSP) described by reflexive complete $2$-edge-coloured graphs. In particular, this classification extends the structural dichotomy for graph homomorphism problems known as the Hell--Nešetřil theorem (1990). Our classification is also efficient: we can check in polynomial time whether the CSP of a reflexive complete $2$-edge-coloured graph is in P or NP-complete, whereas for arbitrary $2$-edge-coloured graphs, this task is NP-complete. We then apply our main result in the context of matrix partition problems and sandwich problems. Firstly, we obtain one of the few algorithmic solutions to general classes of matrix partition problems. And secondly, we present a P vs. NP-complete classification of sandwich problems for matrix partitions.
