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 L:=⟨B0,B1,…,Bn⟩L:=\langle B_{0},B_{1},\ldots,B_{n}\rangle of matrices and showing that a greedy approach can be utilized to gradually increase the rank of an element in LL. 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 LL has the largest possible rank without needing the rank one generators of LL, 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 S{\cal S}-modules the algebra A=Env(ν(S)∪I){\cal A}={\rm Env}(\nu({\cal S})\cup I) is of special interest (II is the identity in Lin(V){\rm Lin}(V)). An S{\cal S}-submodule of VV is a linear subspace closed under the action of all the transformations in ν(S)\nu({\cal S}). Obviously, the intersection of a family of submodules is again a submodule. In particular, if TT is a subset of VV then there is a smallest submodule of VV containing TT: the submodule generated by TT. It is AT{\cal A}T, the linear span of vectors obtained by application of transformations from A{\cal A} to vectors from TT. The set T⊆VT\subseteq V is a system of generators for the S{\cal S}-module VV if V=ATV={\cal A}T.

Cyclic submodules, i.e. those generated by a single element, are of particular interest. For v∈Vv\in V we consider the map μv:A→V\mu_{v}:{\cal A}\rightarrow V given by μv(B)=Bv\mu_{v}(B)=Bv. Obviously, μv\mu_{v} is a linear map from A{\cal A} into VV and the set {μv∣v∈V}\{\mu_{v}|v\in V\} is a linear space of linear maps from A{\cal A} to VV. The rank of μv\mu_{v} is the dimension of the submodule Av{\cal A}v generated by vv.

A “Universal” Module Problem: The matrix completion problem in this context is finding an element vv 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 NPNP-hard. Second, we get analogous hardness results for the existence of injective resp. surjective homomorphisms between modules (a S{\cal S}-module homomorphism from VV to V′V^{\prime} is a linear map in Lin(V,V′){\rm Lin}(V,V^{\prime}) that commutes with the action of S{\cal S}):

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 Env(L)ker⁡e{\rm Env}(L)\ker e is not contained in eVeV. Then there exists a vector v∈ker⁡ev\in\ker e such that Lsv⊈eVL^{s}v\not\subseteq eV for some integer ss. Let s≥1s\geq 1 be the smallest among such integers. Then there are matrices h1,…,hs∈Lh_{1},\ldots,h_{s}\in L with hs⋯h2h1v∉eVh_{s}\cdots h_{2}h_{1}v\not\in eV such that for every ii, the matrix hih_{i} is either ee or has rank one. Assume that hj=eh_{j}=e for some j≤sj\leq s. Then j>1j>1 as ev=0ev=0. Furthermore, the minimality of ss implies

therefore, as ew=wew=w for every w∈eVw\in eV, we have hs⋯hj+1hjhj−1⋯h1v=hs⋯h_{s}\cdots h_{j+1}h_{j}h_{j-1}\cdots h_{1}v=h_{s}\cdots hj+1ehj−1⋯h1v=h_{j+1}eh_{j-1}\cdots h_{1}v= hs⋯hj+1hj−1⋯h1vh_{s}\cdots h_{j+1}h_{j-1}\cdots h_{1}v, contradicting the minimality of ss. Thus all the matrices h1,…,hsh_{1},\ldots,h_{s} are of rank one. Set v0=vv_{0}=v and for 1≤i≤s1\leq i\leq s, vi=hivi−1v_{i}=h_{i}v_{i-1}. The minimality of ss implies that for every 1≤i≤s1\leq i\leq s we have vi∈Liv∖∑j=0i−1Ljvv_{i}\in L^{i}v\setminus\sum_{j=0}^{i-1}L^{j}v. In particular, the vectors v0,…,vsv_{0},\ldots,v_{s} are linearly independent. Since hih_{i} is a rank one transformation on VV,

From this, and from the minimality of ss we infer hjvi−1=0h_{j}v_{i-1}=0 for every 1≤i<j≤s1\leq i<j\leq s (otherwise vj∈hjLi−1v⊆Livv_{j}\in h_{j}L^{i-1}v\subseteq L^{i}v). We show below that a:=e+h1+…+hsa:=e+h_{1}+\ldots+h_{s} is of a rank higher than ee, leading to the desired contradiction.

In the proof above, the special case s=1s=1 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 W≤UW\leq U pick a direct complement W′W^{\prime} of WW in UU. Now dim⁡U−rk  h\dim U-{\rm rk\;}h =dim⁡U−dim⁡hU=\dim U-\dim hU ≥(dim⁡W−dim⁡hW)+(dim⁡W′−dim⁡hW′)\geq(\dim W-\dim hW)+(\dim W^{\prime}-\dim hW^{\prime}) ≥dim⁡W−dim⁡LW\geq\dim W-\dim LW. □\Box

