Algorithms for Euclidean Distance Matrix Completion: Exploiting Proximity to Triviality
Abstract
In the -Euclidean Distance Matrix Completion (-EDMC) problem, one aims to determine whether a given partial matrix of pairwise distances can be extended to a full Euclidean distance matrix in dimensions. This problem is a cornerstone of computational geometry with numerous applications. While classical work on this problem often focuses on exploiting connections to semidefinite programming typically leading to approximation algorithms, we focus on exact algorithms and propose a novel distance-from-triviality parameterization framework to obtain tractability results for -EDMC.
We identify key structural patterns in the input that capture entry density, including chordal substructures and coverability of specified entries by fully specified principal submatrices. We obtain:
-
1.
The first fixed-parameter algorithm (FPT algorithm) for -EDMC parameterized by and the maximum number of unspecified entries per row/column. This is achieved through a novel compression algorithm that reduces a given instance to a submatrix on rows (for fixed values of the parameters).
-
2.
The first FPT algorithm for -EDMC parameterized by and the minimum number of fully specified principal submatrices whose entries cover all specified entries of the given matrix. This result is also achieved through a compression algorithm.
-
3.
A polynomial-time algorithm for -EDMC when both and the minimum fill-in of a natural graph representing the specified entries are fixed constants. This result is achieved by combining tools from distance geometry and algorithms from real algebraic geometry.
Our work identifies interesting parallels between EDM completion and graph problems, with our algorithms exploiting techniques from both domains.
Keywords and phrases:
Parameterized Complexity, Euclidean Embedding, Polynomial CompressionFunding:
Fedor V. Fomin: Supported by the Research Council of Norway under BWCA project (grant no. 314528) and by the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (NewPC grant agreement No. 101199930)Copyright and License:
2012 ACM Subject Classification:
Mathematics of computing Combinatorial algorithms ; Theory of computation Fixed parameter tractabilityEditors:
Hee-Kap Ahn, Michael Hoffmann, and Amir NayyeriSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Consider the following problem: given an symmetric hollow matrix , and integer , determine whether is a Euclidean Distance Matrix (EDM) that is isometrically embeddable into , also said to be realizable in . In other words, determine whether there exists a set of points in such that , where denotes the -th entry of , and is the Euclidean distance between and . This question of determining the existence of such a point configuration (up to congruence) is a central problem in Distance Geometry, whose solution is well understood and dates back to the works of Cayley [13] and Menger [34].
In this paper, we are interested in the version of this problem where the matrix is partial, i.e., some entries may be “unspecified.” In this version, called -EDM Completion (-EDMC), the goal is to decide whether the missing entries in a matrix can be filled in so that the result is an EDM that can be realized in . In general, such questions of reconstructing point configurations from partial distance measurements naturally occur across numerous disciplines. The study of -EDMC in particular, goes back to mathematicians and mechanical engineers of the nineteenth century – see, for example, the work of Cauchy from 1813 [12] – and is at the heart of rigidity theory. This problem has many applications in different areas, such as molecular conformation in bioinformatics [31, 15, 14], dimensionality reduction in machine learning and statistics, and localization in wireless sensor networks [3, 21, 9].
Saxe [35] and Yemini [40] showed that the -EDMC problem is already strongly NP-hard in dimensions and . While numerous heuristics for solving -EDMC under specific structural assumptions on have been proposed in the literature [23, 39, 8, 11], theoretical results with provable performance guarantees are scarce. This lack of rigorous algorithmic understanding of the problem is a primary motivation for us to explore the computational complexity of this problem and in particular, its parameterized complexity.
In this work we adopt the distance-from-triviality viewpoint to study the complextity of -EDMC. Distance-from-triviality is a well-established paradigm in parameterized complexity, where the idea is to introduce a parameter (or a combination of parameters) that measures how far a given instance lies from a class that can be solved efficiently; algorithms then exploit this “distance” to achieve tractability.
What is the notion of “triviality” for -EDMC?
Two natural extremal cases suggest themselves.
1. All entries are unspecified.
If no entry of the matrix is given, any Euclidean distance matrix of the appropriate size is a valid completion, so the instance is trivial.
Unfortunately, even a very small deviation from this case already yields hardness: Saxe’s reduction [35] shows NP-hardness when each row and column contains exactly two specified entries.
Consequently, parameterizing by distance to the completely unspecified matrix appears unpromising.
2. All entries are specified.
At the opposite extreme, when every entry is given, one need only test whether the matrix is an EDM that embeds isometrically into , a task solvable in polynomial time.
As we show in this paper, distance to this notion of “triviality” is a much more interesting parameter.
We may therefore formulate our main question as follows.
Which notions of distance to a fully specified matrix can be exploited algorithmically for -EDMC?
From the standpoint of algorithms with provable guarantees, this question is largely unexplored. A notable exception is the work of Berger, Kleinberg, and Leighton [7]. They show that if, in every row of an partial matrix , at least entries are specified, then one can decide in polynomial time whether can be completed to a -EDM. There is, however, a crucial caveat: their theorem assumes that the target point set is in general position and that no ten points lie on a quadric surface. We make no such assumptions – the points to be embedded need not be in general position or even distinct – rendering the problem substantially more realistic but also more challenging.
1.1 Our results and methods
We begin by observing that high density of specified entries (or, equivalently, a numerical sparsity of unspecified entries) does not by itself make the problem any easier. To exploit sparsity algorithmically, one must therefore identify and leverage additional structural properties that reflect the density of entries.
Theorem 1.
, -EDMC remains strongly -hard even for instances with in which the matrix contains at most unspecified entries.
The proof of the theorem is an adaptation of the classic complexity result of Saxe [35]. It also underscores that the general-position assumptions employed by Berger, Kleinberg, and Leighton [7] is essential for their polynomial-time algorithm.
1.1.1 Distance from triviality I
Our first main algorithmic result shows that imposing even a mild structural constraint on the unspecified entries – beyond mere numerical sparsity – makes the problem tractable. Our notion of density of a matrix is expressed by forbidden -block patterns.
Definition 2 (-block pattern).
For an matrix and disjoint sets , we define by the submatrix of indexed by the rows in and the columns in . We say that is a -block pattern if it is a submatrix of where every entry is unspecified. We say that excludes a -block pattern if there is no and such that is a -block pattern. See top of Figure 1.
Example 3.
Consider a partial matrix . excludes a 1-block pattern if and only if it is fully specified; if has at most unspecified entries in total, then excludes a -block pattern; if each row of contains at most unspecified entries, then excludes a -block pattern.
We are now ready to state our first tractability result. By solving an instance of -EDMC, we mean deciding111As is standard in Computational Geometry, all our algorithms operate under the real RAM computational model, assuming that basic operations over real numbers can be executed in unit time. whether the answer is yes or no. We also say that an instance is equivalent to an instance if solving both instances leads to the same answer.
Theorem 4 (Compression for -free complements).
There is a polynomial-time algorithm that, given an instance of -EDMC in which excludes a -block pattern for some , either solves the problem, or outputs an equivalent instance , such that is a principal submatrix of with rows and columns.
The algorithm in Theorem 4 compresses the input instance in polynomial time to an equivalent matrix whose size is independent of . This compression, however, does not guarantee that the numerical entries of the reduced matrix depend only on the parameters and ; hence it is not a kernel in the strict parameterized complexity sense [17, 25].
Moreover, Theorem 4 by itself does not yield a complete algorithm for solving -EDMC and we need the following algorithm, which relies on tools from real algebraic geometry.
Theorem 5.
There is an algorithm that, given an partial matrix and , runs in time and correctly decides whether is a yes-instance of -EDMC.
Now, by combining Theorem 4 with Theorem 5, we obtain the following algorithm for -EDMC with parameters and .
Corollary 6.
For every , and partial matrix excluding a -block pattern, -EDMC is solvable in time .
Remark 7 (Generality of Theorem 4 and Corollary 6).
A common way to capture the structure of a partial matrix, see e.g. [2, 7], is to encode it by an underlying graph as follows. Let be a graph with vertex set . An symmetric hollow partial matrix is said to be a -partial matrix if the entry is specified222In this paper, the specified entries of will always be in . if and only if . We refer to as the underlying graph of , see Figure 1. By studying partial matrices through a graph-theoretic lens motivated by this defintion, we can identify direct correspondences between their properties and those of their underlying graphs. The condition of Theorem 1 also translates naturally to the property that the average vertex degree of is at most . For instance, saying that a partial matrix excludes a -block pattern is equivalent to saying that the complement of its underlying graph does not contain the complete bipartite graph as a subgraph.
Although Theorem 1 shows that -EDMC remains intractable even on matrices where the underlying graph’s complement has constant average degree, Theorem 4 and Corollary 6 demonstrate that imposing -freeness on the complement of the underlying graph (i.e., excluding a -block pattern in the input matrix) radically alters the complexity landscape and leads to tractability for a large class of instances.
Many widely studied graph classes with numerous applications can be expressed as -free graphs for a suitable . In particular, planar graphs are -free by Kuratowski’s theorem, graphs excluding a fixed minor are -free for some depending on , graphs of bounded expansion and nowhere dense graphs are -free for an appropriate , and any graph of maximum degree (or more generally, bounded degeneracy) is -free for or equal to one plus the degeneracy.
In the rest of the paper, we freely switch between the graph and matrix viewpoints when describing structural properties of partial matrices.
Notice that in the more restricted case when every row of contains at most unspecified entries, the maximum vertex degree of is at most . In this case, we show that the size of the compression provided by Theorem 4 can be refined as follows.
Theorem 8.
There is a polynomial-time algorithm that, given an instance of -EDMC such that every row of has at most unspecified entries, either solves the problem, or outputs an equivalent instance , such that is a principal submatrix of , where .
Combined with Theorem 5, we have the following algorithm.
Corollary 9.
For every , and partial matrix such that every row of has at most unspecified entries, -EDMC is solvable in time .
1.1.2 Distance from triviality II
Consider the case where all specified entries of lie in one fully specified principal submatrix . In this case, -EDMC is polynomial-time solvable: one first determines the minimum dimension for which is isometrically embeddable in and then assigns values to the remaining entries of so that the new points lie at appropriate distances. So, a natural definition of distance to this notion of triviality is the least number of fully specified principal submatrices such that their entries cover all specified entries of . In terms of graphs, if all specified entries of lie in one fully specified principal submatrix, then the underlying graph consists of a clique and isolated vertices. Thus all edges of are covered by one clique. So, when we say that the specified entries in can be covered by fully specified principal submatrices, this is equivalent to saying that the underlying graph admits an edge clique cover of size , that is, the edges of can be covered by at most cliques.
Remark 10.
A small edge clique cover does not imply that is -free for any fixed . Indeed, the disjoint union of two copies of can be covered by just two cliques, yet its complement contains . Thus, the edge clique cover parameter is incomparable with the assumption of -freeness, which motivates the parameterization by edge clique cover.
Theorem 11.
There is a polynomial-time algorithm that, given an instance of -EDMC in which is an -partial matrix and the graph is given together with an edge clique cover of size , either solves the problem, or outputs an equivalent instance , such that is an principal submatrix of , where .
Corollary 12.
For every , and partial matrix such that the specified entries in can be covered by at most fully specified principal submatrices, -EDMC is solvable in time .
Let us next give a brief overview of the proof technique behind Theorem 4, Theorem 8 and Theorem 11. Say that an instance of -EDMC is efficiently -reducible if there is a polynomial-time computable pair comprising a fully specified principal submatrix indexed by and an element such that is equivalent to . Here, is defined as the matrix obtained from by removing the row and column indexed by . The element is called an irrelevant element. Clearly as long as such a pair and can be found, we can iteratively reduce the instance by deleting . To prove these three theorems, we show the following, where is the underlying graph of .
-
if is -free, then either the instance is solvable in polynomial time or it is already compressed to the claimed size or it is efficiently -reducible; and
-
if has max-degree at most , then either the instance is solvable in polynomial time or it is already compressed to the claimed size or it is efficiently -reducible; and
-
given an edge clique cover of size for , either the instance is solvable in polynomial time or it is already compressed to the claimed size or it is efficiently -reducible.
Proving each of the above statements is done along similar lines, but there are certain instance-specific aspects that we exploit in each case. In fact, for the first two statements, we show the existence of an depending only on the parameters such that the index set of any fully specified principal submatrix must contain an irrelevant element. Then, we can use the sparsity of to infer the existence of such a fully specified principal submatrix of . For the third statement, we observe that one of the cliques in the given edge clique cover of must have size at least (where depends on the parameters) and then we argue that such a clique contains an irrelevant element.
1.1.3 Distance from triviality III
Our final result concerns a further class of matrices that admit polynomial-time completion algorithms. Recall that a graph is chordal if it has no induced cycles of length greater than , see Figure 2. Bakonyi and Johnson [4] proved the following: when is chordal, a -partial matrix can be completed to an EDM that is realizable in if and only if the submatrix induced by the vertex set of each maximal clique of is itself an EDM realizable in . Since an -vertex chordal graph has at most maximal cliques and these can be listed in polynomial time [27], Laurent [33] observed that this characterization yields a straightforward polynomial-time algorithm for -EDMC as follows. For each maximal clique of one checks, in polynomial time, whether the corresponding principal submatrix of (all of whose entries are specified, by definition) is an EDM realizable in . So, considering partial matrices with chordal underlying graphs as our notion of triviality, let us address the next notion of distance from triviality.
The popular measure of the distance of a graph to a chordal graph is the fill-in of a graph, which is the minimum number of edges that should be added to to make it chordal. Our next theorem extends the polynomial-time algorithm of Bakonyi and Johnson [4] for chordal graphs to graphs with constant fill-in.
Theorem 13.
Let be an -partial matrix and let . There is an algorithm that runs in time, where is the size of a minimum fill-in of , and correctly decides whether is a yes-instance of -EDMC.
Laurent [33] presented an XP algorithm, that is, polynomial for every fixed , which decides whether a -partial matrix can be completed to an EDM realizable in some Euclidean space, where is the minimum size of a fill-in of . This algorithm, however, does not determine the smallest dimension that suffices, and therefore does not solve -EDMC. Theorem 13 can thus be viewed as a non-trivial extension of Laurent’s result, tailored specifically for embeddability into a prescribed dimension .
We next give a brief outline of the techniques behind this algorithm. Due to the result of Bakonyi and Johnson [4], it is necessary and sufficient to decide whether a given -partial matrix can be extended to a -partial matrix satisfying the following conditions: (i) is chordal, (ii) is a supergraph of , and (iii) for every maximal clique of , the submatrix of induced by the clique’s vertex set is an EDM realizable in . For us, is defined by a fill-in set , that is, , where is a set of non-edges of whose addition to makes it chordal. Thus, the task reduces to computing by assigning values to the entries corresponding to the edges in , ensuring that condition (iii) is satisfied. To do so, we reduce this task to testing the truth of an existentially quantified statement over a bounded set of polynomial equations and inequalities and then finally invoke an algorithm of Basu, Pollack, and Roy [5]. We note that a similar approach was used in [6], however our case is more complex as the maximal cliques of may share edges, requiring us to handle multiple EDMs simultaneously in this reduction.
1.2 Related work
The study of Euclidean distance matrices (EDMs) dates back to the pioneering works of Cayley [13] and Menger [34]. Foundational results were later obtained by Schoenberg [36] and by Young and Householder [41]. The subject was further developed in a series of papers by Gower, Critchley, Farebrother, and others [28, 29, 16, 24]. Schoenberg [36] also established the deep connection between EDMs and positive-semidefinite (PSD) matrices. A comprehensive treatment of the vast literature on EDMs lies beyond the scope of this article; we refer the interested reader to the monographs and surveys [10, 15, 19, 32, 18, 2].
2 Preliminaries
For every , we use to denote the set .
Distance spaces and matrices.
Let be a set. A function is a distance on if: (i) is symmetric, that is, for any , , and (ii) for all . Then, is called a distance space. A distance space for a finite can be equivalently defined by the distance matrix, in which the value in row and column is , where for . Throughout the paper we do not distinguish metric spaces and the corresponding distance matrices.
A distance space is isometrically embeddable into if there is a map, called isometric embedding, such that for all , where for . Notice that we do not require to be injective, that is, several points of may be mapped to the same point of . Throughout the paper, whenever we mention an embedding, we mean an isometric embedding. Moreover, when we use the term -embedding, we are referring to embedding into . A -embeddable distance space is strongly -embeddable if it is not -embeddable. As convention, we assume that the empty set of points is -embeddable for every . A symmetric matrix over with for all is a Euclidean distance matrix (EDM) in if is the distance matrix of a distance space embeddable in . Suppose that is embeddable into . The ordered set of points in is said to be a realization of if there is an embedding such that for all .
For a -embeddable distance space , a set is a metric basis if, given an isometric embedding of into , there is a unique way to extend to an isometric embedding of . Equivalently, if a realization of is fixed then the embedding of any point of in a -embedding of is unique. In our paper we also use the embeddablity characterization based on the properties of Cayley-Menger matrices. Towards this, we use terminology and notation from [6]. For points of distance space the Cayley-Menger determinant is the determinant of the matrix obtained from the distance matrix induced by these points by prepending a row and a column whose first element is zero and the other elements are one.
Proposition 14 ([10, Chapter IV]).
A distance space with points is strongly -embeddable if and only if there exist points, say , such that:
-
1.
for , and
-
2.
for any ,
Equivalently (see, for example, [37]), is strongly -embeddable if and only if there is a set of points such that is strongly -embeddable for all , and for every , is -embeddable.
Proposition 15 ([10, Chapter IV]).
Let be a -embeddable distance space, and let be a metric basis. Then an embedding of in is unique up to rigid transformations, and given an embedding of into , there is a unique way to extend to an embedding of . Equivalently, if a realization of is fixed then the embedding of any point of in a -embedding of is unique.
Let be a distance space. For a nonnegative integer , we say that of size is independent if is strongly -embeddable.
Proposition 16 ([10, Chapter IV]).
Let be a strongly -embeddable distance space. Then the following hold: (i) any single-element set is independent, (ii) if is independent, then any is independent, and (iii) if are independent and then there is a such that is independent, (iv) the maximum size of an independent set is and any independent set of size is a metric basis.
Proposition 17 ([10, Chapter IV] and [1, 38]).
Given a distance space with points and a positive integer , in time, it can be decided whether can be embedded into and, if such an embedding exists, then a metric basis and a realization can be constructed in this running time.
We remind that by our convention, we do not distinguish metric spaces and the corresponding distance matrices. Thus, we say that an -tuple of points of is a realization of an distance matrix. Furthermore, we say that a subset of indices is a metric basis of the distance matrix meaning that the corresponding points of the distance space compose a metric basis for it. In this spirit, if is the distance matrix of a (strongly) -embeddable distance space, then we say that is a (strongly) -embeddable EDM.
Graphs and matrices.
We consider simple finite undirected graphs and refer to [20] for the standard graph-theoretic notation. Given a graph , we denote by and the sets of vertices and edges, respectively. Throughout the paper we use and for and , respectively, if the graph is clear from the context. A set of pairwise adjacent vertices of is called a clique and a set of pairwise non-adjacent vertices is independent. A family of cliques of a graph is en edge clique cover of if for every edge , there is such that is covered by , that is, . For a vertex , we use to denote the open neighborhood of , that is, the set of adjacent to vertices. The degree , and the maximum degree of is . For a graph , its complement is the graph with the same set of vertices as , and two distinct vertices are adjacent to if and only if they are not adjacent in .
Let be an matrix. The matrix obtained from by deleting rows and columns (with ) is called a submatrix of . A principal submatrix of is a square submatrix obtained by deleting the same set of row and column indices; that is, if the -th row of is deleted, then the -th column is also deleted. Let be a graph with . An matrix over with some unspecified elements is said to be a -partial matrix if (i) the entry is defined (or specified) if and only if , (ii) for all , and for all . We also say that is the underlying graph of . Let be a -partial matrix and let be a positive integer. A matrix is said to be a -EDM completion of if:
-
1.
is -embeddable, and
-
2.
for all .
See Figure 3 for an example.
It is convenient for us to combine graph-theoretic and matrix notation. Let be symmetric matrix and let be a graph with . For a set , we use to denote the subgraph of induced by and we use to denote the principal submatrix indexed by , that is, the submatrix of composed by the elements with . We also write and to denote the graph obtained by the deletion of the vertices of and the submatrix obtained by the deletion of the rows and columns indexed by , respectively, that is, and . For a set , we write and instead of and , respectively.
We conclude this section with Theorem 1, which shows that for tractability of -EDMC, it is not sufficient to require high density of the specified element in the input matrix (or, equivalently, high density of the underlying graph ).
Theorem 1. [Restated, see original statement.]
, -EDMC remains strongly -hard even for instances with in which the matrix contains at most unspecified entries.
3 Compressing -partial matrices when is dense (distance from triviality I and II)
This section is devoted to proving Theorem 4, Theorem 8 and Theorem 11.
Proof of Theorem 4.
The main step of the proof is to identify an “irrelevant” vertex of in polynomial time, that is, a vertex whose deletion does not transform a no-instance into a yes-instance. By exhaustively repeating this step of removing an irrelevant vertex we either solve the problem, or construct an equivalent instance on rows and columns.
Let be a -partial matrix, where excludes a -block pattern. If , then is fully specified (i.e., is complete) and so, we solve the instance using Proposition 17. So, we assume that . Let and
If , then the desired compression is already achieved and we simply output . From now on, we assume that . Since is -free, it does not contain a clique of size . By Ramsey’s classic theorem [22] must therefore contain an independent set of size . Moreover, such a set can be computed in polynomial time. By definition, induces a clique in . Notice that because is not fully specified, .
We use Proposition 17 to check in polynomial time whether is -embeddable. If not, then we report that is a no-instance and stop. For every , notice that is a clique of . So, for every we also check whether is -embeddable, and report that is a no-instance if it is not.
We next iteratively construct disjoint sets of size at most as follows. Assuming that , we select to be a metric basis of for obtained using Proposition 17. As for , we have that . Moreover, since is large enough, the sets exist.
Consider . That is, consists of all vertices outside having a non-neighbor in each in .
Claim 18.
.
For every , we consider the clique . Since and we have already concluded that is -embeddable, we have that is -embeddable. We compute a metric basis of using Proposition 17. Because by Claim 18 and for , we have that . Because and , we have that there is .
Claim 19.
The instances and of -EDMC are equivalent.
We set and iterate. In at most rounds, we either solve the problem or obtain an equivalent instance , where is a submatrix of with . For the running time, note that the construction of the independent set as well as that of is done in polynomial time by Proposition 17. Then and the sets for can also be constructed in polynomial time by Proposition 17. So, an irrelevant vertex can be found in polynomial time. Because the total number of rounds is at most , the overall running time is polynomial.
Corollary 6. [Restated, see original statement.]
For every , and partial matrix excluding a -block pattern, -EDMC is solvable in time .
In the remaining part of the section, we show that for some other classes of dense graphs , we can obtain a better compression for -EDMC than the one obtained by using Theorem 4 as a black box. The proofs of these results still follow the same lines as the proof of Theorem 4. First, we consider the case when has bounded maximum degree. Since a graph of maximum degree at most does not contain , in the following theorem, we consider a subclass of matrices considered in Theorem 4.
Theorem 8. [Restated, see original statement.]
There is a polynomial-time algorithm that, given an instance of -EDMC such that every row of has at most unspecified entries, either solves the problem, or outputs an equivalent instance , such that is a principal submatrix of , where .
Finally in this section, we prove Theorem 11. Notice that Theorem 11 assumes that an edge clique cover is given. However, an edge clique cover of size at most can be found in in time (if exists) by the results of Gramm et al. [30].
Proposition 20 ([30]).
Given a graph and a positive integer , it can be decided in time whether admits an edge clique cover of size at most . Furthermore, an edge clique cover can be found in the same time if it exists.
Then we obtain the following corollary.
Corollary 12. [Restated, see original statement.]
For every , and partial matrix such that the specified entries in can be covered by at most fully specified principal submatrices, -EDMC is solvable in time .
4 The case of bounded fill-in (distance from triviality III)
In this section, we present our algorithm for -EDMC for -partial matrices when is almost chordal, i.e., it has a small fill-in. Recall that the minimum fill-in of a graph is the size of a smallest set of non-edges whose addition to makes it chordal.
Theorem 13. [Restated, see original statement.]
Let be an -partial matrix and let . There is an algorithm that runs in time, where is the size of a minimum fill-in of , and correctly decides whether is a yes-instance of -EDMC.
Towards the proof of this theorem, let us prepare as follows.
Proposition 21 ([4]).
Every -partial matrix where is chordal can be completed to an EDM in if every fully specified principal submatrix of is -embeddable.
Definition 22 ([5]).
Let be a real closed field and be a finite set of polynomials. A -atom is one of ,, , , where is a polynomial in and a quantifier-free -formula is a formula constructed from -atoms together with the logical connectives , and . The -realization of a formula with free variables is a mapping so that the sentence resulting from (denoted by ) by instantiating each free variable with is true.
Proposition 23 (Theorem 13.13, [5]).
Let . Let be a sentence, where is a quantifier free -formula where is a set of at most polynomials each of degree at most . There exists an algorithm to decide the truth of the sentence with complexity333The measure of complexity here is the number of arithmetic operations. Recall that we use the real RAM model. in where is the ring generated by the coefficients of the polynomials in .
Definition 24.
Let be a -partial matrix where and let denote the set of pairs in such that every pair in indexes a pair of unspecified entries of , that is, for every , and are both unspecified. Define the matrix as follows. If , then define , otherwise define where is an indeterminate.
We have the following adaptation of the notion of -augmented Cayley-Menger determinant from [6].
Definition 25.
Let and be as described in Definition 24. Let . The -Augmented Cayley-Menger determinant indexed by is obtained from the Cayley-Menger determinant by replacing each with .
Lemma 26.
Let and be as described in Definition 25. Then, is a multi-variate polynomial with real coefficients, over the set of indeterminates where each monomial has degree at most .
Lemma 27.
There is an algorithm that, given as described in Definition 25, runs in time and produces the polynomial representing the -Augmented Cayley-Menger determinant indexed by .
Lemma 28.
Consider an EDM and . Let be a metric basis of . Then, there is a metric basis of that contains .
Proof of Theorem 13.
Let the instance be given, where is -partial and moreover, let be a set of at most non-edges of such that is a chordal graph. It is straightforward to construct from and once we have , we compute (if it exists) in time using the algorithm of Fomin and Villanger [26]. In the rest of the proof, we will only refer to the graph , so we can refer to the pairs in as edges. Let denote a set of indeterminates, two per edge in . Formally, for every edge , contains the indeterminates and . Let be the maximal cliques in . It is well-known that and these cliques can be computed in polynomial time [27].
-
1.
Do the following for each :
-
(a)
Define . That is, comprises those indeterminates corresponding to those edges in that have both endpoints in .
-
(b)
Define . That is, is the set of endpoints of edges in that are contained in .
-
(c)
Define to be an arbitrary metric basis of . Since by definition, is fully specified, is well-defined. If , then stop and conclude that the input is a no-instance.
-
(d)
For every of size at most , do the following:
-
i.
Define .
-
ii.
Use Lemma 27 to construct the following set of atoms:
-
A.
, where .
-
B.
for every .
-
C.
for every .
-
D.
for each indeterminate .
-
E.
for each pair of indeterminates in .
-
A.
-
iii.
Define to be the quantifier-free formula defined as the conjunction of the atoms in .
-
i.
-
(e)
Define to be the quantifier-free formula defined as the disjunction of the formulas taken over all of size at most .
-
(a)
-
2.
Define the quantifier-free formula .
-
3.
Run the algorithm of Proposition 23 on the sentence obtained by existentially quantifying the indeterminates in and prepending them to . Return the same answer as that produced by this invocation.
Claim 29.
is a yes-instance of -EDMC if and only if this algorithm returns Yes.
Claim 30.
For each and , the atoms in are -atoms, where is a set of polynomials each of degree at most .
Claim 31.
The algorithm runs in time .
These three claims complete the proof of the theorem.
5 Concluding remarks and open questions
By Theorem 13, the -EDMC problem can be solved in polynomial time for every fixed value of and . Moreover, for fixed values of , our algorithm is in . It is therefore a natural question whether the problem is in with respect to both and .
References
- [1] Jorge Alencar, Tibérius O. Bonates, Carlile Lavor, and Leo Liberti. An algorithm for realizing euclidean distance matrices. Electron. Notes Discret. Math., 50:397–402, 2015. doi:10.1016/J.ENDM.2015.07.066.
- [2] Abdo Y. Alfakih. Euclidean distance matrices and their applications in rigidity theory. Springer, 2018.
- [3] A.Y. Alfakih, A. Khandani, and H. Wolkowicz. Solving euclidean distance matrix completion problems via semidefinite programming. Comput. Optim. Appl., 12:13–30, 1999. doi:10.1023/A:1008655427845.
- [4] M. Bakonyi and C. Johnson. The euclidean distance matrix completion problem. SIAM J. Matrix Anal. Appl., 16:646–654, 1995. doi:10.1137/S0895479893249757.
- [5] Saugata Basu, Richard Pollack, and Marie-Françoise Roy. Algorithms in Real Algebraic Geometry (Algorithms and Computation in Mathematics). Springer-Verlag, Berlin, Heidelberg, 2006.
- [6] Matthias Bentert, Fedor V. Fomin, Petr A. Golovach, M. S. Ramanujan, and Saket Saurabh. When distances lie: Euclidean embeddings in the presence of outliers and distance violations. In Oswin Aichholzer and Haitao Wang, editors, 41st International Symposium on Computational Geometry, SoCG 2025, June 23-27, 2025, Kanazawa, Japan, volume 332 of LIPIcs, pages 15:1–15:16. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2025. doi:10.4230/LIPIcs.SOCG.2025.15.
- [7] Bonnie Berger, Jon M. Kleinberg, and Frank Thomson Leighton. Reconstructing a three-dimensional model with arbitrary errors. J. ACM, 46(2):212–235, 1999. doi:10.1145/301970.301972.
- [8] P. Biswas, T.-C. Liang, K.-C. Toh, T.-C. Wang, and Y. Ye. Semidefinite programming approaches for sensor network localization with noisy distance measurements. IEEE Trans. Autom. Sci. Eng., 3:360–371, 2006. doi:10.1109/TASE.2006.877401.
- [9] P. Biswas and Y. Ye. Semidefinite programming for ad hoc wireless sensor network localization. In 3rd International Symposium on Information Processing in Sensor Networks, pages 46–54, Berkeley, CA, 2004. ACM. doi:10.1145/984622.984630.
- [10] L.M. Blumenthal. Theory and Applications of Distance Geometry. Chelsea, New York, 2nd edition, 1970.
- [11] E.J. Candes and Y. Plan. Matrix completion with noise. Proc. IEEE, 98:925–936, 2010. doi:10.1109/JPROC.2009.2035722.
- [12] Augustin-Louis Cauchy. Sur les polygones et polyèdres. Journal de l’École Polytechnique, 19:87–90, 1813.
- [13] Arthur Cayley. On the theory of determinants. Philosophical Magazine, 19:1–16, 1841.
- [14] G.M. Crippen. Chemical distance geometry: Current realization and future projection. J. Math. Chem., 6:307–324, 1991.
- [15] G.M. Crippen and T.F. Havel. Distance Geometry and Molecular Conformation, volume 15 of Chemometrics Series. Research Studies Press, Taunton, 1988.
- [16] F. Critchley. On certain linear mappings between inner-product and squared distance matrices. Linear Algebra Appl., 105:91–107, 1988.
- [17] Marek Cygan, Fedor V. Fomin, Lukasz Kowalik, Daniel Lokshtanov, Dániel Marx, Marcin Pilipczuk, Michał Pilipczuk, and Saket Saurabh. Parameterized Algorithms. Springer, 2015. doi:10.1007/978-3-319-21275-3.
- [18] J. Dattorro. Convex Optimization & Euclidean Distance Geometry. Meboo Publishing USA, 2008.
- [19] Michel Deza, Monique Laurent, and Robert Weismantel. Geometry of cuts and metrics, volume 2. Springer, 1997.
- [20] Reinhard Diestel. Graph theory, volume 173 of Graduate Texts in Mathematics. Springer-Verlag, Berlin, 3rd edition, 2005.
- [21] L. Doherty, K.S.J. Pister, and L. El Ghaoui. Convex position estimation in wireless sensor networks. In IEEE INFOCOM, volume 3, pages 1655–1663, Anchorage, AK, 2001.
- [22] P. Erdös and G. Szekeres. A combinatorial problem in geometry. Compositio Math., 2:463–470, 1935. URL: http://www.numdam.org/item?id=CM_1935__2__463_0.
- [23] Haw-ren Fang and Dianne P O’Leary. Euclidean distance matrix completion problems. Optimization Methods and Software, 27(4-5):695–717, 2012. doi:10.1080/10556788.2011.643888.
- [24] R.W. Farebrother. Three theorems with applications to euclidean distance matrices. Linear Algebra Appl., 95:11–16, 1987.
- [25] Fedor V. Fomin, Daniel Lokshtanov, Saket Saurabh, and Meirav Zehavi. Kernelization. Theory of Parameterized Preprocessing. Cambridge University Press, 2019.
- [26] Fedor V. Fomin and Yngve Villanger. Subexponential parameterized algorithm for minimum fill-in. SIAM J. Computing, 42(6):2197–2216, 2013. doi:10.1137/11085390X.
- [27] Martin Charles Golumbic. Algorithmic Graph Theory and Perfect Graphs. Academic Press, New York, 1980.
- [28] J.C. Gower. Euclidean distance geometry. Math. Sci., 7:1–14, 1982.
- [29] J.C. Gower. Properties of euclidean and non-euclidean distance matrices. Linear Algebra Appl., 67:81–97, 1985.
- [30] Jens Gramm, Jiong Guo, Falk Hüffner, and Rolf Niedermeier. Data reduction and exact algorithms for clique cover. ACM Journal of Experimental Algorithmics, 13, 2008. doi:10.1145/1412228.1412236.
- [31] T.F. Havel, I.D. Kuntz, and G.M. Crippen. The theory and practice of distance geometry. Bull. Math. Biol., 45:665–720, 1983.
- [32] M. Laurent. A tour d’horizon on positive semidefinite and euclidean distance matrix completion problems. In Semidefinite Programming and Interior-Point Approaches for Combinatorial Optimization Problems, Fields Institute Communications, pages 51–76. Amer. Math. Soc., Providence, 1998.
- [33] Monique Laurent. Polynomial instances of the positive semidefinite and euclidean distance matrix completion problems. SIAM J. Matrix Anal. Appl., 22:874–894, 2001. doi:10.1137/S0895479899352689.
- [34] Karl Menger. Untersuchungen über allgemeine metrik. Mathematische Annalen, 100:75–163, 1928.
- [35] James B Saxe. Embeddability of weighted graphs in k-space is strongly np-hard. In 17th Allerton Conf. Commun. Control Comput., 1979, pages 480–489, 1979.
- [36] Isaac J. Schoenberg. Remarks to Maurice Fréchet’s article “Sur la définition axiomatique d’une classe d’espace distanciés vectoriellement applicable sur l’espace de Hilbert”. Annals of Mathematics, 36:724–732, 1935.
- [37] Anastasios Sidiropoulos, Dingkang Wang, and Yusu Wang. Metric embeddings with outliers. In Proceedings of the Twenty-Eighth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 670–689. SIAM, 2017. doi:10.1137/1.9781611974782.43.
- [38] Manfred J. Sippl and Harold A. Scheraga. Solution of the embedding problem and decomposition of symmetric matrices. Proc. Nat. Acad. Sci. U.S.A., 82(8):2197–2201, 1985. doi:10.1073/pnas.82.8.2197.
- [39] K.Q. Weinberger, F. Sha, and L.K. Saul. Learning a kernel matrix for nonlinear dimensionality reduction. In 21st International Conference on Machine Learning (ICML), page 106, Banff, AB, 2004. ACM.
- [40] Y. Yemini. Some theoretical aspects of position-location problems. In 20th Annual Symposium on Foundations of Computer Science (SFCS), pages 1–8. IEEE, 1979.
- [41] G. Young and A. Householder. Discussion of a set of points in terms of their mutual distances. Psychometrika, 3:19–22, 1938.
