Deterministic Polynomial Time Algorithms for Matrix Completion Problems
Gábor Ivanyos, Marek Karpinski, Nitin Saxena
Introduction
Few such cases are already known and they all look at mixed matrices, i.e. linear matrices where each entry is either a variable or a constant. Harvey et al. [HKM05], building on the works of Geelen [Gee99] and Murota [Mur00], gave an efficient deterministic algorithm for matrix completion over any field if the mixed matrix has each variable appearing at most once. While Geelen at al. [GIM03, GI05] gave an efficient deterministic algorithm when the mixed matrix is skew-symmetric and has each variable appearing at most twice.
The proof of this theorem basically involves looking at the linear space of matrices and showing that a greedy approach can be utilized to gradually increase the rank of an element in . Our methods are more algebraic and quite different from those of Lovász and Geelen. In particular our method is robust enough to check whether a given matrix in has the largest possible rank without needing the rank one generators of , they are needed only if we want to increase the rank (see Section 2).
Matrix algebras or algebras of linear transformations (in this paper by an algebra we mean a linear space of matrices or linear transformations that is also closed under multiplication) play a crucial role in the algorithm for Theorem 1. We consider special instances of matrix completion problems where algebras of linear transformations arise naturally. These are certain module problems.
In the context of -modules the algebra is of special interest ( is the identity in ). An -submodule of is a linear subspace closed under the action of all the transformations in . Obviously, the intersection of a family of submodules is again a submodule. In particular, if is a subset of then there is a smallest submodule of containing : the submodule generated by . It is , the linear span of vectors obtained by application of transformations from to vectors from . The set is a system of generators for the -module if .
Cyclic submodules, i.e. those generated by a single element, are of particular interest. For we consider the map given by . Obviously, is a linear map from into and the set is a linear space of linear maps from to . The rank of is the dimension of the submodule generated by .
A “Universal” Module Problem: The matrix completion problem in this context is finding an element which generates a submodule of maximum dimension. It turns out that this problem, which we call cyclic submodule optimization, is universal in matrix completion: there is a deterministic polynomial time reduction from maximum rank matrix completion to cyclic submodule optimization (over an arbitrary base field). We show this universality in Section 3. Universality implies two hardness results. First, existence of a deterministic polynomial time algorithm for cyclic submodule optimization would imply deterministic solvability of the matrix completion problem over sufficiently large fields. Also, over small fields, cyclic submodule optimization is -hard. Second, we get analogous hardness results for the existence of injective resp. surjective homomorphisms between modules (a -module homomorphism from to is a linear map in that commutes with the action of ):
There is a deterministic polynomial time reduction from the existence of (resp. finding) a nonsingular matrix completion to the problem of checking for the existence of (resp. finding) a surjective (or injective) homomorphism between two modules.
This result is remarkable in view of the recent deterministic polynomial time algorithm of Brookbanks & Luks [BL08] for module isomorphism problem (see also Chistov et al. [CIK97] over special base fields).
A “Dual” Problem: In Section 4 we consider a problem which is in some sense “dual” to the cyclic submodule optimization. This is finding a system of generators of smallest size for a module. In contrast to hardness of the former problem, we have an efficient solution to the latter:
Note that the above result includes testing cyclicity of modules efficiently over any field. This problem was considered in [CIK97] over special fields as a tool for constructing isomorphisms between modules. The algorithm is based on a greedy approach analogous to the method for Theorem 1, implicitly using certain submodule dimension optimization technique for a special class of (so called semisimple) modules.
Matrix Completion with Rank One Matrices
Assume, for contradiction, that is not contained in . Then there exists a vector such that for some integer . Let be the smallest among such integers. Then there are matrices with such that for every , the matrix is either or has rank one. Assume that for some . Then as . Furthermore, the minimality of implies
therefore, as for every , we have , contradicting the minimality of . Thus all the matrices are of rank one. Set and for , . The minimality of implies that for every we have . In particular, the vectors are linearly independent. Since is a rank one transformation on ,
From this, and from the minimality of we infer for every (otherwise ). We show below that is of a rank higher than , leading to the desired contradiction.
In the proof above, the special case deserves special attention. In that case we have a simple method for increasing the rank over sufficiently large fields which works even without any assumption on the presence of rank one matrices. We will use this simple observation later in Section 4.
We state below a simple fact about the linear spaces of matrices that is useful in providing a certificate for the rank maximality of a given matrix.
For any subspace pick a direct complement of in . Now .
Using Edmonds’ Matroid Intersection Theorem, Lovász (Section 3, [Lov89]) has shown that equality holds provided that is of maximum rank and if is spanned by rank one matrices. We give the following algorithmic generalization to the case when is spanned by rank one matrices and an arbitrary rank matrix.
1) Then there exists a deterministic polynomial time algorithm which decides if is an element of of maximum rank. If is of maximum rank then a subspace of is constructed such that .
2) If is not of maximum rank then, given rank one transformations that together with span , we can compute an element with in deterministic polynomial time.
We may assume wlog that , for otherwise we can pad transformations from with zeros to obtain a space , where with some (possibly zero) spaces . By padding a transformation we mean the map which is the direct sum of and the zero map: .
Let be an arbitrary nonsingular linear map such that is an idempotent. (The matrix of such a map can be obtained as the product of the matrices corresponding to the pivoting steps in Gaussian elimination for the matrix of .) As is invertible, is of maximum rank within iff is of maximum rank within . Also, rank one generators of are mapped to rank one generators of . If is of maximum rank then by Lemma 4, . Conversely if then, with and , we have , and =0 (if then for some and , implying ). Therefore with we have and . Now being invertible also implies that , which together with Fact 6 implies that has maximal rank. Thus if then we can efficiently construct with the required property, it is a witness of the maximality of the rank of (resp. ) in (resp. ). Thus, and hence is not of maximum rank if and only if is not contained in . This can be decided in an obvious way.
It is obvious that repeated applications of Theorem 7 completes the proof of Theorem 1.
Module Morphism Problems and Matrix Completion
In this section we present hardness results of certain problems concerning modules. The key constructions are modules that we call bipartite modules as they resemble bipartite graphs.
2 Universality of cyclic submodule optimization
3 Module morphisms
This shows that hard matrix completion problems do arise in module morphism spaces. However, curiously enough, deciding existence and construction of module isomorphisms, i.e., module homomorphisms which are bijective linear maps can be accomplished in polynomial time (see [CIK97] with some restriction for the base field and [BL08] over arbitrary fields). We show that this is not the case for testing existence of injective or surjective module morphisms.
Minimizing Number of Generators in Modules
A submodule of an -module is a linear subspace also closed under multiplication by elements of . The factor space of a submodule inherits the -module structure in a natural way and so do direct sums of linear spaces which are -modules. An -module is called simple if it has exactly two submodules: the whole and the zero submodule. The radical of a module is the intersection of its maximal (more precisely, maximal proper) submodules. A module is called semisimple if it is isomorphic to a direct sum of simple modules. By Section 2.7 of [Pie82], is semisimple if and only if its radical is the zero submodule. Furthermore, the factor module of by its radical is always semisimple. By Section 2.5 of [Pie82], the isomorphism classes of the constituents and their multiplicities in a decomposition of a semisimple module into a direct sum of simple modules are uniquely determined. Direct sums and homomorphic images of semisimple modules are semisimple.
where are pairwise non-isomorphic -modules. Let be an -module. As is a homomorphic image of at most copies of the module , we have
where the multiplicities are non-negative integers.
2 A Greedy Optimization of the Submodule Dimension in Semisimple Modules
The annihilator of is . Note that the annihilator of the single element is just the kernel of the linear map given as . The following lemma states that if the rank of is not maximal then we are in the situation of Lemma 5.
Assume that is semisimple. Then, for an arbitrary , iff .
The lemma generalizes a result of Babai and Rónyai which was used in [BR90] for solving the cyclic submodule optimization in modules over simple algebras. The proof can be found in [CIK97]. For completeness, we discuss it here as well. The second part of the lemma is especially interesting for small base fields where Lemma 5 does not apply.
Let be a semisimple -module and let . Let resp. be decomposed as in (3) resp. (4). Let . Assume that the dimension of the submodule is not maximal. Then, by Lemma 8, there exists an index such that the multiplicity of in is less than both and . Let be the submodule of which is the direct sum of the constituents of not isomorphic to . Then and is isomorphic with some . Recall that for a subset of the annihilator of in , denoted by is . Assume that . Then every element of act as zero on the factor module and hence also on the factor . As the latter module is isomorphic to we obtain that . Recall that the map is given as . It is an -module homomorphism from the left module to . Its kernel is and its image is . Therefore . Now is also an -submodule of . Let be a submodule of isomorphic to . We claim that . Indeed, if then, by the assumed isomorphism, as well, which is impossible by Section 3.2 of [Pie82]. The claim implies that the multiplicity of in is zero and the same holds in . But then the multiplicity of in the factor module is . This contradiction finishes the proof of: if is not of maximum dimension then in fact .
To see the reverse implication, assume that and let and such that . By Section 2.4 of [Pie82], there exists a submodule of such that and . Write where and . Put . As , we have . On the other hand, from but we infer that is a nonzero element of and by the equality , it is also an element of . Therefore , as required.
For a polynomial time implementation of the construction above, notice that a basis for can be found by solving a system of linear equations. Then and can be found by testing membership of products of pairs of basis elements for and those for . To compute a direct complement of , we first compute a projection of onto such that for every element (equivalently, for every element of a system of generators for , say ). (Recall that a projection onto a subspace of is a map whose image is and it acts as the identity on . If is submodule complementary to then the unique linear map which is the identity on and zero on is a projection onto which commutes with the action of on .) Once is constructed we take . It is straightforward to see that the image is in fact a direct complement of . The element in the argument above is then just and . This finishes the proof of Lemma 9.
The next lemma can be used to give a generalization for submodules generated by larger systems (eg. noncyclic modules).
The two lemmas above together with Lemma 5 immediately give the following.
The above greedy property for the submodules of a semisimple module gives us the following technical lemma for general modules. It will be useful in the subsequent algorithm for optimizing the number of generators in any module without computing the radical explicitly.
Using the previous Lemma, now we describe an iterative algorithm to find a minimal set of generators of a given module over a sufficiently large ground field.
If then output and exit. Inner loop:
If then continue inner loop with . Else continue outer loop with .
Over small base fields we use the algorithm of [FR85] or [CIW97] to compute the radical of and the radical of therefrom and compute a minimal generating set of the factor module using Proposition 12 directly. For each we pick a representative and obtain a subset such that and generates . By a standard property of the radical, we show that itself generates . Indeed, let be the submodule generated by . If then there is a maximal (proper) submodule . But by the definition of , therefore , implying , which is a contradiction to being proper. This ends the proof of Theorem 3.
Concluding remarks
We have shown that the maximum rank matrix in a linear space generated by rank one matrices and a further matrix of arbitrary rank can be found in deterministic polynomial time if the rank one generators are given. It would be interesting to know if there is an efficient deterministic method in the case where the rank one generators are not known. In this direction we have a deterministic polynomial time algorithm, which, given a matrix of maximum rank constructs a certificate that the rank is in fact maximal (see Theorem 7) without knowing the rank one generators. This implies that over sufficiently large base fields, the maximum rank matrix can be constructed in Las Vegas polynomial time. The best result of this flavor is the deterministic polynomial time algorithm of Gurvits [Gur03, Gur04] which decides whether there exists a nonsingular matrix in the space generated by rational matrices under the assumption that the span over the complex numbers can be generated by unknown rank one matrices (with not necessarily rational entries). Unfortunately, this algorithm decides the mere existence of a nonsingular matrix without explicitly constructing one.
Acknowledgements
We would like to thank the anonymous referees for several suggestions. We are grateful to the Hausdorff Research Institute for Mathematics, Bonn for its hospitality and the kind support.