Metric Dimension and Geodetic Set Parameterized by Vertex Cover
Abstract
For a graph , a subset is called a resolving set of if, for any two vertices , there exists a vertex such that . The Metric Dimension problem takes as input a graph on vertices and a positive integer , and asks whether there exists a resolving set of size at most . In another metric-based graph problem, Geodetic Set, the input is a graph and an integer , and the objective is to determine whether there exists a subset of size at most such that, for any vertex , there are two vertices such that lies on a shortest path from to .
These two classical problems are known to be intractable with respect to the natural parameter, i.e., the solution size, as well as most structural parameters, including the feedback vertex set number and pathwidth. We observe that both problems admit an algorithm running in time, and a kernelization algorithm that outputs a kernel with vertices, where is the vertex cover number. We prove that unless the Exponential Time Hypothesis (ETH) fails, Metric Dimension and Geodetic Set, even on graphs of bounded diameter, do not admit
-
an algorithm running in time, nor
-
a kernelization algorithm that does not increase the solution size and outputs a kernel with vertices.
We only know of one other problem in the literature that admits such a tight algorithmic lower bound with respect to . Similarly, the list of known problems with exponential lower bounds on the number of vertices in kernelized instances is very short.
Keywords and phrases:
Parameterized Complexity, ETH-based Lower Bounds, Kernelization, Vertex Cover, Metric Dimension, Geodetic SetFunding:
Florent Foucaud: ANR project GRALMECO (ANR-21-CE48-0004), French government IDEX-ISITE initiative 16-IDEX-0001 (CAP 20-25), International Research Center “Innovation Transportation and Production Systems” of the I-SITE CAP 20-25.Copyright and License:
![[Uncaptioned image]](x1.png)
Roohani Sharma, and Prafullkumar Tale; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Parameterized complexity and exact algorithmsEditors:
Olaf Beyersdorff, Michał Pilipczuk, Elaine Pimentel, and Nguyễn Kim ThắngSeries and Publisher:

1 Introduction
In this article, we study two metric-based graph problems, one of which is defined through distances, while the other relies on shortest paths. Metric-based graph problems are ubiquitous in computer science; for example, the classical (Single-Source) Shortest Path, (Graphic) Traveling Salesperson or Steiner Tree problems fall into this category. Those are fundamental problems, often stemming from applications in network design, for which a considerable amount of algorithmic research has been done. Metric-based graph packing and covering problems, like Distance Domination [29] or Scattered Set [30], have recently gained a lot of attention. Their non-local nature leads to non-trivial algorithmic properties that differ from most graph problems with a more local nature. We focus here on the Metric Dimension and Geodetic Set problems, which arise from network monitoring and network design, respectively. These two problems have far-reaching applications, as exemplified by, e.g., the recent work [3] where it was shown that enumerating minimal solution sets for Metric Dimension and Geodetic Set in (general) graphs and split graphs, respectively, is equivalent to the enumeration of minimal transversals in hypergraphs, whose solvability in total-polynomial time is arguably the most important open problem in algorithmic enumeration. Formally, these two problems are defined as follows.
Metric Dimension Input: A graph on vertices and a positive integer . Question: Does there exist such that and, for any pair of vertices , there exists a vertex with ?
Geodetic Set Input: A graph on vertices and a positive integer . Question: Does there exist such that and, for any vertex , there are two vertices such that lies on a shortest path from to ?
Metric Dimension dates back to the 1970s [26, 38], whereas Geodetic Set was introduced in 1993 [25]. The non-local nature of these problems has since posed interesting algorithmic challenges. Metric Dimension was first shown to be -complete in general graphs in Garey and Johnson’s book [22], and this was later extended to many restricted graph classes (see “Related work” below). Geodetic Set was proven to be -complete in [25], and later shown to be -hard on restricted graph classes as well.
As these two problems are -hard even in very restricted cases, it is natural to ask for ways to confront this hardness. In this direction, the parameterized complexity paradigm allows for a more refined analysis of a problem’s complexity. In this setting, we associate each instance of a problem with a parameter , and are interested in algorithms running in time for some computable function . Parameterized problems that admit such an algorithm are called fixed-parameter tractable ( for short) with respect to the considered parameter. Under standard complexity assumptions, parameterized problems that are hard for the complexity class [1] or [2] do not admit such algorithms.
This approach, however, had limited success for these two problems. In the seminal paper [28], Metric Dimension was proven to be [2]-hard parameterized by the solution size , even on subcubic bipartite graphs. Similarly, Geodetic Set is [2]-hard parameterized by the solution size [15, 31], even on chordal bipartite graphs. These initial hardness results drove the ensuing meticulous study of the problems under structural parameterizations: we present an overview in the “Related work” below. In this article, we focus on the vertex cover number, denoted by , of the input graph and prove the following positive results.
Theorem 1.
Metric Dimension and Geodetic Set admit
-
algorithms running in time, and
-
kernelization algorithms that output kernels with vertices.
The second set of results follows from simple reduction rules, and was also observed in [28] for Metric Dimension. The first set of results builds on the second set by using a simple, but critical observation. For Metric Dimension, this also improves upon the algorithm mentioned in [28]. However, our main technical contribution is in proving that these results are optimal assuming the Exponential Time Hypothesis (ETH).
Theorem 2.
Unless the ETH fails, Metric Dimension and Geodetic Set do not admit
-
algorithms running in time, nor
-
kernelization algorithms that do not increase the solution size and output kernels with vertices,
even on graphs of bounded diameter.
Both these statements constitute a rare set of results. Indeed, we know of only one other problem that admits a lower bound of the form and a matching upper bound [1], whereas such results parameterized by pathwidth are mentioned in [36, 37]. Very recently, the authors in [7] also proved a similar result with respect to solution size. Similarly, the list of known problems with exponential lower bounds on the number of vertices in kernelized instances is very short. To the best of our knowledge, the only known results of this kind (i.e., ETH-based lower bounds on the number of vertices in a kernel) are for Edge Clique Cover [13], Biclique Cover [9], Steiner Tree [35], Strong Metric Dimension [20], B-NCTD+ [8], Locating Dominating Set [7], and Telephone Broadcasting [39]. For Metric Dimension, the above also improves a result of [24], which states that Metric Dimension parameterized by does not admit a polynomial kernel unless the polynomial hierarchy collapses to its third level. Indeed, the result of [24] does not rule out a kernel of super-polynomial or sub-exponential size.
Recently, Foucaud et al. [20] proved that, unless the ETH fails, Metric Dimension and Geodetic Set on graphs of bounded diameter do not admit -time algorithms, thereby establishing one of the first such results for -complete problems. Note that and in the parameter hierarchy, where is the order, is the feedback vertex set number, is the treedepth, is the pathwidth, and is the treewidth of the graph. They further proved that their lower bound also holds for and in the case of Metric Dimension, and for in the case of Geodetic Set [20]. A simple brute-force algorithm enumerating all possible candidates runs in time for both of these problems. Thus, the next natural question is whether such a lower bound for Metric Dimension and Geodetic Set can be extended to larger parameters, in particular . Our first results answer this question in the negative. Together with the lower bounds with respect to , this establishes the boundary between parameters yielding single-exponential and double-exponential running times for Metric Dimension and Geodetic Set.
Before moving forward, we highlight the parallels and differences between Foucaud et al. [20] and our work. Their aim was to establish double-exponential lower bounds for -complete problems, and to do so they focused on the restriction of the problems to graphs of bounded treewidth and diameter. Our objective is to closely examine one of the very few tractable results for Metric Dimension and Geodetic Set on general graphs by focusing on the vertex cover parameter. While we use some gadgets from [20], overall our reductions significantly differ from the corresponding reductions in that article. Note that we need to “control” the vertex cover number of the reduced graph, whereas the corresponding reductions by Foucaud et al. [20] only need to “control” the treewidth.
Related Work.
We mention here results concerning structural parameterizations of Metric Dimension and Geodetic Set, and refer the reader to the full version of [20] for a more comprehensive overview of applications and related work regarding these two problems.
As previously mentioned, Metric Dimension is [2]-hard parameterized by the solution size , even in subcubic bipartite graphs [28]. Several other parameterizations have been studied for this problem, on which we elaborate next (see also [21, Figure 1]). It was proven that there is an algorithm parameterized by the feedback edge set number [18], and algorithms parameterized by the max leaf number [17], the modular-width and the treelength plus the maximum degree [2], the treedepth and the clique-width plus the diameter [23], and the distance to cluster (co-cluster, respectively) [21]. Recently, an algorithm parameterized by the treewidth in chordal graphs was given in [5]. On the negative side, Metric Dimension is [1]-hard parameterized by the pathwidth even on graphs of constant degree [4], para--hard parameterized by the pathwidth [33], and [1]-hard parameterized by the combined parameter feedback vertex set number plus pathwidth [21].
The parameterized complexity of Geodetic Set was first addressed in [31], in which it was observed that the reduction from [15] implies that the problem is [2]-hard parameterized by the solution size (even for chordal bipartite graphs). This motivated the authors of [31] to investigate structural parameterizations of Geodetic Set. They proved the problem to be [1]-hard for the combined parameters solution size, feedback vertex set number, and pathwidth, and for the parameters treedepth, modular-width (more generally, clique-width plus diameter), and feedback edge set number [31]. The problem was also shown to be on chordal graphs when parameterized by the treewidth [6].
2 Preliminaries
For an integer , we let .
Graph theory.
We use standard graph-theoretic notation and refer the reader to [14] for any undefined notation. For an undirected graph , the sets and denote its set of vertices and edges, respectively. Two vertices are adjacent or neighbors if . The open neighborhood of a vertex , denoted by , is the set of vertices that are neighbors of . The closed neighborhood of a vertex is denoted by . For any and , . Any two vertices are true twins if , and are false twins if . For a subset of , we say that the vertices in are true (false, respectively) twins if, for any , and are true (false, respectively) twins. The distance between two vertices in , denoted by , is the length of a -shortest path in . For a subset of , we define and . For a graph , a set is said to be a vertex cover if is an independent set. We denote by the size of a minimum vertex cover in . When is clear from the context, we simply say . A vertex is simplicial if its neighborhood forms a clique. Observe that any simplicial vertex does not belong to any shortest path between any pair of vertices (both distinct from ). Hence, the following holds.
Observation 3 ([10]).
If a graph contains a simplicial vertex , then belongs to any geodetic set of . Specifically, every degree- vertex belongs to any geodetic set of .
Metric Dimension.
A subset of vertices resolves a pair of vertices if there exists a vertex such that . A vertex is distinguished by a subset of vertices if, for any , there exists a vertex such that .
Parameterized Complexity.
An instance of a parameterized problem comprises an input , which is an input of the classical instance of the problem, and an integer , which is called the parameter. A problem is said to be fixed-parameter tractable or in if given an instance of , we can decide whether or not is a Yes-instance of in time, for some computable function whose value depends only on .
A kernelization algorithm for is a polynomial-time algorithm that takes as input an instance of and returns an equivalent instance of , where , where is a function that depends only on . If such an algorithm exists for , we say that admits a kernel of size . If is a polynomial or exponential function of , we say that admits a polynomial or exponential kernel, respectively. If is a graph problem, then contains a graph, say , and contains a graph, say . In this case, we say that admits a kernel with vertices if the number of vertices of is at most .
It is typical to describe a kernelization algorithm as a series of reduction rules. A reduction rule is a polynomial-time algorithm that takes as an input an instance of a problem and outputs another (usually reduced) instance. A reduction rule said to be applicable on an instance if the output instance is different from the input instance. A reduction rule is safe if the input instance is a Yes-instance if and only if the output instance is a Yes-instance.
The Exponential Time Hypothesis (ETH) roughly states that -variable 3-SAT cannot be solved in time. For more on parameterized complexity and related terminologies, we refer the reader to the recent book by Cygan et al. [12].
3-Partitioned-3-SAT.
Our lower bound proofs consist of reductions from the 3-Partitioned-3-SAT problem. This version of 3-SAT was introduced in [32] and is defined as follows.
3-Partitioned-3-SAT Input: A formula in -CNF form, together with a partition of the set of its variables into three disjoint sets , , , with , and such that no clause contains more than one variable from each of , and . Question: Determine whether is satisfiable.
Organization of the paper.
We start with the results for Metric Dimension, which are then followed by those for Geodetic Set. For each, we first present the algorithms and then the reductions. Since space requirements prohibit us from presenting our reductions in detail, we give an outline that discusses the main technical ideas behind our reductions for getting the lower-bound results for both Metric Dimension and Geodetic Set. For the complete formal proofs, we refer the reader to the full version of this paper [19].
3 Metric Dimension: Algorithms for Vertex Cover Parameterization
In this section, we prove Theorem 1 for Metric Dimension. The kernelization algorithm exhaustively applies the following reduction rule.
Reduction Rule 1.
If there exist three vertices such that are false twins, then delete and decrease by one.
Proof that Reduction Rule 1 is safe..
Since are false twins, . This implies that, for any vertex , . Hence, any resolving set that excludes at least two vertices in cannot resolve all three pairs , , and . As the vertices in are distance-wise indistinguishable from the remaining vertices, we can assume, without loss of generality, that any resolving set contains both and . Hence, any pair of vertices in that is resolved by is also resolved by . In other words, if is a resolving set of , then is a resolving set of . This implies the correctness of the forward direction. The correctness of the reverse direction trivially follows from the fact that we can add into a resolving set of to obtain a resolving set of .
Lemma 4.
Metric Dimension, parameterized by the vertex cover number , admits a polynomial-time kernelization algorithm that returns an instance with vertices.
Proof.
Given a graph , let be a minimum vertex cover of . If such a vertex cover is not given, then we can find a -factor approximate vertex cover in polynomial time. Let . By the definition of a vertex cover, the vertices of are pairwise non-adjacent.
The kernelization algorithm exhaustively applies Reduction Rule 1. Now, consider an instance on which 1 is not applicable. If the budget is negative, then the algorithm returns a trivial No-instance of constant size. Otherwise, for any , there are at most two vertices such that . This implies that the number of vertices in the reduced instance is at most .
Next, we present an -algorithm parameterized by the vertex cover number. This algorithm, along with the kernelization algorithm above, imply111Note that the application of 1 does not increase the vertex cover number. that Metric Dimension admits an algorithm running in time.
Lemma 5.
Metric Dimension admits an algorithm running in time.
Proof.
The algorithm starts by computing a minimum vertex cover of in time using an algorithm for the Vertex Cover problem, for example the one in [11] or [27]. Let . Then, in polynomial time, it computes a largest subset of such that, for every vertex in , contains a false twin of . By the arguments in the previous proof, if there are false twins in , say , then any resolving set contains at least one of them. Hence, it is safe to assume that any resolving set contains . If , then the algorithm returns No. Otherwise, it enumerates every subset of vertices of size at most in . If there exists a subset such that is a resolving set of of size at most , then it returns . Otherwise, it returns No.
In order to prove that the algorithm is correct, we prove that is a resolving set of . It is easy to see that, for a pair of distinct vertices , if and , then the pair is resolved by . It remains to argue that every pair of distinct vertices in is resolved by . Note that, for any two vertices , as otherwise can be moved to , contradicting the maximality of . Hence, there is a vertex in that is adjacent to , but not adjacent to , resolving the pair . This implies the correctness of the algorithm. The running time of the algorithm easily follows from its description.
4 Metric Dimension: Lower Bounds Regarding Vertex Cover
In this section, we prove Theorem 2 for Metric Dimension. The first integral part of our technique is to reduce from a variant of 3-SAT known as 3-Partitioned-3-SAT [32]. In this problem, the input is a -CNF formula , together with a partition of the set of its variables into three disjoint sets , , , with , and such that no clause contains more than one variable from each of , , and . The objective is to determine whether is satisfiable. Unless the ETH fails, 3-Partitioned-3-SAT does not admit an algorithm running in time [32, Theorem 3]. Our key result is the following.
Theorem 6.
There is an algorithm that, given an instance of 3-Partitioned-3-SAT on variables, runs in time, and constructs an equivalent instance of Metric Dimension such that (and ).
The above theorem, along with the arguments that are standard to prove the ETH-based lower bounds, immediately imply the following results.
Corollary 7.
Unless the ETH fails, Metric Dimension does not admit an algorithm running in time.
Corollary 8.
Unless the ETH fails, Metric Dimension does not admit a kernelization algorithm that does not increase the solution size and outputs a kernel with vertices.
Proof.
Toward a contradiction, assume that such a kernelization algorithm exists. Consider the following algorithm for 3-Partitioned--SAT. Given a 3-Partitioned--SAT formula on variables, it uses Theorem 6 to obtain an equivalent instance of such that and . Then, it uses the assumed kernelization algorithm to construct an equivalent instance such that has vertices and . Finally, it uses a brute-force algorithm, running in time, to determine whether the reduced instance, or equivalently the input instance of 3-Partitioned-3-SAT, is a Yes-instance. The correctness of the algorithm follows from the correctness of the respective algorithms and our assumption. The total running time of the algorithm is . But this contradicts the ETH.
The reduction, presented in Section 4.2, uses tools introduced in the next subsection.
4.1 Preliminary Tools
4.1.1 Set Identifying Gadget
We redefine a gadget introduced in [20]. Suppose we are given a graph and a subset of its vertices. Further, suppose that we want to add a vertex set to in order to obtain a new graph such that (1) each vertex in will be distinguished by vertices in that must be in any resolving set of , and (2) no vertex in can resolve any pair of vertices in that are in the same distance class with respect to .
The graph induced by the vertices of , along with the edges connecting to , is the Set Identifying Gadget for [20]. Given a graph and a non-empty subset of its vertices, to construct such a graph , we add vertices and edges to as follows:
-
The vertex set that we are aiming to add is the union of a set bit-rep and a special vertex denoted by .
-
Let and set . We select this value for to (1) uniquely represent each integer in by its bit-representation in binary (note that we start from and not ), (2) ensure that the only vertex whose bit-representation contains all ’s is , and (3) reserve one spot for an additional vertex .
-
For every , add three vertices , and add the path .
-
Add three vertices , and add the path . Add all the edges to make a clique. Make adjacent to each vertex . Let and .
-
For every integer , let denote the binary representation of using bits. Connect with if the bit (going from left to right) in is .
-
Add a vertex, denoted by , and make it adjacent to every vertex in . One can think of as the only vertex whose bit-representation contains all ’s.
-
For every vertex such that is adjacent to some vertex in , add an edge between and . We add this vertex to ensure that vertices in do not resolve any pairs of vertices in that are in the same distance class with respect to .
This completes the construction of . See Figure 1 for an illustration.
4.1.2 Gadget to Add Critical Pairs
Any resolving set needs to resolve all pairs of vertices in the input graph. As we will see, some pairs are harder to resolve than others.
Suppose that we need to have such “hard” pairs in a graph . So, for each , we make a pair of vertices critical as follows. Define . We then add and as mentioned above (taking as the set ), with the edges between and defined by , i.e., connect both and with the -th vertex of if the bit (going from left to right) in is . Hence, can resolve any pair of the form , , or as long as . As before, can also resolve all pairs with one vertex in , but no critical pair of vertices.
4.1.3 Vertex Selector Gadgets
Suppose that we are given a collection of sets of vertices in a graph , and we want to ensure that any resolving set of includes at least one vertex from for every . In the following, we construct a gadget that achieves a slightly weaker objective.
-
Let . Add a set identifying gadget for as mentioned in Subsection 4.1.1.
-
For every , add two vertices and . Use the gadget mentioned in Subsection 4.1.2 to make all the pairs of the form critical pairs (in the way it was introduced for ).
-
For every , add an edge . We highlight that we do not make adjacent to by a dotted line in Figure 1. Also, add the edges , , , and .
This completes the construction. Note that the only vertices that can resolve a critical pair , apart from and , are the vertices in (see Figure 1, all other vertices are equidistant from both vertices of the pair). Hence, every resolving set contains at least one vertex in .
4.2 Reduction
Consider an instance of 3-Partitioned-3-SAT with the partition of the variable set, where each part contains variables. By adding dummy variables in each of these sets, we can assume that is an integer. From , we construct the graph as follows. We describe the construction of the part of the graph that corresponds to , with the parts corresponding to and being analogous. Rename the variables in to for .
-
We partition the variables of into buckets such that each bucket contains variables. Let for all .
-
For every , we construct a set of new vertices, . Each vertex in corresponds to a certain possible assignment of variables in . Let be the collection of all the vertices added in the above step, that is, . We add a set identifying gadget as mentioned in Subsection 4.1.1 in order to resolve every pair of vertices in .
-
For every , we construct a pair of vertices. Then, we add a gadget to make the pairs critical as mentioned in Subsection 4.1.2. Let be the collection of vertices in the critical pairs. We add edges in to make it a clique.
-
We would like that any resolving set contains at least one vertex in for every , but instead we add the construction from Subsection 4.1.3 that achieves the slightly weaker objective as mentioned there. However, for every , instead of adding two new vertices, we use as the necessary critical pair. Formally, for every , we make adjacent to every vertex in . We add edges to make adjacent to every vertex in , and adjacent to every vertex in . Recall that there is also the edge .
-
For every clause in , we have a pair of vertices . Let be the collection of vertices in such pairs. We add portals that transmit information from vertices corresponding to assignments, i.e., vertices in , to pairs corresponding to clauses. A portal is a clique on vertices in the graph . We add three portals, the truth portal (denoted by ), false portal (denoted by ), and validation portal (denoted by ). Let , , and . Moreover, let .
-
We add edges between and the portals as follows. For and , consider a vertex in . Recall that this vertex corresponds to an assignment , where is the collection of variables . If , then we add the edge . Otherwise, , and we add the edge . We add the edge for every .
Then, we repeat the above steps to construct , .
Now, we are ready to proceed through the final steps to complete the construction.
-
For every clause in , as it has been already introduced above, we have a pair of vertices and is the collection of vertices in such pairs. Then, we add a gadget as was described in Subsection 4.1.2 to make each pair a critical one.
-
For each , we add an edge between and every vertex of , and we add the edge . Now, we add edges between and the portals as follows for each . Consider a clause in and the corresponding critical pair in . As is an instance of -Partitioned--SAT, there is at most one variable in that appears in . If does not contain a variable in , then we make and adjacent to every vertex in , and they are not adjacent to any vertex in . Otherwise, suppose that contains the variable for some . The first subscript decides the edges between and the validation portal, whereas the second subscript decides the edges between and either the truth portal or false portal in the following sense. We add all edges of the form and for every such that . If appears as a positive literal in , then we add the edge . Otherwise, appears as a negative literal in , and we add the edge .
This concludes the construction of . The reduction returns as an instance of Metric Dimension where
We give an informal description of the proof of correctness here. See Figure 3. Suppose and the vertices in the sets are indexed from top to bottom. For legibility, we omit some edges and only show out of vertices in each for . We also omit bit-rep and nullifier for these sets. The vertex selection gadget and the budget ensure that exactly one vertex in is selected for every . If a resolving set contains a vertex from , then it corresponds to selecting an assignment of variables in . For example, the vertex corresponds to the assignment . Suppose , , and . Hence, is adjacent to the first and third vertex in the truth portal , whereas it is adjacent with the second vertex in the false portal . Suppose the clause contains the variable as a positive literal. Note that and are at distance and , respectively, from . Hence, the vertex , corresponding to the assignment that satisfies clause , resolves the critical pair . Now, suppose there is another assignment such that and . As is an instance of -Partitioned--SAT and contains a variable in (), does not contain a variable in (). Hence, does not satisfy . Let be the vertex in corresponding to . The connections via the validation portal ensure that both and are at distance from , and hence, cannot resolve the critical pair . Hence, finding a resolving set in corresponds to finding a satisfying assignment for . These intuitions are formalized in the following subsection.
4.3 Correctness of the Reduction
Suppose, given an instance of -Partitioned--SAT, that the reduction of this subsection returns as an instance of Metric Dimension. We first prove the following lemma which will be helpful in proving the correctness of the reduction.
Lemma 9.
For any resolving set of and for all ,
-
1.
contains at least one vertex from each pair of false twins in .
-
2.
Vertices in resolve any non-critical pair of vertices when and .
-
3.
Vertices in cannot resolve any critical pair of vertices nor for all , , and .
Proof.
-
1.
Let be a graph. For any false twins and any , , and so, for any resolving set of , . Hence, the statement follows for all .
-
2.
For all , is distinguished by as it is the only vertex in at distance from each vertex in . We do a case analysis for the remaining non-critical pairs of vertices assuming that (also, suppose that neither nor is in , as otherwise, they are obviously distinguished):
- Case i: .
-
- Case i(a): or .
-
In the first case, let be the bit in the binary representation of the subscript of that is not equal to the bit in the binary representation of the subscript of (such a exists since is not a critical pair). In the second case, without loss of generality, let and . By the first item of the statement of the lemma (1.), without loss of generality, . Then, in both cases, .
- Case i(b): and .
-
Without loss of generality, (by 1.). Then, and, for all , . Without loss of generality, let be adjacent to and let (by 1.). Then, for , . If , then, without loss of generality, and (by 1.), and .
- Case i(c): .
-
Without loss of generality, and (by 1.). Then, .
- Case i(d): and .
-
Without loss of generality, and (by 1.). Then, .
- Case ii: and .
-
For each , there exists such that , while, for each and , we have .
-
3.
For all , , , and , we have that . Further, for and all and , either , , or by the construction in Subsection 4.1.2 and since is a clique. Hence, for all , vertices in cannot resolve a pair of vertices for any .
For all , if , then, for all such that , and , we have that . Similarly, for all , if , then, for all and , we have that . Lastly, for each , , and , if , then, for all , either , , or by the construction in Subsection 4.1.2 and since is a clique.
Lemma 10.
If is a satisfiable -Partitioned--SAT formula, then admits a resolving set of size .
Lemma 11.
If admits a resolving set of size , then is a satisfiable -Partitioned--SAT formula.
Proof of Theorem 6..
In Subsection 4.2, we presented a reduction that takes an instance of -Partitioned--SAT and returns an equivalent instance of Metric Dimension (by Lemmas 10 and 11) in time, where
Note that . Further, note that taking all the vertices in and for all , and for all , results in a vertex cover of . Hence,
Thus, .
5 Geodetic Set: Algorithms for Vertex Cover Parameterization
To prove Theorem 1 for Geodetic Set, we start with the following fact about false twins.
Lemma 12.
If a graph contains a set of false twins that are not true twins and not simplicial, then any minimum-size geodetic set contains at most four vertices of .
Proof.
Let be a set of false twins in a graph , that are not true twins and not simplicial. Thus, forms an independent set, and there are two non-adjacent vertices in the neighborhood of the vertices in . Toward a contradiction, assume that and has a minimum-size geodetic set that contains at least five vertices of ; without loss of generality, assume . We claim that is still a geodetic set, contradicting the choice of as a minimum-size geodetic set of .
To see this, notice that any vertex from that is covered by some pair of vertices in is also covered by and . Similarly, any vertex from covered by some pair in , is still covered by and . Moreover, and cover all vertices of , since they are at distance 2 from each other and all vertices in are their common neighbors. Thus, is a geodetic set, as claimed.
Lemma 13.
Geodetic Set, parameterized by the vertex cover number , admits a polynomial-time kernelization algorithm that returns an instance with vertices.
Proof.
Given a graph , let be a minimum-size vertex cover of . If this vertex cover is not given, then we can find a -factor approximate vertex cover in polynomial time. Let ; forms an independent set. The kernelization algorithm exhaustively applies the following reduction rules in a sequential manner.
Reduction Rule 2.
If there exist three simplicial vertices in that are false twins or true twins, then delete one of them from and decrease by one.
Reduction Rule 3.
If there exist six vertices in that are false twins but are not true twins nor simplicial, then delete one of them from .
To see that Reduction Rule 2 is correct, assume that contains three simplicial vertices that are twins (false or true). We show that has a geodetic set of size if and only if the reduced graph , obtained from by deleting , has a geodetic set of size . For the forward direction, let be a geodetic set of of size . By Observation 3, contains each of . Now, let . This set of size is a geodetic set of . Indeed, any vertex of that was covered in by and some other vertex of , is also covered by and in . Conversely, if has a geodetic set of size , then it is clear that is a geodetic set of size in .
For Reduction Rule 3, assume that contains six false twins (that are not true twins nor simplicial) as the set , and let be the reduced graph obtained from by deleting . We show that has a geodetic set of size if and only if has a geodetic set of size . For the forward direction, let be a minimum-size geodetic set of size (at most) of . By Lemma 12, contains at most four vertices from ; without loss of generality, and do not belong to . Since the distances among all pairs of vertices in are the same as in , is still a geodetic set of . Conversely, let be a minimum-size geodetic set of of size (at most) . Again, by Lemma 12, we may assume that one vertex among is not in , say, without loss of generality, that it is . Note that covers (in ) all vertices of . Thus, is covered by two vertices of . But then, is also covered by and , since we can replace by in any shortest path between and . Hence, is also a geodetic set of .
Now, consider an instance on which the reduction rules cannot be applied. If , then we return a trivial No-instance (for example, a single-vertex graph). Otherwise, notice that any set of false twins in contains at most five vertices. Hence, has at most vertices.
Next, we present an -algorithm parameterized by the vertex cover number. Together with Lemma 13, they imply Theorem 1 for Geodetic Set.
Lemma 14.
Geodetic Set admits an algorithm running in time.
Proof.
The algorithm starts by computing a minimum vertex cover of in time using an algorithm for the Vertex Cover problem, for example the one in [11] or [27]. Let .
In polynomial time, we compute the set of simplicial vertices of . By Observation 3, any geodetic set of contains all simplicial vertices of . Note that is a geodetic set of . Indeed, any vertex from that is not simplicial has two non-adjacent neighbors in , and thus, is covered by and (which are at distance 2 from each other).
Hence, to enumerate all possible minimum-size geodetic sets, it suffices to enumerate all subsets of vertices of size at most in , and check whether is a geodetic set. If one such set is indeed a geodetic set and has size at most , we return Yes. Otherwise, we return No. The statement follows.
6 Geodetic Set: Lower Bounds Regarding Vertex Cover
In this section, we follow the same template as in Section 4 and first prove the following theorem.
Theorem 15.
There is an algorithm that, given an instance of 3-Partitioned-3-SAT on variables, runs in time, and constructs an equivalent instance of Geodetic Set such that (and ).
The proofs of the following two corollaries are analogous to those for Metric Dimension.
Corollary 16.
Unless the ETH fails, Geodetic Set does not admit an algorithm running in time.
Corollary 17.
Unless the ETH fails, Geodetic Set does not admit a kernelization algorithm that does not increase the solution size and outputs a kernel with vertices.
6.1 Reduction
Consider an instance of 3-Partitioned-3-SAT with the partition of the variable set, where . By adding dummy variables in each of these sets, we can assume that is an integer. Further, let be the set of all the clauses of . From , we construct the graph as follows. We describe the construction for the part of the graph corresponding to , with the parts corresponding to and being analogous. We rename the variables in to for .
-
We partition the variables of into buckets such that each bucket contains many variables. Let for all .
-
For every bucket , we add an independent set of new vertices, and we add two isolated edges and . Let . For all and , we make both and adjacent to (see Figure 4).
Each vertex in corresponds to a certain possible assignment of variables in .
-
Then, we add three independent sets , , and on vertices each: , , and .
-
For each , we connect with all the vertices in .
-
For each , we add edges between and and between and as follows. Consider a vertex . Recall that this vertex corresponds to an assignment , where is the collection of variables . If , then we add the edge , and otherwise, we add the edge .
-
For each , we add a special vertex (also referred to as a -vertex later on) that is adjacent to each vertex in . Further, is also adjacent to both and (see Figure 4).
This finishes the first part of the construction. The second step is to connect the three previously constructed parts for , , and .
-
We introduce a vertex set that forms a clique. Then, for each , we add an edge to a new vertex . Thus, we have a matching . Let .
-
For each , we add edges so that the vertices of almost form a complete bipartite graph, i.e., contains edges between all pairs where and , except for the matching .
-
For each and , we make adjacent to each vertex in .
-
For each , we add a new vertex . Let . Since we are considering an instance of 3-Partitioned-3-SAT, for each , there is at most one variable in that lies in . If there is one, then without loss of generality, let it be and do the following. Make adjacent to and if (, respectively) satisfies , then (, respectively).
This concludes the construction of . The reduction returns as an instance of Geodetic Set where .
6.2 Correctness of the Reduction
Suppose, given an instance of -Partitioned--SAT, that the reduction above returns as an instance of Geodetic Set. We first prove the following lemmas which will be helpful in proving the correctness of the reduction, and note that we use distances between vertices to prove that certain vertices are not contained in shortest paths.
Lemma 18.
For all , the shortest paths between any two vertices in do not cover any vertices in nor .
Lemma 19.
For all and , can only be covered by a shortest path from a vertex in to another vertex in .
Lemma 20.
If admits a geodetic set of size , then is a satisfiable -Partitioned--SAT formula.
Lemma 21.
If is a satisfiable -Partitioned--SAT formula, then admits a geodetic set of size .
Proof of Theorem 15..
In Section 6.1, we presented a reduction that takes an instance of -Partitioned--SAT and returns an equivalent instance of Geodetic Set (by Lemmas 20 and 21) in time, where . Note that . Further, note that taking all the vertices in , , , , , , and for all and , results in a vertex cover of . Hence,
Thus, .
7 Conclusion
We have seen that both Metric Dimension and Geodetic Set have a non-trivial running-time dependency (unless the ETH fails) in the vertex cover number parameterization. Both problems are for related parameters, such as vertex integrity, treedepth, distance to (co-)cluster, distance to cograph, etc., as more generally, they are for cliquewidth plus diameter [23, 31]. For both problems, it was proved that the correct dependency in treedepth (and treewidth plus diameter) is in fact double-exponential [20], a fact that is also true for feedback vertex set plus diameter for Metric Dimension [20]. For distance to (co-)cluster, algorithms with double-exponential dependency were given for Metric Dimension in [21]. For the parameter max leaf number , the algorithm for Metric Dimension from [17] uses ILPs, with a dependency of the form (a similar algorithm for Geodetic Set with dependency exists for the feedback edge set number [31]), which is unknown to be tight. What is the correct dependency for all these parameters? In particular, it seems interesting to determine for which parameter(s) the jump from double-exponential to single-exponential dependency occurs.
For the related problem Strong Metric Dimension, the correct dependency in the vertex cover number is known to be double-exponential [20]. It would be nice to determine whether similarly intriguing behaviors can be exhibited for related metric-based problems, such as Strong Geodetic Set, whose parameterized complexity was recently adressed in [16, 34]. Perhaps our techniques are applicable to such related problems.
References
- [1] A. Agrawal, D. Lokshtanov, S. Saurabh, and M. Zehavi. Split contraction: The untold story. ACM Trans. Comput. Theory, 11(3):18:1–18:22, 2019. doi:10.1145/3319909.
- [2] R. Belmonte, F. V. Fomin, P. A. Golovach, and M. S. Ramanujan. Metric dimension of bounded tree-length graphs. SIAM J. Discrete Math., 31(2):1217–1243, 2017. doi:10.1137/16M1057383.
- [3] B. Bergougnoux, O. Defrain, and F. Mc Inerney. Enumerating minimal solution sets for metric graph problems. In Proc. of the 50th International Workshop on Graph-Theoretic Concepts in Computer Science (WG 2024), volume 14760 of Lecture Notes in Computer Science, pages 50–64. Springer, 2024.
- [4] E. Bonnet and N. Purohit. Metric dimension parameterized by treewidth. Algorithmica, 83:2606–2633, 2021. doi:10.1007/S00453-021-00808-9.
- [5] N. Bousquet, Q. Deschamps, and A. Parreau. Metric dimension parameterized by treewidth in chordal graphs. In Proc. of the 49th International Workshop on Graph-Theoretic Concepts in Computer Science (WG 2023), volume 14093 of Lecture Notes in Computer Science, pages 130–142. Springer, 2023. doi:10.1007/978-3-031-43380-1_10.
- [6] D. Chakraborty, S. Das, F. Foucaud, H. Gahlawat, D. Lajou, and B. Roy. Algorithms and complexity for geodetic sets on planar and chordal graphs. In Proc. of the 31st International Symposium on Algorithms and Computation (ISAAC 2020), volume 181 of LIPIcs, pages 7:1–7:15. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2020. doi:10.4230/LIPICS.ISAAC.2020.7.
- [7] D. Chakraborty, F. Foucaud, D. Majumdar, and P. Tale. Tight (double) exponential bounds for identification problems: Locating-dominating set and test cover. In Proc. of the 35th International Symposium on Algorithms and Computation (ISAAC 2024), volume 322 of LIPIcs, pages 19:1–19:18. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024. doi:10.4230/LIPICS.ISAAC.2024.19.
- [8] J. Chalopin, V. Chepoi, F. Mc Inerney, and S. Ratel. Non-clashing teaching maps for balls in graphs. In Proc. of the 37th Annual Conference on Learning Theory (COLT 2024), volume 247 of Proceedings of Machine Learning Research, pages 840–875. PMLR, 2024. URL: https://proceedings.mlr.press/v247/chalopin24a.html.
- [9] L. S. Chandran, D. Issac, and A. Karrenbauer. On the parameterized complexity of biclique cover and partition. In Proc. of the 11th International Symposium on Parameterized and Exact Computation (IPEC 2016), volume 63 of LIPIcs, pages 11:1–11:13. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2016. doi:10.4230/LIPICS.IPEC.2016.11.
- [10] G. Chartrand, F. Harary, and P. Zhang. On the geodetic number of a graph. Networks, 39(1):1–6, 2002. doi:10.1002/NET.10007.
- [11] J. Chen, I. A. Kanj, and W. Jia. Vertex cover: Further observations and further improvements. J. Algorithms, 41(2):280–301, 2001. doi:10.1006/JAGM.2001.1186.
- [12] M. Cygan, F. V. Fomin, L. Kowalik, D. Lokshtanov, D. Marx, M. Pilipczuk, M. Pilipczuk, and S. Saurabh. Parameterized Algorithms. Springer, 2015.
- [13] M. Cygan, M. Pilipczuk, and M. Pilipczuk. Known algorithms for edge clique cover are probably optimal. SIAM J. Comput., 45(1):67–83, 2016. doi:10.1137/130947076.
- [14] R. Diestel. Graph Theory, 6th Edition, volume 173 of Graduate texts in mathematics. Springer, 2024.
- [15] M. C. Dourado, F. Protti, D. Rautenbach, and J. L. Szwarcfiter. Some remarks on the geodetic number of a graph. Discrete Mathematics, 310(4):832–837, 2010. doi:10.1016/J.DISC.2009.09.018.
- [16] M. Dumas, F. Foucaud, A. Perez, and I. Todinca. On graphs coverable by shortest paths. SIAM J. Discrete Math., 38(2):1840–1862, 2024. doi:10.1137/23M1564511.
- [17] D. Eppstein. Metric dimension parameterized by max leaf number. Journal of Graph Algorithms and Applications, 19(1):313–323, 2015. doi:10.7155/JGAA.00360.
- [18] L. Epstein, A. Levin, and G. J. Woeginger. The (weighted) metric dimension of graphs: Hard and easy cases. Algorithmica, 72(4):1130–1171, 2015. doi:10.1007/S00453-014-9896-2.
- [19] F. Foucaud, E. Galby, L. Khazaliya, S. Li, F. Mc Inerney, R. Sharma, and P. Tale. Metric dimension and geodetic set parameterized by vertex cover. CoRR, abs/2405.01344, 2024. doi:10.48550/arXiv.2405.01344.
- [20] F. Foucaud, E. Galby, L. Khazaliya, S. Li, F. Mc Inerney, R. Sharma, and P. Tale. Problems in NP can admit double-exponential lower bounds when parameterized by treewidth or vertex cover. In Proc. of the 51st International Colloquium on Automata, Languages, and Programming (ICALP 2024), volume 297 of LIPIcs, pages 66:1–66:19. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024. doi:10.4230/LIPICS.ICALP.2024.66.
- [21] E. Galby, L. Khazaliya, F. Mc Inerney, R. Sharma, and P. Tale. Metric dimension parameterized by feedback vertex set and other structural parameters. SIAM J. Discrete Math., 37(4):2241–2264, 2023. doi:10.1137/22M1510911.
- [22] M. R. Garey and D. S. Johnson. Computers and Intractability - A guide to NP-completeness. W.H. Freeman and Company, 1979.
- [23] T. Gima, T. Hanaka, M. Kiyomi, Y. Kobayashi, and Y. Otachi. Exploring the gap between treedepth and vertex cover through vertex integrity. Theoretical Comp. Sci., 918:60–76, 2022. doi:10.1016/J.TCS.2022.03.021.
- [24] G. Z. Gutin, M. S. Ramanujan, F. Reidl, and M. Wahlström. Alternative parameterizations of metric dimension. Theoretical Comp. Sci., 806:133–143, 2020. doi:10.1016/J.TCS.2019.01.028.
- [25] F. Harary, E. Loukakis, and C. Tsouros. The geodetic number of a graph. Mathematical and Computer Modelling, 17(11):89–95, 1993.
- [26] F. Harary and R. A. Melter. On the metric dimension of a graph. Ars Comb., 2:191–195, 1976.
- [27] D. G. Harris and N. S. Narayanaswamy. A faster algorithm for vertex cover parameterized by solution size. In Proc. of the 41st International Symposium on Theoretical Aspects of Computer Science (STACS 2024), volume 289 of LIPIcs, pages 40:1–40:18. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024. doi:10.4230/LIPICS.STACS.2024.40.
- [28] S. Hartung and A. Nichterlein. On the parameterized and approximation hardness of metric dimension. In Proc. of the 28th Conference on Computational Complexity, CCC 2013, pages 266–276. IEEE Computer Society, 2013. doi:10.1109/CCC.2013.36.
- [29] L. Jaffke, O.-J. Kwon, T. J. F. Strømme, and J. A. Telle. Mim-width III. Graph powers and generalized distance domination problems. Theoretical Comp. Sci., 796:216–236, 2019. doi:10.1016/J.TCS.2019.09.012.
- [30] I. Katsikarelis, M. Lampis, and V. Th. Paschos. Structurally parameterized -scattered set. Discrete Applied Mathematics, 308:168–186, 2022. doi:10.1016/J.DAM.2020.03.052.
- [31] L. Kellerhals and T. Koana. Parameterized complexity of geodetic set. Journal of Graph Algorithms and Applications, 26(4):401–419, 2022. doi:10.7155/JGAA.00601.
- [32] M. Lampis, N. Melissinos, and M. Vasilakis. Parameterized max min feedback vertex set. In Proc. of the 48th International Symposium on Mathematical Foundations of Computer Science (MFCS 2023), volume 272 of LIPIcs, pages 62:1–62:15. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023. doi:10.4230/LIPICS.MFCS.2023.62.
- [33] S. Li and M. Pilipczuk. Hardness of metric dimension in graphs of constant treewidth. Algorithmica, 84(11):3110–3155, 2022. doi:10.1007/S00453-022-01005-Y.
- [34] C. V. G. C. Lima, V. F. dos Santos, J. H. G. Sousa, and S. A. Urrutia. On the computational complexity of the strong geodetic recognition problem. RAIRO Oper. Res., 58(5):3755–3770, 2024. doi:10.1051/RO/2024120.
- [35] D. Marx, M. Pilipczuk, and M. Pilipczuk. On subexponential parameterized algorithms for steiner tree and directed subset TSP on planar graphs. In Proc. of the 59th IEEE Annual Symposium on Foundations of Computer Science (FOCS 2018), pages 474–484, 2018.
- [36] M. Pilipczuk. Problems parameterized by treewidth tractable in single exponential time: A logical approach. In Proc. of the 36th International Symposium on Mathematical Foundations of Computer Science (MFCS 2011), volume 6907 of Lecture Notes in Computer Science, pages 520–531. Springer, 2011. doi:10.1007/978-3-642-22993-0_47.
- [37] I. Sau and U. dos Santos Souza. Hitting forbidden induced subgraphs on bounded treewidth graphs. Inf. Comput., 281:104812, 2021. doi:10.1016/J.IC.2021.104812.
- [38] P. J. Slater. Leaves of trees. In Proc. of the 6th Southeastern Conf. on Combinatorics, Graph Theory, and Computing, pages 549–559. Congressus Numerantium, No. XIV. Util. Math., 1975.
- [39] P. Tale. Double exponential lower bound for telephone broadcast. CoRR, abs/2403.03501, 2024. doi:10.48550/arXiv.2403.03501.