Using Edmonds’ Matroid Intersection Theorem, Lovász (Section 3, [Lov89]) has shown that equality holds provided that hh is of maximum rank and if LL is spanned by rank one matrices. We give the following algorithmic generalization to the case when LL is spanned by rank one matrices and an arbitrary rank matrix.

1) Then there exists a deterministic polynomial time algorithm which decides if hh is an element of LL of maximum rank. If hh is of maximum rank then a subspace WW of UU is constructed such that rk  h=dim⁡U−(dim⁡W−dim⁡LW){\rm rk\;}h=\dim U-(\dim W-\dim LW).

2) If hh is not of maximum rank then, given rank one transformations that together with hh span LL, we can compute an element h′∈Lh^{\prime}\in L with rk  h′>rk  h{\rm rk\;}h^{\prime}>{\rm rk\;}h in deterministic polynomial time.

We may assume wlog that dim⁡U=dim⁡V\dim U=\dim V, for otherwise we can pad transformations from LL with zeros to obtain a space L′≤Lin(U⊕U′,V⊕V′)L^{\prime}\leq{\rm Lin}(U\oplus U^{\prime},V\oplus V^{\prime}), where dim⁡U⊕U′=dim⁡V⊕V′\dim U\oplus U^{\prime}=\dim V\oplus V^{\prime} with some (possibly zero) spaces U′,V′U^{\prime},V^{\prime}. By padding a transformation b∈Lin(U,V)b\in{\rm Lin}(U,V) we mean the map b′∈Lin(U⊕U′,V⊕V′)b^{\prime}\in{\rm Lin}(U\oplus U^{\prime},V\oplus V^{\prime}) which is the direct sum of bb and the zero map: b′(u,u′)=(bu,0)b^{\prime}(u,u^{\prime})=(bu,0).

Let g:V→Ug:V\rightarrow U be an arbitrary nonsingular linear map such that gh:U→Ugh:U\rightarrow U is an idempotent. (The matrix of such a map gg can be obtained as the product of the matrices corresponding to the pivoting steps in Gaussian elimination for the matrix of hh.) As gg is invertible, hh is of maximum rank within LL iff ghgh is of maximum rank within gLgL. Also, rank one generators of LL are mapped to rank one generators of gLgL. If ghgh is of maximum rank then by Lemma 4, Env(gL)ker⁡gh≤ghU{\rm Env}(gL)\ker gh\leq ghU. Conversely if Env(gL)ker⁡gh≤ghU{\rm Env}(gL)\ker gh\leq ghU then, with W0:=Env(gL)ker⁡ghW_{0}:={\rm Env}(gL)\ker gh and W1:=ker⁡ghW_{1}:=\ker gh, we have gLW0,gLW1≤W0≤ghUgLW_{0},gLW_{1}\leq W_{0}\leq ghU, and W0∩W1W_{0}\cap W_{1}=0 (if v∈W0∩W1v\in W_{0}\cap W_{1} then v=ghuv=ghu for some u∈Uu\in U and ghv=0ghv=0, implying 0=ghghu=ghu=v0=ghghu=ghu=v). Therefore with W:=W0+W1≤UW:=W_{0}+W_{1}\leq U we have gLW≤W0gLW\leq W_{0} and dim⁡U−rk  gh=ker⁡gh=dim⁡W1=dim⁡W−dim⁡W0≤dim⁡W−dim⁡gLW\dim U-{\rm rk\;}gh=\ker gh=\dim W_{1}=\dim W-\dim W_{0}\leq\dim W-\dim gLW. Now gg being invertible also implies that dim⁡U−rk  h≤dim⁡W−dim⁡LW\dim U-{\rm rk\;}h\leq\dim W-\dim LW, which together with Fact 6 implies that hh has maximal rank. Thus if Env(gL)ker⁡gh≤ghU{\rm Env}(gL)\ker gh\leq ghU then we can efficiently construct WW with the required property, it is a witness of the maximality of the rank of ghgh (resp. hh) in gLgL (resp. LL). Thus, hh and hence ghgh is not of maximum rank if and only if Env(gL)ker⁡gh{\rm Env}(gL)\ker gh is not contained in ghUghU. 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 A{\cal A}-module is a linear subspace also closed under multiplication by elements of A{\cal A}. The factor space of a submodule inherits the A{\cal A}-module structure in a natural way and so do direct sums of linear spaces which are A{\cal A}-modules. An A{\cal A}-module VV is called simple if it has exactly two submodules: the whole VV and the zero submodule. The radical of a module is the intersection of its maximal (more precisely, maximal proper) submodules. A module VV is called semisimple if it is isomorphic to a direct sum of simple modules. By Section 2.7 of [Pie82], VV is semisimple if and only if its radical is the zero submodule. Furthermore, the factor module of VV 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 ViV_{i} are pairwise non-isomorphic A{\cal A}-modules. Let VV be an A{\cal A}-module. As VV is a homomorphic image of at most dim⁡V\dim V copies of the module A{\cal A}, we have

