Manuscript Offprint
arXiv:2611.08304Hardness of integer linear feasibility with cyclic support
Abstract
We prove that integer linear feasibility is strongly -complete even when the constraint matrix has exactly two nonzero entries in every row and column, with its support forming a single cycle. This holds already for monotone systems (one positive and one negative coefficient in each inequality) with nonzero coefficients of absolute value 2 or 3 and right-hand sides in . No variable bounds are supplied separately from the system. For systems in which each inequality involves at most two variables, this strengthens known hardness results by restricting all numerical data to fixed finite sets. For systems in which each variable occurs in at most two inequalities, this establishes, to the best of our knowledge, the first -hardness result for feasibility. We also give negative answers, unless , to questions on polynomial-time solvability of integer programs with bounded coefficients and bounded totally -modular treewidth, and on fixed-parameter tractability of integer bound propagation with respect to coefficient and right-hand-side magnitudes.
1 Introduction
Given a matrix and a vector , the integer linear feasibility problem asks whether
has a solution. It is well known that this problem is -complete; see, e.g., [19]. In this paper, we are interested in sparse instances of (1). In particular, we consider the case in which every row of has at most two nonzero entries and the case in which every column of has at most two nonzero entries.
In formulation (1), no lower or upper bounds are supplied separately from the system. If a bound is present, it must be described by a row of , and therefore counts as an occurrence of the corresponding variable. This convention is immaterial when row sparsity is considered, since a bound is a one-variable inequality, but it is essential in the case of column sparsity.
The threshold two is particularly natural for sparse linear and integer programming. In the continuous setting, linear programs with at most two nonzero entries per row or per column admit strongly polynomial-time algorithms [6]. The corresponding integer feasibility problems, however, behave very differently.
*University of Padua, Department of Mathematics “Tullio Levi-Civita”, Italy.
Lagarias [13] proved that integer TVPI feasibility is NP-complete. Strong NP-completeness, even for monotone systems, follows from the construction in the proof of [8, Theorem 5]. The coefficients and right-hand sides in that construction are polynomially bounded in the size of the source instance, but are not bounded by an absolute constant. Moreover, one variable occurs in every inequality, so the construction does not establish hardness under the restriction of at most two nonzero entries per column.
A substantial literature has investigated positive results for integer TVPI systems. When finite lower and upper bounds on the variables are available, pseudopolynomial algorithms for feasibility are known [11, 12, 1]. Efficient algorithms are available under additional restrictions on the coefficients. For instance, one can solve in polynomial time TVPI systems with coefficients in [14, 20] and monotone TVPI systems in which the nonzero coefficients are powers of a fixed integer in absolute value [7].
Tamori and Kimura [21] give a polynomial-time algorithm for integer TVPI systems when all strongly connected components of the associated directed graph have bounded size. This graph has one node per variable and an arc from to for each inequality with .
1.2 Two nonzero entries per column
The restriction that every column of contains at most two nonzero entries means that each variable may occur in at most two inequalities. Again, the continuous problem is well behaved and closely related to generalized network optimization [10, 6].
Hardness results are known for closely related integer programming models, but they do not directly apply to (1). In particular, feasibility of
is strongly NP-complete even when has at most two nonzero entries per column; see [10, 17]. However, replacing each equality by two inequalities and expressing nonnegativity by additional inequalities may produce five occurrences per variable.
Pritchard and Chakrabarty [17] also discuss integer linear optimization problems in which each variable occurs in at most two inequalities, including its bounds. They note that NP-hardness was known in this setting, for instance via Unbounded Knapsack, while strong NP-hardness remained open. However, the usual formulation of Unbounded Knapsack is always feasible, and imposing a lower bound on the objective value introduces a third occurrence of each variable. Thus, this does not establish NP-hardness of feasibility for (1).
A recent result [5] establishes NP-hardness of feasibility for integer programs with a “path-like” constraint matrix whose entries are bounded in absolute value by 8. The formulation is
and the explicit variable bounds and play an essential role in the model. Hence that result does not settle the problem considered here.
To the best of our knowledge, the complexity of (1) under the restriction that every column of has at most two nonzero entries has remained open, even with respect to ordinary -hardness.
Positive results are known when sparsity is combined with additional arithmetic structure. In particular, Fiorini et al. [9] give a strongly polynomial-time algorithm to solve integer programs with at most two nonzero entries per row where all subdeterminants are bounded in absolute value by a fixed constant. They also observe that the analogous case with at most two nonzero entries per column can be solved in strongly polynomial time, via a reduction to -matching. Thus, bounded subdeterminants yield tractability for both sparsity patterns, whereas bounding the individual entries of the matrix does not, as our result below shows.
1.3 Our result
We prove that integer feasibility is -complete even for square monotone systems whose associated digraph consists of a single cycle and whose coefficients and right-hand sides belong to fixed finite sets. In particular, the matrices used in our reduction have exactly two nonzero entries in every row and column.
Problem 1 (CYCLIC-IP-FEASIBILITY).
INPUT: An integer and integers for , with for every .
QUESTION: Decide whether there exists satisfying
where .
Our main result, which we prove in Section 2, is the following.
Theorem 1. Problem CYCLIC-IP-FEASIBILITY is -complete even under the additional assumption that
Therefore, Problem CYCLIC-IP-FEASIBILITY is strongly -complete.
Viewed as a result for integer TVPI systems, Theorem 1 strengthens the strong -completeness result of Eiben et al. [8] by restricting the nonzero coefficients to absolute values 2 and 3 and the right-hand sides to . For any fixed integer , feasibility of monotone TVPI systems with nonzero coefficients of absolute value in can be checked in polynomial time [7]. Thus, unless , two distinct absolute values larger than 1 are necessary for -hardness of monotone TVPI feasibility. Our choice of 2 and 3 is therefore optimal both in the number of distinct absolute values and in their magnitude.
Viewed by columns, Theorem 1 establishes strong -completeness of feasibility for integer programs in which each variable occurs in at most two inequalities. Thus, it resolves the question discussed above, for which even ordinary -hardness of feasibility was not known. It also settles the question of strong -hardness for optimization raised in [17].
The cyclic structure also gives a sharp contrast with [8, Theorem 7], which shows that integer feasibility is polynomial-time solvable when the variable-constraint incidence graph is acyclic. This is the bipartite graph with one vertex for each variable and each inequality, and an edge for each nonzero entry of . For (2), this graph is a single cycle. Thus, Theorem 1 shows that allowing one cycle already yields strong -completeness, even when all coefficients and right-hand sides are bounded by a constant.
We also note that, for systems in integer variables whose variable-constraint incidence graph is a single cycle, the monotone case captures all potentially infeasible instances, up to sign changes of the variables. Indeed, if some column contains two nonzero entries with the same sign, the system is always feasible: the inequalities not involving the corresponding variable form a path and can be satisfied successively, after which that variable can be chosen with sufficiently large absolute value and the appropriate sign to satisfy its two incident inequalities. Otherwise, suitable sign changes of the variables make the system monotone.
Finally, Theorem 1 gives negative answers (unless ) to questions on polynomial-time solvability of integer programs with bounded coefficients and bounded totally -modular treewidth [15], and on fixed-parameter tractability of integer bound propagation with respect to coefficient and right-hand-side magnitudes [4]. These consequences are discussed in Section 3.
1.4 Proof idea
We prove Theorem 1 by a reduction from the following not-all-equal satisfiability problem, which is known to be -complete [18].
Problem 2 (MONOTONE NAE-3SAT).
INPUT: A nonempty collection of clauses , each consisting of three distinct un-negated Boolean variables.
QUESTION: Decide whether the variables occurring in the clauses can be assigned Boolean values such that no clause contains three variables with the same value.
The term “monotone” indicates that no clause contains a negated variable. We denote the variables occurring in the clauses by and identify each clause with the corresponding three-element subset of .
We fix an instance of MONOTONE NAE-3SAT and associate with each integer a Boolean assignment, in such a way that every assignment is represented by some integer. We then construct an instance of CYCLIC-IP-FEASIBILITY, which is conveniently described in terms of transfer maps. For integer variables , an inequality , with , is equivalent to , where
is called the transfer map of the inequality. For a block of inequalities , , the transfer map is . Since each is nondecreasing, is the minimum possible value of when . These transfer maps are one-dimensional affine Chvátal functions, and their construction amounts to eliminating the intermediate integer variables; see [3, 2].
The key step is to construct, for each clause , a block whose transfer map has the property that for every integer , with equality if and only if the assignment encoded by satisfies . Each block contains inequalities and uses only the coefficients and right-hand sides allowed in Theorem 1.
Finally, we concatenate the clause blocks and identify the last variable with the first, obtaining a cyclic system. As we prove below, a cyclic system of this form is feasible if and only if its transfer map satisfies for some integer . Since the transfer map of each clause block satisfies , this condition forces all these transfer maps to fix this particular . By construction, this is equivalent to every clause being satisfied by the assignment encoded by . As every Boolean assignment has such an encoding, the reduction follows.
2 Detailed proof
We first prove the cyclic feasibility criterion stated in the introduction.
Lemma 2. For , let be as in Problem 1. Let be the transfer map of the th inequality in (2), i.e., , and set . System (2) has an integer solution if and only if there exists such that .
Proof. Since in every feasible solution and has a negative coefficient only in the first inequality of (2), replacing by preserves feasibility. Repeating this operation for shows that system (2) has an integer solution if and only if there exists such that, defining for , and satisfy the last inequality of (2). The last condition is equivalent to .
For , define
These are transfer maps of inequalities of the form and , respectively.
A sequence of maps of this type specifies a block with integer variables and inequalities , each written in the corresponding linear form. The input and output variables are and , respectively, and the transfer map of the block is .
Fix an instance of MONOTONE NAE-3SAT with variables and clauses . We identify the Boolean values false and true with the bits 0 and 1, respectively.
Set . For and an integer , let
where denotes the -fold composition of , with being the identity. The integer encodes the assignment that gives the value for . The next lemma shows that every Boolean assignment is represented in this way. We denote by the residue class of modulo .
Lemma 3. For every integer , the map
is a bijection.
Proof. We first verify that is well defined. For every integer and ,
Consequently,
By iterating this implication, we obtain
In particular, recalling (3), for . Hence depends only on the residue class of modulo .
Since both and have cardinality , to prove that is bijective it is sufficient to show injectivity. Suppose that satisfy
Similar to (3), set for every . Since and , we have
Using (4), we obtain for , which implies . Therefore divides . Since and are coprime, it follows that divides . Thus (mod ), and is injective.
We now fix a clause
and set . In particular, .
A not-all-equal clause is violated in exactly two cases: all the bits indexed by are equal to 1, or all of them are equal to 0. Accordingly, we construct two penalty blocks. The transfer map of the first block adds one unit to its input precisely in the all-one case, while that of the second block adds one unit precisely in the all-zero case.
We start with the all-one penalty block. For , define
Let be the block of inequalities corresponding to the sequence of maps
Its transfer map is
Lemma 4. For every ,
Proof. Using the definition of and the first equality in (5), for every , and we obtain
where we write instead of to simplify the notation. A direct verification of the four possibilities shows that
Starting from , define
Then, by (6), .
Define for every . Since , . For , assuming that , we obtain
where the last equality follows from (7). Therefore, using (8),
It follows by backward induction that for . Furthermore, since and , we have . For , , and therefore if and only if and whenever , i.e., whenever . Since and , it follows that if and only if for every . As , this concludes the proof.
We next construct the all-zero penalty block. For , define
Let be the block of inequalities corresponding to the sequence of maps
Its transfer map is .
Lemma 5. For every ,
Proof. We first establish some identities. For and , it is straightforward to verify that
For , the analysis of the four possibilities then gives
Define
and, recursively for ,
Expanding the recursion gives .
We claim that, for every and every ,
As , for i=0 this claim proves the lemma.
We prove the claim by backward induction on . For , recall that . By (12) and (9) with ,
This is precisely (14) for i = H - 1.
Suppose now that (14) holds for the index , where . Applying the induction hypothesis with in place of z gives
where
We now distinguish two cases.
• Assume that . In this case . Using (13), (15), and then (10), we obtain
Since and , (16) gives
(18)
where the last equality follows from the assumption . Together, (17) and (18) imply (14).
• Suppose now that . In this case . Using (13), (15), and then (11), we obtain
If , then , as by (16). Since the minimum in (14) contains the term , the claimed identity holds.
If , then z is even, so . Thus (16) gives
Since and , (19) and the above equality yield
which is precisely (14).
This completes the proof of the lemma.
Let be the block obtained by placing first and second. Its transfer map is .
Lemma 6. For every , . Moreover, if and only if the set contains both 0 and 1.
Proof. By Lemmas 4 and 5, and for every ; thus, .
If contains both 0 and 1, then, again by Lemmas 4 and 5, , and therefore .
If for all , then and , so .
Finally, if for all , then , and since for every , .
We now have all the ingredients needed to prove the main theorem.
Proof of Theorem 1. Membership in NP follows from the standard fact that integer linear feasibility is in NP; see, e.g., [16].
To prove strong NP-hardness, we construct a cyclic system from the instance of MONOTONE NAE-3SAT fixed above. For each clause , we construct the block , and then concatenate these blocks in the order . Finally, we identify the output variable of the last block with the input variable of the first block. This produces a cyclic system of the form (2).
Let be the transfer map of the complete sequence of clause blocks. By Lemma 6, for every and every . Consequently,
We show that the formula is NAE-satisfiable if and only if the constructed cyclic system is feasible. Suppose first that the formula has a satisfying assignment . By Lemma 3, there exists such that for . Since every clause contains both a variable assigned 0 and a variable assigned 1, Lemma 6 implies for , and thus . By Lemma 2, the constructed cyclic system has an integer solution.
Conversely, suppose that the constructed cyclic system has an integer solution. By Lemma 2, there exists such that . Together with (20), this gives . Define
Lemma 6 gives . On the other hand, , so . In particular, for every . By Lemma 6, each set contains both 0 and 1. Hence, the assignment for satisfies every NAE clause.
We finally discuss the size and numerical values of the constructed instance. For a fixed clause , each of the blocks contains maps of type and maps of type , where . Consequently, the clause block contains at most inequalities. All variables introduced in the construction are distinct except for the identifications used to concatenate the blocks and close the cycle. Thus every variable occurs in exactly two inequalities, and the complete cyclic system contains at most variables and inequalities. Since the inequalities are specified explicitly, the reduction can be carried out in polynomial time.
Every inequality in the construction is of one of the forms
Thus all right-hand sides belong to .
Since the reduction is polynomial and produces only coefficients and right-hand sides whose absolute values are bounded by 3, it proves strong NP-hardness. This completes the proof.
We remark that each of the blocks and contains the same number of maps of types and . Therefore, in the complete cyclic system, the pairs and occur equally many times. Then, if denotes the matrix of the constructed cyclic system, we have
This is not surprising, as a system of inequalities with a square nonsingular constraint matrix defines a translated full-dimensional pointed cone, which always contains an integer point. Thus, for cyclic systems of inequalities, integer feasibility can be nontrivial only if the constraint matrix is singular.
Furthermore, deleting the last row and column of yields an submatrix with determinant , whose absolute value is at least . Thus, although the entries of are bounded by a constant, there are subdeterminants whose absolute values grow exponentially with . Therefore, there is no contradiction between Theorem 1 and the polynomial-time algorithms given in [9], where the boundedness of all subdeterminants is crucial.
3 Further consequences
We show how Theorem 1 implies negative answers to two additional open questions.
3.1 A consequence for bounded TDM-treewidth
McFarland [15] introduces a parameter called totally -modular treewidth (TDM-treewidth) for matrices with two nonzero entries per row. Let be the graph with one vertex for each column of and one edge for each row, joining the columns containing its two nonzero entries. When every column contains an entry of absolute value greater than 1, the TDM-treewidth equals the treewidth of plus one; this follows directly from [15, Definition 1.2].
McFarland [15, Question 7.2] asks whether integer programs can be solved in polynomial time when both the absolute values of the matrix entries and the TDM-treewidth are bounded by constants, without requiring finite bounds on the variables.
Theorem 1 gives a negative answer unless , already for feasibility. Indeed, every column of a matrix produced by our reduction contains entries of absolute value greater than 1, and is a cycle, which has treewidth two. Thus, the matrix entries have absolute value at most 3 and the TDM-treewidth is exactly 3.
3.2 A consequence for bound propagation
Suppose that each integer variable is initially restricted to a bounded interval. Bound propagation repeatedly tightens these intervals using one inequality together with the current variable bounds. For example, the inequality and the current bound imply . The process stops when an interval becomes empty or no bound can be tightened further. The associated decision problem asks whether all intervals are nonempty at termination.
Bordeaux et al. [4, Section 3.4.3] raise the question of whether bounding the absolute values of the coefficients and right-hand sides yields fixed-parameter tractability. Writing for this bound and for the binary input size, this would mean an algorithm with running time . The endpoints of the initial intervals are also given as input, in binary, but their absolute values need not be bounded by . In particular, such an algorithm would run in polynomial time for each fixed .
Theorem 1 rules this out unless . To see this, consider an instance satisfying the restrictions of the theorem. Standard bounds on the size of integer solutions [16] allow us to compute in polynomial time an integer such that restricting every variable to preserves feasibility. We use these intervals as the initial domains for bound propagation, while the coefficients and right-hand sides of the inequalities remain bounded in absolute value by 3.
For the cyclic systems considered here, propagation terminates with nonempty intervals if and only if the system has an integer solution within the initial intervals. Indeed, a feasible solution can never be removed by propagation. Conversely, suppose that propagation terminates with nonempty intervals, and let be their lower endpoints. The inequality , together with , implies . Since no lower bound can be tightened further, we must have for every , with indices taken cyclically. Thus, the vector of lower endpoints is feasible. Together with Theorem 1 (and membership in ), this shows that the decision problem is -complete even for cyclic systems with .
References
[1] Reuven Bar-Yehuda and Dror Rawitz. Efficient algorithms for integer programs with two variables per constraint. Algorithmica, 29(4):595–609, 2001.
[2] Amitabh Basu, Kipp Martin, Christopher Thomas Ryan, and Guanyi Wang. Mixed-integer linear representability, disjunctions, and Chvátal functions—modeling implications. Mathematics of Operations Research, 44(4):1264–1285, 2019.
[3] Charles E. Blair and Robert G. Jeroslow. The value function of an integer program. Mathematical Programming, 23(1):237–273, 1982.
[4] Lucas Bordeaux, George Katsirelos, Nina Narodytska, and Moshe Y. Vardi. The complexity of integer bound propagation. Journal of Artificial Intelligence Research, 40:657–676, 2011.
[5] Marcin Briánski, Alexandra Lassota, Kristýna Pekárková, Michał Pilipczuk, and Janina Reuter. On integer programs that look like paths. In Integer Programming and Combinatorial Optimization, volume 16588 of Lecture Notes in Computer Science, pages 158–172. Springer, 2026.
[6] Daniel Dadush, Zhuan Khye Koh, Bento Natura, Neil Olver, and László A. Végh. A strongly polynomial algorithm for linear programs with at most two nonzero entries per row or column. In Proceedings of the 56th Annual ACM Symposium on Theory of Computing, pages 1561–1572. ACM, 2024.
[7] Jorke M. de Vlas. On the complexity of integer programming with fixed-coefficient scaling. In 30th International Conference on Principles and Practice of Constraint Programming (CP 2024), volume 307 of Leibniz International Proceedings in Informatics (LIPics), pages 35:1–35:9. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024.
[8] Eduard Eiben, Robert Ganian, Dušan Knop, and Sebastian Ordyniak. Unary integer linear programming with structural restrictions. In Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence, pages 1284–1290. International Joint Conferences on Artificial Intelligence Organization, 2018.
[9] Samuel Fiorini, Gwenaël Joret, Stefan Weltge, and Yelena Yuditsky. Integer programs with bounded subdeterminants and two nonzeros per row. Journal of the ACM, 72(1):3:1–3:50, 2025.
[10] Dorit S. Hochbaum. Monotonizing linear programs with up to two nonzeroes per column. Operations Research Letters, 32(1):49–58, 2004.
[11] Dorit S. Hochbaum, Nimrod Megiddo, Joseph Naor, and Arie Tamir. Tight bounds and 2-approximation algorithms for integer programs with two variables per inequality. Mathematical Programming, 62(1–3):69–83, 1993.
[12] Dorit S. Hochbaum and Joseph Naor. Simple and fast algorithms for linear and integer programs with two variables per inequality. SIAM Journal on Computing, 23(6):1179–1192, 1994.
[13] Jeffrey C. Lagarias. The computational complexity of simultaneous Diophantine approximation problems. SIAM Journal on Computing, 14(1):196–209, 1985.
[14] Shuvendu K. Lahiri and Madanlal Musuvathi. An efficient decision procedure for UTVPI constraints. In Frontiers of Combining Systems, volume 3717 of Lecture Notes in Computer Science, pages 168–183. Springer, 2005.
[15] Caleb McFarland. Totally -modular tree decompositions of graphic matrices for integer programming. In 52nd International Workshop on Graph-Theoretic Concepts in Computer Science (WG 2026), volume 376 of Leibniz International Proceedings in Informatics (LIPIcs), pages 33:1–33:18. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2026.
[16] Christos H. Papadimitriou. On the complexity of integer programming. Journal of the ACM, 28(4):765–768, 1981.
[17] David Pritchard and Deeparnab Chakrabarty. Approximability of sparse integer programs. Algorithmica, 61(1):75–93, 2011.
[18] Thomas J. Schaefer. The complexity of satisfiability problems. In Proceedings of the 10th Annual ACM Symposium on Theory of Computing, pages 216–226. ACM, 1978.
[19] Alexander Schrijver. Theory of Linear and Integer Programming. Wiley-Interscience Series in Discrete Mathematics. John Wiley & Sons, Chichester, West Sussex, England, 1986.
[20] K. Subramani and Piotr Wojciechowski. Integer feasibility and refutations in UTVPI constraints using bit-scaling. Algorithmica, 85(2):610–637, 2023.
[21] Takuya Tamori and Kei Kimura. A fast algorithm for unbounded monotone integer linear systems with two variables per inequality via graph decomposition. In WALCOM: Algorithms and Computation, volume 11355 of Lecture Notes in Computer Science, pages 209–218. Springer, 2019.