arXiv:2610.27935cs.DSOct 2026

Manuscript Offprint

arXiv:2610.27935

Improved Approximation and Hardness Results for the Monitoring Edge-Geodetic Set Problem

Davide Bilò, Giordano Colli, Stefano Leucci

Abstract

We study the Monitoring Edge-Geodetic Set problem (MEG-SET), which asks for a minimum-cardinality set M of vertices of an undirected graph G of n vertices such that every edge of G belongs to all shortest paths between some pair of vertices in M.

We present new approximation and hardness results for MEG-SET. On the positive side, we design a deterministic polynomial-time O(n1/3log⁡2/3n)O(n^{1/3} \log^{2/3} n)-approximation algorithm, improving upon the previously best-known O(nlog⁡n)O(\sqrt{n \log n}) approximation ratio. On the negative side, for every constant ε∈(0,1)\varepsilon \in (0,1), we prove that the problem admits no polynomial-time (2log⁡1−εn)(2^{\log 1 - \varepsilon} n)-approximation algorithm, unless NP ⊆\subseteq DTIME (npolylogn)(n^{\text{polylog} n}). This substantially improves upon the previously known logarithmic inapproximability bound. We also prove that MEG-SET is NP-hard on planar 2-degenerate graphs, whereas NP-hardness was previously known for 1-apex 2-degenerate graphs.

We conclude by observing a connection between monitoring edge-geodetic sets and subsetwise distance preservers, i.e., subgraphs that preserve distances between all pairs of vertices in S⊆V(G)S \subseteq V(G). Specifically, we show that any upper bound on the size of the latter yields a lower bound on the size of the former.

2012 ACM Subject Classification Theory of computation → Design and analysis of algorithms

Keywords and phrases Monitoring edge-geodetic set, approximation algorithms, inapproximability results

1 Introduction

We study the problem of computing a minimum-cardinality monitoring edge-geodetic set of an input graph G=(V,E)G = (V, E) with nn vertices, where M⊆VM \subseteq V is a monitoring edge-geodetic set if every edge of GG belongs to all shortest paths between some pair of vertices in MM. We refer to this optimization problem as MEG-SET.

This problem was introduced in [11] in the context of network monitoring: the graph G represents a communication network and one wishes to equip a subset of hosts (represented by vertices) with probes that communicate with one-another and measure their pairwise distances. These probes must be suitably placed to detect link failures, i.e., the removal of any edge e of G must cause the distance between some pair of probes to increase. In other words, e is required to lie on all the shortest paths between at least one pair probes, and the objective is to minimize the number of necessary probes.

MEG-SET has received considerable attention, especially in the case of restricted graph classes, as we discuss in the sequel, while for general graphs it is known to be APX-hard and that, unless NP ⊆\subseteq ZTIME( nO(log⁡log⁡n)n^{O(\log \log n)}), all polynomial-time approximation algorithms must have an approximation ratio in Ω(log⁡n)\Omega(\log n). On the positive side, a simple approximation

Improved Approximation and Hardness Results for MEG-SET

algorithm that reduces the problem to a set-cover can be used to obtain a O(nlog⁡n)O(\sqrt{n\log n})-approximate solution in polynomial time. For the special case of planar graphs, the problem is O(n1/4log⁡n)O(n^{1/4}\sqrt{\log n})-approximable although it is still open whether MEG-SET can be solved in polynomial-time in such graphs.

Our results. In this paper we show that MEG-SET is O(n13log⁡23n)O(n^{\frac{1}{3}} \log^{\frac{2}{3}} n)-approximable in polynomial time, improving over the only known approximation algorithm for general graphs, which has an approximation ratio of O(nlog⁡n)O(\sqrt{n \log n}).

On the negative side, we prove that, unless NP ⊆\subseteq DTIME(npolylognn^{\text{polylog}n}), MEG-SET does not admit any polynomial-time (2log⁡1−εn)(2^{\log 1-\varepsilon}n)-approximation algorithm, for any constant ε∈(0,1)\varepsilon \in (0,1). To the best of our knowledge, this is the first result ruling out the existence of polynomial-time approximation algorithms with polylogarithmic approximation factors (under the above assumption).