where the multiplicities sis_{i} are non-negative integers.

2 A Greedy Optimization of the Submodule Dimension in Semisimple Modules

The annihilator AnnA(U){\rm Ann}_{\cal A}(U) of U⊆VU\subseteq V is {a∈A∣au=0\mbox forevery u∈U}\{a\in{\cal A}|au=0\mbox{~{}for every~{}}u\in U\}. Note that the annihilator AnnA(v){\rm Ann}_{\cal A}(v) of the single element v∈Vv\in V is just the kernel of the linear map μv:A→V\mu_{v}:{\cal A}\rightarrow V given as μv(a)=av\mu_{v}(a)=av. The following lemma states that if the rank of μv\mu_{v} is not maximal then we are in the situation of Lemma 5.

Assume that VV is semisimple. Then, for an arbitrary u∈Vu\in V, dim⁡Au=max⁡{dim⁡Au′∣u′∈V}\dim{\cal A}u=\max\{\dim{\cal A}u^{\prime}|u^{\prime}\in V\} iff AnnA(u)V⊆Au{\rm Ann}_{\cal A}(u)V\subseteq{\cal A}u.

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 VV be a semisimple S{\cal S}-module and let A=Env(I∪ν(S)){\cal A}={\rm Env}(I\cup\nu({\cal S})). Let A{\cal A} resp. VV be decomposed as in (3) resp. (4). Let u∈Vu\in V. Assume that the dimension of the submodule Au{\cal A}u is not maximal. Then, by Lemma 8, there exists an index ii such that the multiplicity of ViV_{i} in Au{\cal A}u is less than both sis_{i} and mim_{i}. Let WW be the submodule of VV which is the direct sum of the constituents of VV not isomorphic to ViV_{i}. Then V/W≅VisiV/W\cong V_{i}^{s_{i}} and V/(W+Au)V/(W+{\cal A}u) is isomorphic VihV_{i}^{h} with some h>0h>0. Recall that for a subset XX of VV the annihilator of XX in A{\cal A}, denoted by AnnA(X){\rm Ann}_{\cal A}(X) is {a∈A∣ax=0\mbox forevery x∈X}\{a\in{\cal A}|ax=0\mbox{~{}for every~{}}x\in X\}. Assume that AnnA(u)V⊆Au{\rm Ann}_{\cal A}(u)V\subseteq{\cal A}u. Then every element of AnnA(u){\rm Ann}_{\cal A}(u) act as zero on the factor module V/AuV/{\cal A}u and hence also on the factor V/(W+Au)V/(W+{\cal A}u). As the latter module is isomorphic to VihV_{i}^{h} we obtain that AnnA(u)⊆AnnA(Vi){\rm Ann}_{\cal A}(u)\subseteq{\rm Ann}_{\cal A}(V_{i}). Recall that the map μu:A→V\mu_{u}:{\cal A}\rightarrow V is given as μu(a)=au\mu_{u}(a)=au. It is an A{\cal A}-module homomorphism from the left module A{\cal A} to VV. Its kernel is AnnA(u){\rm Ann}_{\cal A}(u) and its image is Au{\cal A}u. Therefore Au≅A/AnnA(u){\cal A}u\cong{\cal A}/{\rm Ann}_{\cal A}(u). Now AnnA(Vi){\rm Ann}_{\cal A}(V_{i}) is also an A{\cal A}-submodule of A{\cal A}. Let LL be a submodule of A{\cal A} isomorphic to ViV_{i}. We claim that LVi≠0LV_{i}\neq 0. Indeed, if LVi=0LV_{i}=0 then, by the assumed isomorphism, LL=0LL=0 as well, which is impossible by Section 3.2 of [Pie82]. The claim implies that the multiplicity of ViV_{i} in AnnA(Vi){\rm Ann}_{\cal A}(V_{i}) is zero and the same holds in AnnA(u)⊆AnnA(Vi){\rm Ann}_{\cal A}(u)\subseteq{\rm Ann}_{\cal A}(V_{i}). But then the multiplicity of ViV_{i} in the factor module A/AnnA(u)≅Au{\cal A}/{\rm Ann}_{\cal A}(u)\cong{\cal A}u is mim_{i}. This contradiction finishes the proof of: if Au{\cal A}u is not of maximum dimension then in fact AnnA(u)V⊈Au{\rm Ann}_{\cal A}(u)V\not\subseteq{\cal A}u.

