On polynomial-time solvable linear Diophantine problems
Iskander Aliev

TL;DR
This paper presents a polynomial-time algorithm for solving certain linear Diophantine problems with specific matrix structures, improving previous conditions for efficient solvability.
Contribution
The authors develop a new polynomial-time algorithm for linear Diophantine problems with matrices containing a nonsingular submatrix, expanding the class of problems solvable efficiently.
Findings
Algorithm successfully finds solutions or determines infeasibility in polynomial time.
Improves previous complexity bounds for specific classes of linear Diophantine problems.
Applicable when the right-hand side is deep in the cone generated by a submatrix's columns.
Abstract
We obtain a polynomial-time algorithm that, given input (A, b), where A=(B|N) is an integer mxn matrix, m<n, with nonsingular mxm submatrix B and b is an m-dimensional integer vector, finds a nonnegative integer solution to the system Ax=b or determines that no such solution exists, provided that b is located sufficiently "deep" in the cone generated by the columns of B. This result improves on some of the previously known conditions that guarantee polynomial-time solvability of linear Diophantine problems.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
On polynomial-time solvable linear Diophantine problems
Iskander Aliev
Mathematics Institute, Cardiff University, Cardiff, Wales, UK
Abstract.
We obtain a polynomial-time algorithm that, given input , where , , with nonsingular and , finds a nonnegative integer solution to the system or determines that no such solution exists, provided that is located sufficiently “deep” in the cone generated by the columns of . This result improves on some of the previously known conditions that guarantee polynomial-time solvability of linear Diophantine problems.
Key words and phrases:
Multidimensional knapsack problem; polynomial-time algorithms; asymptotic integer programming; lattice points; Frobenius numbers
2000 Mathematics Subject Classification:
Primary: 11D04, 90C10; Secondary: 11H06
1. Introduction and Statement of Results
Consider the linear Diophantine problem
[TABLE]
The problem (1.4) is referred to as the multidimensional knapsack problem and is NP-hard already for (see Papadimitriou and Steiglitz [13, Section 15.7]).
Let be the columns of the matrix and let
[TABLE]
be the cone generated by . In this paper, we are interested in the problem of determining subsets such that (1.4) is solvable in polynomial time provided . We will use the general approach of Gomory [9], that was originally applied to study asymptotic integer programs, and combine it with results from discrete geometry.
We may assume, without loss of generality, that the matrix is partitioned as
[TABLE]
where is nonsingular and . In what follows, we will denote by and the Euclidean lengths of the longest columns in the matrices and , respectively.
Let be the cone generated by the columns of the matrix . The main result of this paper shows that (1.4) is solvable in polynomial time when the right-hand-side vector is located deep enough in the cone .
Let denote the affine cone of points in at Euclidean distance from the boundary of . We will denote by the greatest common divisor of all subdeterminants of .
Theorem 1.1**.**
There exists a polynomial-time algorithm which, given input , where , with nonsingular , and
[TABLE]
finds a nonnegative integer solution to the system or determines that no such solution exists.
We will now consider a special case where the matrix satisfies the following conditions:
[TABLE]
Notice that the condition (i) in (1.6) guarantees that the system has an integer solution for each (see Schrijver [16, Corollary 4.1 c]). The condition (ii) in (1.6), in its turn, guarantees that the polyhedron is bounded.
When in the setting (1.6), the problem (1.4) is linked to the well-known Frobenius problem (see Ramirez Alfonsin [14]). By the condition (i) in (1.6), we have and by (ii) we may assume that the entries of are positive. For such the largest integer such that (1.4) is infeasible is called the Frobenius number associated with , denoted by . It is an interesting question to determine whether there exists a polynomial-time algorithm that solves (1.4) provided that
[TABLE]
(cf. Conjecture 1.1 in [1]).
The best known result in this direction is due to Brimkov [5] (see also [1], [6] and [7]). Specifically, set
[TABLE]
A classical upper bound of Brauer [3] for the Frobenius numbers states that
[TABLE]
Brauer [3] and, subsequently, Brauer and Seelbinder [4] proved that the bound (1.8) is sharp and obtained a necessary and sufficient condition for the equality . Brimkov [5] gave a polynomial-time algorithm that solves (1.4) provided that
[TABLE]
We will show that an algorithm obtained in the proof of Theorem 1.1 matches the bound (1.9).
Corollary 1.1**.**
There exists a polynomial-time algorithm which, given input , where satisfies (1.6) and satisfies
[TABLE]
computes a nonnegative integer solution to the equation .
Recall that the Minkowski sum of the sets consists of all points with and . For , Aliev and Henk [1] considered the problem of estimating the minimal such that the problem (1.4) is solvable in polynomial time provided that satisfies (1.6) and
[TABLE]
where is the sum of columns of .
Theorem 1.1 in [1] gives the bound
[TABLE]
where
[TABLE]
Furthermore, Theorem 1.2 in [1] shows that the exponential factor in (1.10) is redundant for matrices with
[TABLE]
Here is the -dimensional Hermite constant for which we refer to [12, Definition 2.2.5].
Let us now consider the case . Condition (1.6) (ii) implies that the cone is pointed. Thus we may assume without loss of generality that with . The last result of this paper gives an estimate on the function that is independent on the dimension and allows a refinement of (1.10) when the ratio is relatively small.
Corollary 1.2**.**
There exists a polynomial-time algorithm which, given input , where , is nonsingular with , satisfies (1.6) and
[TABLE]
computes a nonnegative integer solution to the system .
Noticing that , the condition (1.12) improves on (1.10) provided that . For matrices satisfying (1.11) an improvement occurs when .
2. Tools from discrete geometry
For linearly independent in , the set is a -dimensional lattice with basis and determinant , where is the standard inner product of the basis vectors and . For a lattice and , the set is an affine lattice with determinant .
Let be a lattice in with basis and let be the vectors obtained from the Gram-Schmidt orthogonalisation of :
[TABLE]
where .
We will associate with the basis of the box
[TABLE]
Lemma 2.1**.**
There exists a polynomial-time algorithm that, given a basis of a -dimensional lattice and a point in finds a point such that .
A proof of Lemma 2.1 is implicitly contained, for instance, in the description of the classical nearest plane procedure of Babai [2]. For completeness, we include a proof that follows along an argument of the proof of Theorem 5.3.26 in [10].
Proof.
Let be any point of . We need to find a point such that
[TABLE]
This can be achieved using the following procedure. First, we find the rational numbers , such that
[TABLE]
This can be done in polynomial time by Theorem 3.3 in [16]. Then we subtract to get a representation
[TABLE]
where . Next subtract and so on until we obtain the representation (2.4). ∎
Let now be a -dimensional sublattice of . By Theorem I (A) and Corollary 1 in Chapter I of Cassels [8], there exists a unique basis of the sublattice of the form
[TABLE]
where are the standard basis vectors of and the coefficients satisfy the conditions and .
Lemma 2.2**.**
There exists a polynomial-time algorithm that, given a basis of a lattice finds the basis of of the form (2.9).
Proof.
Let be the matrix formed by the coefficients in (2.9) with for . Observe that after a straightforward re-numbering of the rows and columns of we obtain a matrix in the row-style Hermite Normal Form. Now it is sufficient to notice that the Hermite Normal Form can be computed in polynomial time using an algorithm of Kannan and Bachem [11]. ∎
The Gram-Schmidt orthogonalisation (2.3) of the basis (2.9) of has the form . Therefore, noticing that the basis (2.9) is unique, we can associate with the box
[TABLE]
Lemma 2.3**.**
For any we have
[TABLE]
Proof.
It is sufficient to notice that by (2.9) . ∎
3. Proof of Theorem 1.1
Given and , we will denote by the set of integer points in the affine subspace
[TABLE]
that is
[TABLE]
The set is either empty or is an affine lattice of the form , where is any integer vector with and is the lattice formed by all integer points in the kernel of the matrix . We will call the system integer feasible if it has integer solutions or, equivalently, . Otherwise the system is called integer infeasible.
Let denote the projection map from to that forgets the first coordinates. Recall that Theorem 1.1 applies to , where is nonsingular. It follows that the restricted map is bijective. Specifically, for any we have
[TABLE]
For technical reasons, it is convenient to consider the projected set and the projected lattice . Since the map is bijective, we obtain the following lemma.
Lemma 3.1**.**
Let be a basis of . The vectors form a basis of the lattice .
Using notation of Lemma 3.1, let be the matrix with columns . We will denote by the -submatrix of consisting of the last rows; hence, the columns of are . Then . The rows of the matrix span the -dimensional rational subspace of orthogonal to the -dimensional rational subspace spanned by the columns of . Therefore, by Lemma 5G and Corollary 5I in [15], we have and, consequently,
[TABLE]
Consider the following algorithm.
Algorithm 1
- Input:
, where , , with nonsingular and .
- Output:
Solution to an integer feasible system .
- Step 0:
If then the system is integer infeasible. Stop.
- Step 1:
Compute a point of the affine lattice .
- Step 2:
Find a point such that .
- Step 3:
Set and output the vector
[TABLE]
Note that Algorithm 1 will be also used in the proof of Corollary 1.1, where the condition (1.5) is replaced by its refinement (1.9). For this reason, we do not require that the input of the algorithm satisfies (1.5) and, as a consequence, the algorithm outputs a certain integer, but not necessarily nonnegative solution to an integer feasible system or detects integer infeasibility.
To complete the proof of Theorem 1.1, it is sufficient to show that Algorithm 1 is polynomial-time and that this algorithm computes a nonnegative integer solution to any integer feasible system that satisfies its input conditions together with (1.5).
Let us show that all steps of the Algorithm 1 can be computed in polynomial time. By Corollaries 5.3 b,c in [16] we can compute in polynomial time integer vectors such that
[TABLE]
or determine that is empty. This settles Step 0 and Step 1. Further, the vectors in (3.6) form a basis of the lattice . In Step 2 we first find the projected vectors that form a basis of the lattice by Lemma 3.1. Then the point can be computed in polynomial time using Lemmas 2.2 and 2.1. Finally, the lifted point in Step 3 is computed in polynomial time by a straightforward calculation (3.5).
We will now show that Algorithm 1 computes a nonnegative integer solution to any integer feasible system with satisfying its input conditions together with (1.5). By Step 0, we may assume that and hence at Step 1 we can find a point . At Step 2 we can find a point with by Lemma 2.1. Hence, the point at Step 3 is a nonnegative point of the affine lattice . Further, since and is bijective, the point is integer. Summarising, we have
[TABLE]
It is now sufficient to show that .
Observe that, by construction, . Hence, Lemma 2.3, applied to and , implies
[TABLE]
Expanding the product in (3.10) gives
[TABLE]
Hence, denoting by the Euclidean norm, we obtain the inequality
[TABLE]
By (3.2), and by (3.11), . The cone can be written as
[TABLE]
and therefore
[TABLE]
∎
4. Proof of Corollary 1.1
Let satisfy (1.6). Then the lattice can be written in the form
[TABLE]
Note also that by (3.2).
The next lemma shows that the box is entirely determined by the parameters defined by (1.7).
Lemma 4.1**.**
The box has the form
[TABLE]
Proof.
By the definition of the box , it is sufficient to show that
[TABLE]
Let be the basis of the form (2.9) of the lattice . Let denote the sublattice of generated by the first basis vectors . We can write in the form
[TABLE]
Hence, , . On the other hand, (2.9) implies , . Since , we have for . Noticing that and , we obtain (4.1). ∎
Suppose that . The condition (1.6) (i) implies that the equation has integer solutions. Therefore, it is sufficient to show that the vector computed by Algorithm 1 is nonnegative. When , (3.5) sets with
[TABLE]
Further, (3.9) implies that is nonnegative and .
To see that , we observe first that the points of the affine lattice are split into the layers of the form
[TABLE]
Suppose, to derive a contradiction, that . Then, by (4.2),
[TABLE]
On the other hand, by construction, and hence, using Lemma 4.1 and noticing (1.8),
[TABLE]
Due to (4.3), the bounds (4.4) and (4.5) imply . The obtained contradiction shows that .
5. Proof of Corollary 1.2
We will show that a nonnegative integer solution to the system can be computed using Algorithm 1 from the proof of Theorem 1.1. By condition (1.6) (i), the system is integer feasible. Following the proof of Theorem 1.1, it is sufficient to show that any that satisfies (1.12) must satisfy (1.5).
Let denote the distance from the vector to the boundary of . Observe that we can write , where , are the columns of and . Therefore, we have
[TABLE]
and, consequently, the points of the affine cone
[TABLE]
are at the distance to the boundary of .
6. Acknowledgement
The author is grateful to Valentin Brimkov, Martin Henk and Timm Oertel for valuable comments and suggestions.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] I. Aliev and M. Henk, LLL-reduction for integer knapsacks , J. Comb. Optim. 24 (2012), 613–626.
- 2[2] L. Babai, On Lovász’ lattice reduction and the nearest lattice point problem , Combinatorica 6 (1986), no. 1, 1–13.
- 3[3] A. Brauer, On a problem of partitions , Amer. J. Math., 64 (1942), 299–312.
- 4[4] A. Brauer and B. M. Seelbinder, On a problem of partitions II , Amer. J. Math., 76 (1954), 343–346.
- 5[5] V. Brimkov, Effective algorithms for solving a broad class of linear Diophantine equations in nonnegative integers , Mathematics and mathematical education (Bulgarian) (Albena, 1989), 241–246.
- 6[6] V. Brimkov, A polynomial algorithm for solving a large subclass of linear Diophantine equations in nonnegative integers , C. R. Acad. Bulgare Sci. 41 (1988), no. 11, 33–35.
- 7[7] V. Brimkov and R. Barneva, Gradient elements of the knapsack polytope , Calcolo 38 (2001), 49–66.
- 8[8] J. W. S. Cassels, An introduction to the Geometry of Numbers , Springer-Verlag 1971.