We also show that exact polynomial-time algorithms are unlikely to exist even in the special case of 2-degenerate planar graphs, since the problem remains NP-hard. This answers a question posed in [2], and improves over the previously known NP-hardness result for 2-degenerate 1-apex graphs [3].

Finally, we link the size of MEG-SET solutions to the number of edges needed to build a subsetwise distance preserver of G. This connection yields a novel lower bound on the size of monitoring edge-geodetic sets as a function of the number of vertices and edges of G.

Related work. The minimum monitoring edge-geodetic set problem was introduced in [11], where the authors studied the size of such sets in general graphs and in special graph classes including trees, cycles, unicyclic graphs, complete graphs, grids, and hypercubes. Subsequent work established bounds on the size of monitoring edge-geodetic sets for graph products. In particular, [13] considered Cartesian and strong products, while [21] studied joins and direct products. Bounds that are function of the graph's girth and chromatic number have been given in [9]. Further results concern convex polytopes and ladder, butterfly, circulant, and Benes networks [19], as well as radix triangular mesh networks and Sierpiński graphs [15].

The complexity status of the problem was studied by [13] which proved that MEG-SET is NP-hard on general graphs. Such hardness result holds even in for the special case of 2-degenerate 1-apex graphs [3], while the problem is APX-hard on 3-degenerate graphs [3, 10] and not approximable within any constant better than 2 if the unique games conjecture holds [3]. 1^{1} On general graphs, all polynomial-time approximation algorithms for MEG-SET must have an approximation ratio in Ω(log⁡n)\Omega(\log n), unless NP⊆ZTIME(nO(log⁡log⁡n))\mathsf{NP} \subseteq \mathsf{ZTIME}(n^{O(\log \log n)}) [2, 3]. 2^{2} Moreover, if the exponential time hypothesis [14] holds, MEG-SET cannot be solved in time 2o(n)2^{o(n)} on sparse 2-degenerate graphs, nor in 2o(n)2^{o(\sqrt{n})} time on sparse 2-degenerate 1-apex graphs [3].

On the positive side, polynomial-time algorithms are known for interval graphs, distance-hereditary graphs, P4P_{4}-sparse graphs, bipartite permutation graphs, strongly chordal graphs [12], and chordal graphs [16]. The problem also admits FPT algorithms for general graphs parameterized by clique-width plus diameter, and for chordal graphs parameterized by treewidth [10].

As far as approximation algorithms are concerned, a reduction to SET COVER gives polynomial-time solutions of size O(k2log⁡n)O(k^2 \log n), where kk is the optimum, and hence an O(nlog⁡n)O(\sqrt{n \log n})-approximation [7, 1, 10]. Approximation algorithms are also known for graph classes that admit efficiently computable balanced vertex separators [2]. As a consequence,

1^{1} A very recent preprint claims to have proven the unique games conjecture [17].

2^{2} In [2], the latter condition was stated incorrectly. The full version [3] gives the correct statement.

MEG-SET is O(n1/4log⁡n)O(n^{1/4}\sqrt{\log n})-approximable on KhK_h-minor-free graphs with h=O(1)h = O(1), on bounded-genus graphs, and on kk-apex graphs for k=O(n1/4)k = O(n^{1/4}). Moreover, it is O(log⁡3/2n)O(\log^{3/2} n)-approximable on graphs with bounded treewidth.

Paper organization We start by giving some preliminary definition in Section 2. Section 3 presents our approximation algorithm for general graphs, while our inapproximability result is given in Section 4. Section 5 proves the NP-hardness of MEG-SET on planar graphs. Section 6 concludes the paper and shows how lower bounds on the size of monitoring edge-geodetic can be obtained from upper bounds on subsetwise preservers.

References (19)