arXiv:2611.22944cs.DSNov 2026

Manuscript Offprint

arXiv:2611.22944

Binary Affine Optimization with Nearly-Graphic Constraint Matrices

Qiming Fang, Sihong Shao, Yuxuan Wu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract: We present a polynomial-time algorithm for binary affine optimization with a linear objective when every column of the constraint matrix has Hamming weight at most 2, and prove that the problem is NP-hard when every column of the constraint matrix has Hamming weight exactly 3. We obtain fixed-parameter tractable (FPT) algorithms for the unrestricted problem provided that a nearly-graphic certificate is given, where the certificate roughly measures how far the constraint matrix is from having columns of Hamming weight at most 2. We apply our FPT algorithm to Max-Lin2 on graphs and obtain FPT algorithms parameterized by the contraction distance and contraction rank of the graph, utilizing the concept of Eulerian-spanning set. In the case of contraction distance, another FPT algorithm can be used to find the corresponding certificate; that is, we obtain an FPT algorithm that requires no information beyond the problem instance itself.

Keywords. binary affine optimization, nearly-graphic certificate, Max-Lin2, maxcut, signed frustration, FPT algorithm, contraction distance, Eulerian-spanning set.

AMS subject classifications. 90C09, 05C10, 15B34, 90C26, 05C50, 49M99

1 Introduction

Many exact optimization, decoding, and graph-labeling problems over binary variables can be written as, or converted to the following NP-hard binary affine optimization, with a linear objective. (For the notations in the introduction, one can look up them in “Basic assumptions” at the end of it.)