To see the reverse implication, assume that AnnA(u)V⊈Au{\rm Ann}_{\cal A}(u)V\not\subseteq{\cal A}u and let w∈Vw\in V and b∈AnnA(u)b\in{\rm Ann}_{\cal A}(u) such that bw∉Aubw\not\in{\cal A}u. By Section 2.4 of [Pie82], there exists a submodule W′W^{\prime} of VV such that W′∩Au=0W^{\prime}\cap{\cal A}u=0 and W′+Au=VW^{\prime}+{\cal A}u=V. Write w=au+w′w=au+w^{\prime} where a∈Aa\in{\cal A} and w′∈W′w^{\prime}\in W^{\prime}. Put u′=u+w′u^{\prime}=u+w^{\prime}. As Aw′∈W′{\cal A}w^{\prime}\in W^{\prime}, we have Au′+W′=Au+W′{\cal A}u^{\prime}+W^{\prime}={\cal A}u+W^{\prime}. On the other hand, from bw∉Aubw\not\in{\cal A}u but bau∈Aubau\in{\cal A}u we infer that bw′bw^{\prime} is a nonzero element of W′W^{\prime} and by the equality bu′=bu+bw′=bw′bu^{\prime}=bu+bw^{\prime}=bw^{\prime}, it is also an element of Au′{\cal A}u^{\prime}. Therefore dim⁡Au′>dim⁡V−dim⁡W′=dim⁡Au\dim{\cal A}u^{\prime}>\dim V-\dim W^{\prime}=\dim{\cal A}u, as required.

For a polynomial time implementation of the construction above, notice that a basis for AnnA(u){\rm Ann}_{\cal A}(u) can be found by solving a system of linear equations. Then bb and ww can be found by testing membership of products of pairs of basis elements for AnnA(u){\rm Ann}_{\cal A}(u) and those for VV. To compute a direct complement of Au{\cal A}u, we first compute a projection π\pi of VV onto Au{\cal A}u such that πa=aπ\pi a=a\pi for every element a∈Aa\in{\cal A} (equivalently, for every element of a system of generators for A{\cal A}, say ν(S)\nu({\cal S})). (Recall that a projection π\pi onto a subspace V′V^{\prime} of VV is a map whose image is V′V^{\prime} and it acts as the identity on V′V^{\prime}. If W′W^{\prime} is submodule complementary to Au{\cal A}u then the unique linear map which is the identity on Au{\cal A}u and zero on W′W^{\prime} is a projection onto Au{\cal A}u which commutes with the action of A{\cal A} on VV.) Once π\pi is constructed we take π′=I−π\pi^{\prime}=I-\pi. It is straightforward to see that the image W′=π′VW^{\prime}=\pi^{\prime}V is in fact a direct complement of Au{\cal A}u. The element w′w^{\prime} in the argument above is then just π′w\pi^{\prime}w and u′=u+π′wu^{\prime}=u+\pi^{\prime}w. This finishes the proof of Lemma 9. □\Box

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 W′=WW^{\prime}=W then output UU and exit. Inner loop:

If W≰U+W′W\not\leq U+W^{\prime} then continue inner loop with W′=(U+W′)∩WW^{\prime}=(U+W^{\prime})\cap W. Else continue outer loop with W=W′W=W^{\prime}.

Over small base fields we use the algorithm of [FR85] or [CIW97] to compute the radical of A{\cal A} and the radical V0V_{0} of VV therefrom and compute a minimal generating set Γ0\Gamma_{0} of the factor module V/V0V/V_{0} using Proposition 12 directly. For each u0∈Γ0u_{0}\in\Gamma_{0} we pick a representative u∈u0+V0u\in u_{0}+V_{0} and obtain a subset Γ⊆V\Gamma\subseteq V such that ∣Γ∣=∣Γ0∣|\Gamma|=|\Gamma_{0}| and Γ∪V0\Gamma\cup V_{0} generates VV. By a standard property of the radical, we show that Γ\Gamma itself generates VV. Indeed, let UU be the submodule generated by Γ\Gamma. If U≠VU\neq V then there is a maximal (proper) submodule U′⊇U⊇ΓU^{\prime}\supseteq U\supseteq\Gamma. But U′≥V0U^{\prime}\geq V_{0} by the definition of V0V_{0}, therefore U′⊇Γ∪V0U^{\prime}\supseteq\Gamma\cup V_{0}, implying U′⊇VU^{\prime}\supseteq V, which is a contradiction to U′U^{\prime} 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.

References