Abstract 1 Introduction 2 Preliminaries and notation 3 NP-Hardness of minimum MEG-Set on graphs with apex 𝟏 4 Inapproximability of MEG-Set 5 Approximation algorithms References

On the (In)Approximability of the Monitoring Edge Geodetic Set Problem

Davide Bilò ORCID Department of Information Engineering, Computer Science, and Mathematics, University of L’Aquila, Italy Giordano Colli Department of Information Engineering, Computer Science, and Mathematics, University of L’Aquila, Italy Luca Forlizzi ORCID Department of Information Engineering, Computer Science, and Mathematics, University of L’Aquila, Italy Stefano Leucci ORCID Department of Information Engineering, Computer Science, and Mathematics, University of L’Aquila, Italy
Abstract

We study the minimum Monitoring Edge Geodetic Set (MEG-Set) problem introduced in [Foucaud et al., CALDAM’23]: given a graph G, we say that an edge is monitored by a pair u,v of vertices if all shortest paths between u and v traverse e; the goal is to find a subset M of vertices of G such that each edge of G is monitored by at least one pair of vertices in M, and |M| is minimized.

In this paper, we prove that all polynomial-time approximation algorithms for the minimum MEG-Set problem must have an approximation ratio of Ω(logn), unless 𝖯 = 𝖭𝖯. To the best of our knowledge, this is the first non-constant inapproximability result known for this problem. We also strengthen the known 𝖭𝖯-hardness of the problem on 2-apex graphs by showing that the same result holds for 1-apex graphs. This leaves open the question of determining whether the problem remains 𝖭𝖯-hard on planar (i.e., 0-apex) graphs.

On the positive side, we design an algorithm that computes good approximate solutions for hereditary graph classes that admit efficiently computable balanced separators of truly sublinear size. This immediately yields polynomial-time approximation algorithms achieving an approximation ratio of O(n14logn) on planar graphs, graphs with bounded genus, and k-apex graphs with k=O(n14). On graphs with bounded treewidth, we obtain an approximation ratio of O(log3/2n). This compares favorably with the best-known approximation algorithm for general graphs, which achieves an approximation ratio of O(nlogn) via a simple reduction to the Set Cover problem.

Keywords and phrases:
Monitoring Edge Geodetic Set, Inapproximability, Approximation Algorithms
Copyright and License:
[Uncaptioned image] © Davide Bilò, Giordano Colli, Luca Forlizzi, and Stefano Leucci; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Design and analysis of algorithms
Funding:
This work was partially supported by the MONET (Mutual visibility On NETworks) project funded by the University of L’Aquila.
Editors:
Ho-Lin Chen, Wing-Kai Hon, and Meng-Tsung Tsai

1 Introduction

Consider a communication network that might suffer link failures. Such a network can be modeled as an undirected and connected graph G, where vertices represent hosts and edges correspond to links between hosts. In order to quickly detect failure events, the designer wishes to equip the hosts of the network with additional probes: probes can communicate with one another and they can monitor the distance between their corresponding nodes in the network (e.g., via a traceroute mechanism). Whenever the distance between a pair of vertices increases, this indicates that some communication link is inoperative, and an alarm can be raised. Observe that, in the above scenario, it may be possible for two probes to be connected by two (or more) edge-disjoint shortest paths, in which case they will not be able to detect an edge failure.

This motivates the following problem: given a network G, find the smallest possible set M of vertices to equip with probes while ensuring that each edge e of G has at least one pair of vertices u,vM for which all shortest paths between u and v in G traverse e. The above problem is known as the minimum Monitoring Edge Geodetic Set (MEG-Set) problem and was introduced in [9], where the authors focus on providing upper and lower bounds on the size of minimum MEG-Sets for both general graphs and special graph classes (trees, cycles, unicyclic graphs, complete graphs, grids, hypercubes, …).

Further bounds on the size of MEG-Sets have been given for the Cartesian and strong products of two graphs [12], for other graph products including join and direct products [21], as a function of the graph’s girth and chromatic number [6], for ladder, butterfly, circulant and Benes networks, for convex polytopes [20], and for radix triangular mesh networks and Sierpiński graphs [17]. Moreover, the minimum MEG-Set problem was proven to be 𝖭𝖯-hard on general graphs [12], 𝖭𝖯-hard on 3-degenerate 2-apex graphs [8], and 𝖠𝖯𝖷-hard on 4-degenerate graphs [7]. If the Exponential Time Hypothesis [13] holds, then the problem cannot be solved in subexponential time on 3-degenerate graphs [7]. In the same paper, the authors also provide an exact polynomial-time algorithm for interval graphs and two FPT algorithms: one for general graphs parameterized by the sum of cliquewidth and diameter, and the other for chordal graphs parameterized by treewidth. Polynomial-time algorithms for computing optimal MEG-Sets are also known for distance-hereditary graphs, P4-sparse graphs, bipartite permutation graphs, and strongly chordal graphs [10].

As far as approximation algorithms are concerned, it has been observed [2, 1, 7] that a simple reduction to the Set Cover problem yields a polynomial-time algorithm returning solutions of size O(k2logn), where k is the size of a MEG-Set of minimum cardinality, thus achieving an approximation ratio of O(min{klogn,n/k})=O(nlogn).111To the best of our knowledge, this algorithm was first given and analyzed in a Bachelor’s thesis [2], and the result was subsequently claimed in a short communication based thereon [1]. The same algorithm, and its analysis, also appear in a later unpublished work [7] by a different group of authors.

1.1 Our results

In this paper, we investigate the approximability and inapproximability of the minimum MEG-Set problem.

We prove that, if 𝖯𝖭𝖯, the problem admits no polynomial-time approximation algorithm with an approximation factor of o(logn). Moreover, the problem admits no (αlogn)-approximation algorithm for any constant α<12 unless 𝖭𝖯𝖣𝖳𝖨𝖬𝖤(nO(loglogn)). To the best of our knowledge, these are the first non-constant inapproximability results for the minimum MEG-Set problem.

We also extend the aforementioned O(nlogn)-approximation algorithm for minimum MEG-Set to a generalized version of the problem in which edges have non-negative lengths, vertices have binary costs, and a minimum-cost subset of vertices that monitors a given subset of edges needs to be selected. We use this result as a building block to design a more involved approximation algorithm for minimum MEG-Set that relies on recursively computing vertex-separators and provides good approximations for graph families that admit sparse balanced vertex-separators. More precisely, we achieve an approximation ratio of O(n14logn) on planar graphs, on graphs with bounded genus, and on k-apex graphs when k=O(n14). We also obtain an approximation ratio of O(log3/2n) on graphs with bounded treewidth.

Finally, we show that the problem remains 𝖭𝖯-hard even on 1-apex graphs (while the reduction of [6] uses 2-apex graphs). It is an interesting open problem to settle the complexity status of the problem for planar graphs.

1.2 Organization of the paper

We start by giving some preliminary definitions and notation in Section 2. Our inapproximability result for general graphs is presented in Section 4, while the 𝖭𝖯-Hardness result for 1-apex graphs is given in Section 3. Finally, Section 5 is devoted to our approximation algorithms.

2 Preliminaries and notation

Throughout the paper, we consider simple, connected, and undirected graphs unless otherwise specified. Given a graph G=(V,E), we may use V(G) or E(G) to refer to the vertex-set V or the edge-set E, respectively. We denote the open neighborhood of a vertex vV(G) in a graph G as NG(v)={uV(G):{u,v}E(G)}; in the same way, the closed neighborhood of a vertex vV(G) in G is defined as NG[v]=NG(v){v}. When the graph is clear from the context, we refer to the open (resp. closed) neighborhood of a vertex vV(G) as N(v) (resp. N[v]). We also use n to refer to |V(G)|. For a set CV, we define N(C)=vCN(u) and N[C]=vCN[v].

We say that an edge (u,v)E(G) is monitored by a pair of distinct vertices x,yV(G) if (u,v) lies on all the shortest paths between u and v. Similarly, a set of edges E is monitored by MV if each edge eE is monitored by at least one pair of vertices in M. A monitoring edge-geodetic set MEG-Set of G=(V,E) is a subset of vertices that monitors E.

A walk π between two vertices u and v in an edge-weighted graph G with weight function w is an ordered list of alternating (and not necessarily distinct) vertices and edges v0,e1,v1,e2,v2,,ek,vk with v0=u, vk=v, and such that ei=(vi1,vi) for all i=1,,k. The weight w(π) of π is i=1kw(ei).

We conclude this section by stating two well-known structural properties of MEG-Sets.

Lemma 1 ([2, 9]).

All vertices of degree 1 in G belong to all MEG-Sets of G.

Lemma 2 ([2, 6]).

Let u be a vertex of degree 1 in G and let v be its sole neighbor. If |V(G)|3 and M is a MEG-Set of G, then M{v} is a MEG-Set of G.

3 NP-Hardness of minimum MEG-Set on graphs with apex 𝟏

In this section, we show a reduction from the minimum Planar Dominating Set problem on graphs with girth at least seven (which is known to be 𝖭𝖯-Hard [22]) to the minimum MEG-Set problem on graphs with apex 1.

Let G=(V,E) be a planar input graph with |V(G)|2 and with girth g(G)7. We construct an instance of MEG-Set, namely H, starting from G and augmenting it as follows: for each vertex vV(G), we add 2 vertices v and v′′ to G, then connect v to v and v to v′′. We denote the set containing all the vertices v as L and the set containing all the vertices v′′ as L′′. Notice that:

  1. i)

    Each v′′L′′ belongs to every MEG-Set of G due to Lemma 1;

  2. ii)

    Each vL does not belong to any optimal MEG-Set of G due to Lemma 2.

The basic idea is to monitor each edge that is incident to a vertex vV(G) that belongs to a selected MEG-Set in H. We denote the set of edges (v,v) as EL and the set of edges (v,v′′) as EL′′. Note that at this point of the construction, all edges are monitored by at least one pair of leaves in L′′. To avoid this, we shortcut all the shortest paths from one vertex in L′′ to another by inserting two vertices v and v and connecting them together. Then, we connect v to all vertices vL. We denote the set containing edges (v,v) with vL as E. The vertex v is used to create shortcuts between each shortest path from a vertex in LL′′ to a vertex in LL′′. Notice that, since v is a leaf, it belongs to every MEG-Set of G due to Lemma 1. The vertex v is used to monitor the edges in E. Formally, let H=(V(G)LL′′{v,v},E(G)ELEL′′E{{v,v}}), where:

  • L={v:vV(G)};

  • L′′={v′′:vV(G)};

  • EL={{v,v}:vV(G)};

  • EL′′={{v′′,v}:vV(G)};

  • E={{v,v}:vV(G)}.

Figure 1: An example of the construction of the graph H from the input graph G=({a,b,c,d},{{a,b},{b,c},{c,d},{d,a}}), which is shown in black.

We prove the 𝖭𝖯-Completeness of minimum MEG-Set on graphs with apex 1 via two lemmas. The first lemma shows that if there is a MEG-Set of the graph H having size at most k+|V(G)|+1, there exists a Dominating Set of G having size at most k. Conversely, the second lemma shows that if there is a Dominating Set of the graph G having size at most k, there exists a MEG-Set of H having size k+|V(G)|+1.

Lemma 3.

Let D be a Dominating Set of G of size at most k. Then M=DL′′{v} is a MEG-Set of H and |M|k+|V(G)|+1.

Proof.

We prove that each edge eE(H) is monitored by M. We distinguish four cases:

  • Case 1: eE(G). Let e=(u,v). Since D is a Dominating Set of G, there are two subcases:

    • At least one of u and v must belong to D, therefore we assume w.l.o.g. that uD. Each path from v′′ to u must either pass through the vertex v or pass through the vertex v. The unique shortest path including v is trivially (v′′,v),(v,v),(v,u) and has length 3. Each path passing through v must contain at least four edges. Therefore, (u,v) is monitored by {v′′,u}, where both v′′ and u are in M since v′′L′′ and uD.

    • Neither u nor v is in D. First, we observe that u and v are dominated by two distinct vertices in D; otherwise, there would be an induced triangle in G, which is not allowed due to g(G)7. Let these two distinct vertices be {x,y}D. They have distance d(x,y) equal to 3 since, if this were not true, the edge (u,v) would not be monitored by the pair {x,y} due to the existence of a shortest path of length 4 that uses only edges in E(H)E(G). Finally, since g(G)7, it can be shown that there is no alternative shortest path of length 3 from x to y.

  • Case 2: eEL′′E. In this case, there is exactly one endpoint u of e that belongs to L. It follows that either e=(u′′,u) with u′′L′′ or e=(v,u). Notice that there is a unique shortest path from v to u′′ including the edges (v,v),(v,u),(u,u′′). This implies that the edge e is monitored by {v,u′′}, where both v and u′′L′′ are in M.

  • Case 3: eEL. Let e=(u,u) where u is the unique endpoint of e in V(G). Since D dominates all the vertices in V(G), either uD, and we let x=u, or uD and there exists some vertex xDN(u). There is a single shortest path from u′′ to x, and it traverses the edge (u,u).

  • Case 4: e=(v,v). All shortest paths from v to any other vertex in H must traverse e, and hence e is monitored, e.g., by all pairs {v,u} with uD. Note that there exists at least one vertex uv in M since |M|2.

The cardinality |M| is equal to the sum of the cardinality of MV(G) and the cardinality of MV(G), with (MV(G))(MV(G))=. Since |MV(G)| is equal to the size of the Dominating Set of G, namely k, and MV(G)=L′′{v}, we can conclude that:

|M|=|MV(G)|+|MV(G)|=k+|L′′|+|{v}|=k+|V(G)|+1.

Lemma 4.

Let M be a MEG-Set of H with size at most k+|V(G)|+1 (for a suitable value of k). Then, MV(G) is a Dominating Set of G with size at most k.

Proof.

Let M=M(L{v}) be the set obtained by removing the vertex v and all the vertices of L from M. Due to Lemma 2, M is a MEG-Set of G. Moreover, since (L{v})V(G)=, we can observe that MV(G)=MV(G). Let D=M(L′′{v}) be the set of vertices in the MEG-Set M that are in V(G). We prove that if vV(G), then either vD or N(v)D. Towards a contradiction, suppose that vD and no vertices in N(v) are in D. Since M is a MEG-Set of H, it monitors every edge in E(G)E(H). Consider an edge (u,v) with vN(u). (u,v) must be monitored by a pair of vertices x,y not in {u}N(u). It follows that the distance between x and y is at least four, but there is a path between x and y of length four that only uses edges in E(H)E(G); thus, the edge (u,v) cannot be monitored by the pair {x,y}, which is a contradiction. The above discussion shows that MV(G) is a Dominating Set of G. The size of such a Dominating Set is |MV(G)||MV(G)|=|M||MV(G)||M|(|L′′|+1)|M|(|V(G)|+1)k, where we used (L′′{v})MV(G), as ensured by Lemma 1.

Theorem 5.

The MEG-Set decision problem is 𝖭𝖯-Complete on graphs with apex 1.

Proof.

For each planar graph G with girth at least seven, it is possible to construct in polynomial time a graph H with apex 1, as discussed in this section. From Lemmas 3 and 4, there exists a Dominating Set D of G such that |D|k if and only if there exists a MEG-Set M of H such that |M|k+|V(G)|+1. Since the Dominating Set problem is 𝖭𝖯-Hard even for planar graphs with girth at least seven, this implies that the MEG-Set decision problem is 𝖭𝖯-Hard on graphs with apex 1.

4 Inapproximability of MEG-Set

We reduce from the Set Cover problem. A Set Cover instance =X,𝒮 is described as a set of η items X={x1,,xη} and a collection 𝒮={S1,,Sh} of h2 distinct subsets of X, such that each subset contains at least two items and each item appears in at least two subsets.222This can be guaranteed w.l.o.g. by repeatedly reducing the instance by applying the first applicable of the following two reduction rules. Rule 1: if there exists an item xi that is contained in a single subset Sj, then Sj belongs to all feasible solutions, and we reduce to the instance in which both Sj and xi have been removed. Rule 2: if there exists a subset Sj that contains a single element, then (due to Rule 1) there is an optimal solution that does not contain Sj, and we reduce to the instance in which Sj has been removed. Notice that this process can only decrease the values of η and h. The goal is that of computing a collection 𝒮𝒮 of minimum size such that Si𝒮Si=X.333We assume w.l.o.g. that i=1hSi=X, i.e., that a solution exists. It is known that, unless 𝖯=𝖭𝖯, all polynomial-time approximation algorithms for the Set Cover must have an approximation ratio of (1o(1))lnη when h=O(poly(η)) [18, 4]. Moreover, unless 𝖭𝖯𝖣𝖳𝖨𝖬𝖤(nO(loglogn)), the same inapproximability result holds even for hη [5].

Given an instance =X,𝒮 of Set Cover, we build an associated bipartite graph H whose vertex set V(H) is X𝒮 and such that H contains the edge (xi,Sj) if and only if xiSj. We define N=h+η.

Let k be an integer parameter, whose exact value will be chosen later, that satisfies 2k=O(poly(N)). We construct a graph G that contains k copies H1,,Hk of H as induced subgraphs. In the following, for any =1,,k, we denote by xi, and Sj, the vertices of H corresponding to the vertices xi and Sj of H, respectively. More precisely, we build G by starting with a graph that contains exactly the k copies H1,,Hk of H and augmenting it as follows (see Figure 2):

  • For each item xiX, we add two new vertices yi, yi along with the edge (yi,yi) and all the edges in {(xi,,yi)=1,,k};

  • We add all the edges (yi,yi) for all 1i<iη, so that the subgraph induced by y1,,yη is complete.

  • For each set Sj𝒮, we add two new vertices zj, zj along with the edge (zj,zj), and all the edges in {(Sj,,zj)=1,,k}.

Observe that the number n of vertices of G satisfies n=2h+2η+k(η+h)=(k+2)(η+h)=(k+2)N.

Figure 2: The graph G obtained by applying our reduction with k=2 to the Set Cover instance =X,𝒮 with η=5, h=4, S1={x1,x2,x3}, S2={x2,x3}, S3={x2,x4,x5}, and S4={x3,x5}. To reduce clutter, the edges of the clique induced by the vertices yi (in the gray area) are not shown.

Let Y={yii=1,,η}, Y={yii=1,,η}, Z={zjj=1,,h}, and Z={zji=1,,h}. Moreover, define L as the set of all vertices of degree 1 in G, i.e., L=YZ. By Lemma 1, the vertices in L belong to all MEG-Sets of G.

Lemma 6.

L monitors all edges having both endvertices in YYZZ.

Proof.

Observe that all shortest paths from yiL (resp. zjL) to any other vertex vL{yi} (resp. vL{zj}) must traverse the sole edge incident to yi (resp. zj), namely (yi,yi) (resp. (zj,zj)). Since |L|2, such a v always exists, and all edges incident to L are monitored by L.

The only remaining edges are those with both endpoints in Y. Let (yi,yi) be such an edge. Since the only shortest path between yi and yi in G is yi,yi,yi,yi, the pair {yi,yi} monitors (yi,yi).

Lemma 7.

Let 𝒮1,,𝒮k be k (not necessarily distinct) set covers of . The set M=L{Sj,Sj𝒮,1k} is a MEG-Set of G.

Proof.

Since LM, by Lemma 6, we only need to argue about edges with at least one endvertex in some H, with 1k. Let Sj𝒮, and consider any xiSj. Edge (Sj,,zj) is monitored by {zj,Sj,}. Edges (Sj,,xi,) and (xi,,yi) are monitored by {Sj,,yi}.

The only remaining edges with at least one endvertex in H are those incident to vertices Sj, with Sj𝒮𝒮. Consider any such Sj, let xi be an item in Sj, and let Sk𝒮 be any set such that xiSk (notice that both xi and Sk exist since sets are non-empty and 𝒮 is a set cover). Edge (Sj,,xi,) is monitored by {Sk,,zj}, which also monitors (Sj,,zj).

We say that a MEG-Set M is minimal if, for every vM, M{v} is not a MEG-Set. Lemma 2 ensures that any minimal MEG-Set M does not contain any of the vertices yi, for i=1,,η, or zj for j=1,,h. Hence, ML contains only vertices in =1kV(H). The following lemma characterizes the structure of minimal MEG-Sets of G.

Lemma 8.

Let M be a minimal MEG-Set of G. For every i=1,,η and every =1,,k, at least one of the following conditions is true: (i) xi,M; or (ii) there exists an index j such that xiSj and the set M contains Sj,.

Proof.

Let S(xi,) be the set of all Sj, such that xiSj. We show that no pair {u,v} with u,vM({xi,}S(xi,)) can monitor the edge (xi,,yi).

Notice that, since M is minimal, M does not contain any vertex yi, for i=1,,η, nor any vertex zj for j=1,,h.

Let λ{1,,h}{} (such a λ always exists since h2), and notice that any path P in G that has both endvertices in V(G)V(H) can always be transformed into a walk P with as many edges as P by replacing any occurrence of a vertex from copy H of H with the occurrence of the corresponding vertex from copy Hλ. Since P does not contain xi,, this implies that no pair {u,v} with u,vV(G)V(H) can monitor (xi,,yi).

The above discussion allows us to restrict ourselves to the situation in which at least one vertex of {u,v} belongs to V(H). We sat that a vertex of G is an item-vertex if it is some xi, with i=1,,η and =1,,k. Analogously, a vertex of G is a set-vertex if it is some Sj, with j=1,,h and =1,,k. We consider the following cases and, for each of them, we exhibit a shortest path P~ from u to v in G that does not traverse (xi,,yi):

Case 1: u is an item-vertex in H and v is a set-vertex.

In this case, u=xi, for some ii, and we distinguish the following sub-cases:

  • If v=Sj, and xiSj, then P~ consists of the edge (xi,,Sj,).

  • If v=Sj,, xiSj, and there exists some Sj′′ such that xiSj′′ and SjSj′′, then let xi′′SjSj′′. We choose P~=xi,,Sj′′,,xi′′,,Sj,.

  • If v=Sj,, xiSj, and there exists no Sj′′ such that xiSj′′ and SjSj′′, then let xi′′Sj (notice that xiSj), and choose P~=xi,,yi,yi′′,xi′′,,Sj,.

  • If v=Sj,, xiSj, and , then choose P~=xi,,Sj,,zj,Sj,.

  • If v=Sj,, xiSj, and , then let xi′′Sj (notice that xiSj) and choose P~=xi,,yi,yi′′,xi′′,,Sj,.

Case 2: u is an item-vertex in H and v is an item-vertex.

In this case, u=xi, for some ii, and we distinguish the following sub-cases:

  • If v=xi′′, with i′′i and there exists some set Sj such that xi,xi′′Sj, then choose P~=xi,,Sj,,xi′′,.

  • If v=xi′′, with i′′i and there is no set Sj such that xi,xi′′Sj, then choose P~=xi,,yi,yi′′,xi′′,.

  • If v=xi,′′ with ′′, then choose P~=xi,,yi,xi,′′.

  • If v=xi′′,′′ with i′′i and ′′, then choose P~=xi,,yi,yi′′,xi′′,′′.

Case 3: u is a set-vertex in H and v is a set-vertex.

In this case, u=Sj, for some j such that xi,Sj, and we distinguish the following sub-cases:

  • If v=Sj′′, and there exists some xi such that xiSjSj′′, then ii, and we pick P~=Sj,,xi,,Sj′′,.

  • If v=Sj′′,, SjSj′′=, and there exists some Sj′′′ such that SjSj′′′ and Sj′′Sj′′′, then choose any xiSjSj′′′ and any xi′′Sj′′Sj′′′. We pick P~=Sj,,xi,,Sj′′′,,xi′′,,Sj′′,.

  • If v=Sj′′,, SjSj′′=, and there is no Sj′′′ such that SjSj′′′ and Sj′′Sj′′′, then choose xiSj{xi}, xi′′Sj′′{xi}, and pick P~=Sj,,xi,,yi,yi′′,xi′′,,Sj′′,.

  • If v=Sj, with , then we pick P~=Sj,,zj,Sj,.

  • If v=Sj′′, with j′′j and , and there exists some item xiSjSj′′, then we choose P~=Sj,,zj,Sj,,xi,,Sj′′,.

  • If v=Sj′′, with j′′j and , and SjSj′′=, then let xiSj{xi}, xi′′Sj′′{xi}. We pick P~=Sj,,xi,,yi,yi′′,xi′′,,Sj′′,.

Case 4: u is an item-vertex in H and vL.

In this case, u=xi, for some ii, and we distinguish the following sub-cases:

  • If v=yi, then P~=xi,,yi,yi.

  • If v=yi′′ with i′′i, then P~=xi,,yi,yi′′,yi′′.

  • If v=zj and xiSj, then pick P~=xi,,Sj,,zj,zj.

  • If v=zj, xiSj, and there exists some Sj′′ for which SjSj′′, then let xi′′SjSj′′ and choose P~=xi,,Sj′′,,xi′′,,Sj,,zj,zj.

  • If v=zj, xiSj, and there is no Sj′′ for which SjSj′′, then let xi′′Sj{xi}. We choose P~=xi,,yi,yi′′,xi′′,,Sj,,zj,zj.

Case 5: u is a set-vertex in H and vL.

In this case, u=Sj, for some j such that xi,Sj, and we distinguish the following sub-cases:

  • If v=yi with xiSj, then ii, and we choose P~=Sj,,xi,,yi,yi.

  • If v=yi with xiSj, then let xi′′Sj and choose P~=Sj,,xi′′,,yi′′,yi,yi.

  • If v=zj, then P~=Sj,,zj,zj.

  • If v=zj′′ with j′′j and SjSj′′, then let xiSjSj′′ and choose P~=Sj,,xi,,Sj′′,,zj′′,zj′′.

  • If v=zj′′ with j′′j, SjSj′′=, and there exists some Sj′′′ such that SjSj′′′ and Sj′′Sj′′′, then let xiSjSj′′′ and xi′′Sj′′Sj′′′. We choose P~=Sj,,xi,,Sj′′′,,xi′′,,Sj′′,,zj′′,zj′′.

  • If v=zj′′ with j′′j, SjSj′′=, and there is no Sj′′′ such that SjSj′′′ and Sj′′Sj′′′, then let xiSj and xi′′Sj′′{xi}, and choose P~=Sj,,xi,,yi,yi′′,xi′′,,Sj′′,,zj′′,zj′′.

Lemma 9.

Given a MEG-Set M of G, we can compute in polynomial time a MEG-Set M of G such that |M||M| and, for every =1,,k, the set 𝒮={Sj𝒮Sj,M} is a set cover of .

Proof.

Let M′′ be a minimal MEG-Set of G that is obtained from M by possibly discarding some of the vertices. Clearly, |M′′||M| and M′′ can be computed in polynomial time. Moreover, by Lemma 8, for every i=1,,η and every =1,,k, M′′ contains xi, or some Sj, such that Sj covers xi. We compute M from M′′ by replacing each xi,M′′ with Sj,, where Sj𝒮 is any set that covers xi. As a consequence, for every =1,,k, the set 𝒮={Sj𝒮Sj,M} is a set cover of . Moreover, since M′′ contains all vertices in L by Lemma 1, so does M. Then, Lemma 7 implies that M is a MEG-Set of G.

Lemma 10.

Let α, c, and ε be constants of choice satisfying α>0, c1, and 0<ε14c2(α+1)2. Any polynomial-time (αlnn)-approximation algorithm for the minimum MEG-Set problem implies the existence of a polynomial-time ((2αc+ε)lnη)-approximation algorithm for Set Cover instances with η items and hηc sets.

Proof.

Consider an instance =X,𝒮 of Set Cover with |X|=η and |𝒮|=hηc. Let h be the size of an optimal set cover of .

In the rest of the proof, we assume w.l.o.g. that N4, η21/ε, and h4αε. Indeed, if any of the above three conditions do not hold, we can solve in polynomial time using a brute-force search.

We now construct the graph G with n=(k+2)NN2 vertices by making k=N2 copies of H. Next, we run the (αlnn)-approximation algorithm to compute a MEG-Set M of G, and we use Lemma 9 to find a MEG-Set M with |M||M| that contains k set covers 𝒮1,,𝒮k in polynomial time. Among these k set covers, we output one 𝒮 of minimum size.

To analyze the approximation ratio of the above algorithm, let M be an optimal MEG-Set of G. Lemma 7 ensures that |M||L|+kh=N+kh, and hence:

|M||M|(αlnn)|M|α(N+kh)lnn=α(N+kh)lnN2=2αkhlnN+2αNlnN.

Therefore, we have:

|𝒮| |M|k2αhlnN+2αNlnNk2αhlnN+4αlnN=(2α+4αh)hlnN
(2α+ε)hlnN(2α+ε)hln(h+η)(2α+ε)hln(2ηc)
(2α+ε)h(1+ε)clnη=(2αc+εc(2α+ε+1))hlnη(2αc+ε)hlnη,

where we used 2α+ε+12(α+1)1cϵ, which follows from our hypothesis ε14c2(a+1)2.

It is known that, unless 𝖯=𝖭𝖯, there exists a constant c1 such that all polynomial-time approximation algorithms for instances of Set Cover having η items and hηc sets must have an approximation factor of (1o(1))lnη [18, 4]. Then, Lemma 10 with any constant α<12c and ε=(12αc)2 implies that no polynomial-time (αlnn)-approximation algorithm for MEG-Set can exist, unless 𝖯=𝖭𝖯.

Similarly, we can choose c=1 [5] to rule out any polynomial-time algorithm with an approximation of αlnn for MEG-Set, where α is a constant strictly smaller than 12, unless 𝖭𝖯𝖣𝖳𝖨𝖬𝖤(nO(loglogn)).

Theorem 11.

All polynomial-time approximation algorithms for MEG-Set must have an approximation factor of Ω(logn), unless 𝖯=𝖭𝖯. Moreover, unless 𝖭𝖯𝖣𝖳𝖨𝖬𝖤(nO(loglogn)), the approximation factor must be at least (12ε)lnn for any constant ε>0.

5 Approximation algorithms

This section is devoted to designing our approximation algorithms. It is convenient to work on a generalization of the MEG-Set problem, in which each edge e of G has an associated non-negative weight w(e) and shortest paths are computed w.r.t. these weights. Moreover, each vertex v of G has a binary cost c(v){0,1}, and the input additionally specifies a subset E of the edges in E. The goal is to find a set of vertices M that monitors all edges in E and has minimum cost, defined as c(M)=vMc(v). We name this generalization GMEG-Set.

Notice that the case in which all vertex costs are 1, all edges weights are 1, and E=E matches the standard definition of MEG-Set, hence any approximation algorithm for GMEG-Set (whose approximation ratio is computed w.r.t. the cost of the returned set) also provides an approximation algorithm for MEG-Set.

One can observe that a GMEG-Set exists if and only if, for every edge (u,v)E, the shortest path between u and v is unique and consists of the sole edge (u,v). Indeed, if this condition is met, the set V is a trivial solution; otherwise, no subset of vertices can monitor edge (u,v). As a consequence, in the rest of this section, we restrict ourselves to instances of GMEG-Set that satisfy the above property, which can be checked in polynomial time.

In the rest of this section, we first show a simple generalization of the O(nlogn)-approximation algorithm for MEG-Set [2, 1, 7] to GMEG-Set, and then we use it as a building block to develop a more involved algorithm that provides good approximate solutions for GMEG-Set on hereditary graph classes that admit small balanced vertex-separators.

5.1 A simple approximation algorithm for GMEG-Set

We start with the description of an 2c(M)lnn-approximation algorithm for GMEG-Set, where c(M) denotes the cost of an optimal GMEG-Set, that will be useful in the sequel.

For technical convenience, we assume that all optimal solutions to the GMEG-Set instance select at least two vertices with non-zero cost.444Otherwise, there is at most one vertex with non-zero cost in an optimal solution, and such a vertex can be guessed in polynomial time.

Let Z be the set of all vertices of cost 0. Observing that it is possible to check in polynomial time whether an edge of E is monitored by Z, we construct an instance of Set Cover in which the items are exactly the edges in E that are not monitored by Z. The instance contains a set Sp for each (unordered) pair p={u,v} of distinct vertices u,v in VZ. The set Sp contains all items e that are monitored by Zp (notice that an item in Sp is not necessarily monitored by p).

Next, we compute a (ln|E|)-approximate solution 𝒮 for such an instance in polynomial time. This can be done by solving instances up to a constant size by brute force, while larger instances can be handled using the well-known greedy algorithm for Set Cover [15], which has an approximation ratio of lnηlnlnη+O(1), where η is the number of items [19]. We return the GMEG-Set M obtained by selecting all vertices in Z together with all vertices involved in at least one pair p such that Sp𝒮, i.e., M=ZSp𝒮p.

Observe that, if M is an optimal GMEG-Set, then the collection containing all sets Sp for all unordered pairs p of vertices in MZ is a feasible solution 𝒮′′ to the Set Cover instance. Since c(v){0,1} for each vV(G), if 𝒮 is a minimum-cost set cover, we have |𝒮|(|MZ|2)<|MZ|22=c(M)22. Then:

c(M)2|𝒮|2|𝒮|ln|E|<c(M)2ln|E|2c(M)2lnn.

We have proved the following lemma.

Lemma 12.

There exists a polynomial-time (2c(M)lnn)-approximation algorithm for GMEG-Set.

By observing that a trivial upper bound on the approximation ratio of M is c(V)c(M), we have that the overall approximation ratio is upper bounded by min{2c(M)lnn,c(V)c(M)}2c(V)lnn, since the above minimum is maximized when c(M)=c(V)2lnn.

Lemma 13.

There exists a polynomial-time 2c(V)lnn-approximation algorithm for GMEG-Set.

Lemma 13 implies the existence of a polynomial-time O(nlogn)-approximation algorithm for MEG-Set because c(V)=n.

5.2 An approximation algorithm based on balanced graph separators

In this section, we present our main positive result. We start by giving some preliminary definitions and proving some useful structural properties of GMEG-Sets.

5.2.1 Some structural properties

Fix some instance of GMEG-Set with graph G, vertex costs c(), edge weights w(), and set of edges to be monitored E. We refer to a subset of vertices of G as a cluster and, given a cluster C, we define the boundary δC of C as NG(C)C. We say that a path π between two vertices u,v in G is a C-bypass if all the following conditions are satisfied: (i) u,vδC, (ii) π is a shortest path in G, (iii) π consists of at least two edges, and (iv) all internal vertices of π belong to V(CδC). Notice that the existence of a C-bypass between two vertices u,v in G implies that (u,v)E.

Given a cluster C, we define the projection of C as the following instance of GMEG-Set. The instance’s graph H has a vertex set consisting of all vertices in CδC, where vertices in C retain their original cost in G, while vertices in δC have a cost of 0. The edge set of H consists of all edges in G[CδC] with their original weight in G, plus some additional projection edges. More precisely, for each pair of distinct vertices u,vδC with at least one C-bypass between them, we add a projection edge e=(u,v) of weight dG(u,v), and we associate e with an arbitrarily selected C-bypass be between u and v. We refer to H as the projection graph of C, and we use EC to denote the set of all non-projection edges of H. The edges of H to be monitored are all those in E(H)E. See Figure 3 for an example.

Figure 3: (a) The graph G of an instance of GMEG-Set and a cluster C. Vertices in the boundary δC are shown in bold. Three C-bypasses are highlighted in red, blue, and green, respectively. All edge weights are unitary and are not shown. (b) The graph of the projection H of C. There are three projection edges, highlighted in red, blue, and green, corresponding to the C-bypass shown with the same color in (a). The number next to a projection edge represents its weight, while non-projection edges have unit weight (not shown). Gray vertices form a GMEG-Set of H. The vertices in the boundary are shown in bold and have a cost of 0. Notice how the gray vertices also monitor all non-projection edges in G.

We provide different structural properties of walks in G and the projection graph H of a cluster C. To distinguish between the weights of such walks, we will add the graph as a subscript to the weight function.

Lemma 14.

Let C be a cluster, and let H be the projection graph of C. The following claims hold for any u,vCδC.

  1. (a)

    For every walk π between u and v in H, there exists a walk π between u and v in G such that wH(π)=wG(π) and E(π)EC=E(π)EC;

  2. (b)

    For every shortest path π between u and v in G, there exists a walk π between u and v in H such that wG(π)=wH(π) and E(π)EC=E(π)EC.

Proof.

We start by proving (a). Given a walk π between u and v in H, we build the walk π from u to v in G from π by replacing each projection edge eπ with its associated C-bypass be. By construction, E(π)EC=E(π)EC. Moreover, for each edge eEC, wH(e)=wG(e) by construction, while for each projection edge e, wH(e)=wG(be). Therefore, wH(π)=wG(π).

We now prove (b). Given a shortest path π between u and v in G, we decompose π into an alternating sequence of walks π1,π^1,π2,π^2,,πk, where πi is a maximal subpath of π that contains only edges in EC, and π^i is a maximal subpath of π that contains only edges not in EC. Let ui,vi be the endvertices of π^i. We build a walk π from ui to vi in H from π by replacing each π^i with the projection edge ei=(ui,vi) associated with a C-bypass bei between ui and vi. By construction, E(π)EC=E(π)EC. Moreover, for each edge eEC, wH(e)=wG(e) by construction. Now, since π is a shortest path from u to v in G, π^i is indeed a C-bypass in G, which implies wH(ei)=wG(π^i). Therefore, wG(π)=wH(π).

Corollary 15.

Let C be a cluster, and let H be the projection graph of C. The following claims hold for any u,vCδC.

  1. (a)

    For every shortest path π between u and v in H, there exists a shortest path π between u and v in G such that wH(π)=wG(π) and E(π)EC=E(π)EC;

  2. (b)

    For every shortest path π between u and v in G, there exists a shortest path π between u and v in H such that wG(π)=wH(π) and E(π)EC=E(π)EC.

Proof.

We start by proving (a). Let π be a shortest path between u and v in H. By Lemma 14 (a), there exists a walk π between u and v in G such that wH(π)=wG(π) and E(π)EC=E(π)EC. We now argue that π is actually a shortest path in G. Suppose, towards a contradiction, that there exists some path π′′ between u and v in G such that wG(π′′)<wG(π). By Lemma 14 (b), this implies the existence of a walk π′′′ between u and v in H such that wH(π′′′)=wG(π′′), yielding the contradiction wH(π)=wG(π)>wG(π′′)=wH(π′′′).

We now prove (b). Let π be a shortest path between u and v in G. By Lemma 14 (b), there exists a walk π between u and v in H such that wG(π)=wH(π) and E(π)EC=E(π)EC. We now argue that π is actually a shortest path in H. Suppose, towards a contradiction, that there exists some path π′′ between u and v in H such that wH(π′′)<wH(π). By Lemma 14 (a), this implies the existence of a walk π′′′ between u and v in G such that wG(π′′′)=wH(π′′), yielding the contradiction wG(π)=wH(π)>wH(π′′)=wG(π′′′).

Corollary 16.

Let C be a cluster, and let H be the projection graph of C. Let eEC be a non-projection edge in H, and let u,v be a pair of vertices in H. Edge e is monitored by the pair u,v in G if and only if it is monitored by u,v in H.

Proof.

Assume that e is monitored by the pair u,v in G, and let π be a shortest path between u and v in G. By Corollary 15 (b), there exists a shortest path π between u and v in H that traverses e. We now argue that all shortest paths between u and v in H contain e. Indeed, if H contained a shortest path π′′ between u and v avoiding e, then Corollary 15 (a) would imply the existence of a shortest path between u and v avoiding e in G, i.e., u,v would not monitor e in G.

Assume now that e is monitored by the pair u,v in H, and let π be a shortest path between u and v in H. By Corollary 15 (a), there exists a shortest path π between u and v in G that traverses e. We now argue that all shortest paths between u and v in G contain e. Indeed, if G contained a shortest path π′′ between u and v avoiding e, then Corollary 15 (b) would imply the existence of a shortest path between u and v avoiding e in H, i.e., u,v would not monitor e in H.

Lemma 17.

Let C be a cluster, and let M be a GMEG-Set of G. Then, (MC)δC is a GMEG-Set for the projection of C.

Proof.

Consider any edge eEC that belongs to E, let u,v be a pair of vertices in M that monitors e in G, and let π be a shortest path from u to v in G. Let u (resp. v) be the last vertex in (MC)δC encountered during a traversal of the subpath πu (resp. πv) of π from u (resp. v) to the closest endvertex of e. Observe that u (resp. v) exists since either uCδC, or πu (resp. πv) has the endvertex u (resp. v) that is not in CδC and the other endvertex in CδC, hence it must traverse at least one vertex in δC.

Since the subpath of π from u to v contains edge e, the pair u,v monitors e in G. Hence, by Corollary 16, u,v monitors e in the projection graph of C.

Lemma 18.

Let C be a cluster. Any GMEG-Set for the projection of C monitors all edges in ECE in G.

Proof.

Let M be a GMEG-Set for the projection of C, and let H be the corresponding graph. We consider a generic edge eECE and we prove that e is also monitored by M in G. Let u,vM be a pair of vertices that monitors e in H. By Corollary 16, the pair u,v monitors e in G.

5.2.2 Algorithm description

In this section, we describe our main approximation algorithm that, as we will show, computes better than the (2c(V)lnn)-approximate solutions for the class of hereditary graphs that admit small balanced vertex-separators. Before delving into the details of the algorithm, we provide some basic definitions.

Definition 19.

Given α(0,12), an α-balanced vertex-separator of a graph G=(V,E) is a partition of V into three non-empty sets S,A,B, such that (i) each path from a vertex in A to a vertex in B traverses at least one vertex in S, and (ii) min{|A|,|B|}α|V|. The size of the separator is |S|.

We say that a class 𝒢 of graphs has efficiently computable α-balanced separators of size O(nβ) if (i) 𝒢 is hereditary, i.e., given a graph G𝒢, all induced subgraphs of G are in 𝒢, (ii) there are constants n0,α>0, β01, and β0 such that any graph G𝒢 with nn0 vertices admits an α-balanced vertex-separator of size at most β0nβ, and (iii) such a separator can be found in polynomial time. We say that a graph is α-non-separable if it admits no α-balanced vertex-separator. Similarly, we say that a cluster C of G is α-non-separable if G[C] is α-non-separable. Notice that if a class of graphs 𝒢 has efficiently computable α-balanced separators, G𝒢, and C is an α-non-separable cluster of G, then |C|=O(1).

We consider a class 𝒢 with efficiently computable α-balanced separators of size β0|V(G)|β for some constants β01 and β0, and we restrict our attention (w.l.o.g.) to instances of GMEG-Set whose input graph G=(V,E) belongs to 𝒢 and satisfies c(V)2.555Otherwise, when c(V)1, an optimal solution consists either of all vertices of cost 0, or of all vertices of cost 0 plus the sole vertex of cost 1. Our algorithm works in two phases.

First phase.

In the first phase, we compute a hierarchical decomposition of G into clusters that are pairwise vertex-disjoint. We note that such a decomposition will not result in a partition of the vertices of G, i.e., some vertices will not be assigned to any of the clusters, and we refer to the vertices that are left unassigned as crossing vertices. Our decomposition relies on recursively computing α-balanced vertex-separators of G and guarantees that any path between vertices of different clusters traverses at least one crossing vertex. It follows that all the vertices in the boundaries of the returned clusters are crossing vertices.

Let G be the induced subgraph of G that contains all (and only) the vertices having non-zero cost. We build a rooted tree T in which each vertex u of T is associated with some subgraph Gu of G and with an instance of GMEG-Set Hu. The root r of T is associated with Gr=G and with the projection Hr of V(Gr) (w.r.t. the input instance of GMEG-Set). A generic vertex u of T is a leaf if Hu admits a solution of cost 0, or if Gu is α-non-separable. Otherwise, u has exactly two children a,b in T corresponding to the subgraphs Ga=Gu[A] and Gb=Gu[B] induced by the sets A,B of an α-balanced vertex-separator Su,A,B of Gu. The instances of GMEG-Set Ha and Hb are the projections of V(Ga) and V(Gb) w.r.t. the instances Hu, respectively. See Figure 4 for an example.

Figure 4: The tree T representing a possible hierarchical decomposition of the graph shown in the root vertex for the parameters β0=1, β=12, α=14. Vertices in a separator are shown in gray in the corresponding cluster. Black vertices in a leaf cluster u of T form an optimal solution to instance Hu (not shown) when combined with the vertices of cost 0 resulting from the projection. Observe that the instance corresponding to the right child of the root admits a solution of cost 0. Gray and black vertices in an internal cluster u form a feasible GMEG-Set of the corresponding instance Hu (not shown) when combined with the vertices of cost 0.
Second phase.

In the second phase of our algorithm, we visit the tree in a bottom-up fashion and, for each examined vertex u, we compute a ρ(hu,nu)-approximate solution for the projection Hu of V(Gu). Here, ρ(hu,nu) is a function that depends on the number nu=|V(Gu)| of vertices in Gu and, possibly, on the height hu of u in T.666The height of vertex u in T is the height of the subtree of T rooted in u, i.e., the maximum number of edges in the longest path from u to a (not necessarily proper) descendant of u. Observe that all vertices in Gu have cost 1 w.r.t. the cost function cu of Hu, i.e., nu=cu(V(Gu)).

In detail, if u is a leaf in T, then either there exists an optimal GMEG-Set of Hu with cost 0, or |V(Gu)|=O(1), and we can find an optimal GMEG-Set of Hu in constant time by brute force (possibly both). Regardless of the case, we have an optimal solution for Hu, i.e., a ρ(0,nu)-approximation for ρ(0,nu)=1.

When the examined vertex u of T is a generic internal vertex at height h having a and b as children, we compute a GMEG-Set Mu for Hu by choosing the set of smallest cost between (i) a GMEG-Set Mu obtained as the union of a ρ(hu1,na)-approximate GMEG-Set Ma for Ha with a ρ(hu1,nb)-approximate GMEG-Set Mb for Hb, and (ii) a (2cu(M)ln|V(Gu)|)-approximate solution computed using the algorithm of Section 5.1 (see Lemma 12), where M denotes an optimal solution for Hu and cu is the cost function of Hu. The next lemma provides an upper bound on the cost of cu(Mu).

Lemma 20.

Let u be an internal vertex at height hu with children a and b. If ρ(hu1,x) is monotonically non-decreasing w.r.t. x, Ma is a ρ(hu1,na)-approximate GMEG-Set for Ha, and Mb is a ρ(hu1,nb)-approximate GMEG-Set for Hb, then Mu is a GMEG-Set for Hu with cu(Mu)|Su|+cu(Mu)ρ(hu1,(1α)nu), where Mu is an optimal solution for Hu.

Proof.

Let Ma=(MV(Ga))δV(Ga) (resp. Mb=(MV(Gb))δV(Gb)), where the boundary is w.r.t. the instance Hu. By Lemma 17, Ma and Mb are GMEG-Set for Ha and Hb, respectively. Then, ca(Ma)=ca(MV(Ga))+ca(δV(Ga))=ca(MV(Ga))=cu(MV(Ga)), and a similar derivation shows that cb(Mb)=cu(MV(Gb)).

Since Ma and Mb are a ρ(hu1,na)- and a ρ(hu1,nb)-approximation of Ha and Hb, respectively, we have ca(Ma)cu(MV(Ga))ρ(hu1,na) and cb(Mb)cu(MV(Gb))ρ(hu1,nb).

Let Eu be the set of edges to be monitored in Hu. By Lemma 18, Ma monitors all edges of Eu in Gu[V(Ga)δV(Ga)], and Mb monitors all edges of Eu in Gu[V(Gb)δV(Gb)]; therefore, MaMb is a GMEG-Set for Hu. Since MaMbMu, we have that Mu is a GMEG-Set of Hu of cost:

cu(M) cu(MaMb)cu(Su)+cu(MaS)+cu(MbS)|Su|+ca(Ma)+cb(Mb)
|Su|+cu(MaV(Ga))ρ(hu1,na)+cu(MbV(Gb))ρ(hu1,nb)
|Su|+(cu(MaV(Ga))+cu(MbV(Gb)))ρ(hu1,(1α)nu)
|Su|+cu(M)ρ(hu1,(1α)nu).

The following two lemmas upper bound the approximation ratio achieved by Mu for the instance Hu.

Lemma 21.

Let ρ(h,x)=xβ/22β0lnn1(1α)β/2. If β>0, then Mu is a ρ(hu,nu)-approximate GMEG-Set for Hu.

Proof.

The proof is by induction on hu. The claim is trivially true for hu=0 since ρ(0,nu)=12ln2nuβ0lnn1(1α)β/2. Therefore, we assume that the claim holds for hu10 and we prove that it holds for hu. Consider a vertex u at height hu, and let a and b be its two children, and let Su be the corresponding separator of Gu. Let M be an optimal GMEG-Set for Hu. By Lemma 20, we have:
c(M)|Su|+c(M)ρ(hu1,(1α)nu)β0nuβ+c(M)(1α)β/2nuβ/22β0lnn1(1α)β/2.

Since the returned solution is the one of minimum cost between Mu and a solution with approximation ratio 2c(M)ln|V(Gu)|2c(M)lnn, the resulting approximation ratio is:

min{β0nuβc(M)+(1α)β/2nuβ/22β0lnn1(1α)β/2,2c(M)lnn}
min{β0nuβc(M),2c(M)lnn}+(1α)β/2nuβ/22β0lnn1(1α)β/2
2β0lnnnuβ/2+(1α)β/2nuβ/22β0lnn1(1α)β/2
=2β0lnnnuβ/2(1+(1α)β/21(1α)β/2)=nuβ/22β0lnn1(1α)β/2

where, in the second inequality, we use the fact that min{β0nuβc(M),2c(M)lnn} is maximized for β0nuβc(M)=2c(M)lnn, i.e., when c(M)=β0nuβ2lnn.

Lemma 22.

Let ρ(h,x)=(h+1)2β0lnn. If β=0, then Mu is a ρ(hu,nu)-approximate GMEG-Set for Hu.

Proof.

The proof is by induction on h. The claim is trivially true for h=0 since ρ(0,nu)=12ln2(hu+1)nuβ0lnn. Therefore, we assume that the claim holds for hu10 and we prove that it holds for hu. Consider a vertex u at height hu, let a and b be its two children, and let Su be the corresponding separator of Gu. Let M be an optimal solution for Hu. By Lemma 20, we have:

c(M)|Su|+c(M)ρ(hu1,(1α)n)β0nuβ+c(M)hu2β0lnn.

Since the returned solution is the one of minimum cost between Mu and a solution with approximation ratio 2c(M)ln|V(Gu)|2c(M)lnn, the resulting approximation ratio is:

min{β0c(M)+hu2β0lnn,2c(M)lnn}min{β0c(M),2c(M)lnn}+hu2β0lnn
2β0lnn+hu2β0lnn=(hu+1)2β0lnn,

where we used the fact that min{β0c(M),2c(M)lnn} is maximized for c(M)=β02lnn.

We can finally state the main results of this section.

Theorem 23.

There exists a polynomial-time approximation algorithm for GMEG-Set with an approximation ratio of O(c(V)β/2logn) if β>0 and an approximation ratio of O(logc(V)logn) if β=0.

Proof.

We start by arguing that Mr achieves the claimed approximation ratios for Hr. When β>0, this follows directly from Lemma 21 and from the fact that Gr has nr=c(V) vertices. Regarding the case β=0, if u is the parent of v, then nv(1α)nu. Then, the tree T has height at most log11αnr=logc(V)log11α, and Lemma 22 implies that the achieved approximation is at most (1+logc(V)log11α)2β0lnn.

To obtain the claimed approximations for the input instance of GMEG-Set, let Z be the set of vertices having cost 0 in such instance, and consider M=MrZ. Since c(M)=c(Mr), c(V)=c(V(G)), and nnr, the claim on the approximation trivially holds, and we only need to argue that M is indeed a GMEG-Set.

By Lemma 18, Mr monitors, in G, all edges of E that belong to V(G)δV(G). Hence, if V(G)δV(G)=V(G), we are done. Otherwise, let A=V(G)(V(G)δV(G)), and let HA be the projection of A. Since AZ, the set Z is a GMEG-Set for HA, and by Lemma 18, Z monitors, in G, all edges of E that belong to V(A)δV(A). Hence, AMrZMr monitors all edges in E, i.e., it is a GMEG-Set.

The above theorem implies the following approximability results for GMEG-Set (and for MEG-Set, where c(V)=n):

Corollary 24.

GMEG-Set is approximable in polynomial time on:

  • planar graphs, with an approximation ratio of O(c(V)14logn) using the balanced separators of size O(n) shown in [16];

  • graphs with bounded treewidth, with an approximation ratio of O(logc(V)logn), using the separator induced by a centroid bag of the corresponding tree decomposition [3, Sections 12.3 and 12.4];

  • graphs with constant genus, with an approximation ratio of O(c(V)14logn) using the balanced separators of size O(n) shown in [11];

  • graphs with apex k=O(n1/4), with an approximation ratio of O(c(V)14logn), since it is possible to find, in polynomial time, a set S of O(k) vertices such that G[V(G)S] is planar [14].

References

  • [1] Davide Bilò, Giordano Colli, Luca Forlizzi, and Stefano Leucci. On the inapproximability of finding minimum monitoring edge-geodetic sets (short paper). In Ugo de’Liguoro, Matteo Palazzo, and Luca Roversi, editors, Proceedings of the 25th Italian Conference on Theoretical Computer Science, Torino, Italy, September 11-13, 2024, volume 3811 of CEUR Workshop Proceedings, pages 219–224. CEUR-WS.org, 2024. URL: https://ceur-ws.org/Vol-3811/paper110.pdf.
  • [2] Giordano Colli. Monitoring graph edges via shortest paths: computational complexity and approximation algorithms. Bachelor’s thesis, December 2023. Publicly accessible version: https://arxiv.org/abs/2506.12021. URL: https://hdl.handle.net/20.500.12319/14489.
  • [3] Reinhard Diestel. Graph Theory, 5th Edition. Graduate texts in mathematics. Springer, 2018.
  • [4] Irit Dinur and David Steurer. Analytical approach to parallel repetition. In David B. Shmoys, editor, Symposium on Theory of Computing, STOC 2014, New York, NY, USA, May 31 - June 03, 2014, pages 624–633. ACM, 2014. doi:10.1145/2591796.2591884.
  • [5] Uriel Feige. A threshold of ln n for approximating set cover. J. ACM, 45(4):634–652, 1998. doi:10.1145/285055.285059.
  • [6] Florent Foucaud, Clara Marcille, Zin Mar Myint, R. B. Sandeep, Sagnik Sen, and S. Taruni. Bounds and extremal graphs for monitoring edge-geodetic sets in graphs. Discret. Appl. Math., 366:106–119, 2025. doi:10.1016/J.DAM.2024.12.032.
  • [7] Florent Foucaud, Clara Marcille, R. B. Sandeep, Sagnik Sen, and S Taruni. Algorithms and complexity for monitoring edge-geodetic sets in graphs, 2024. doi:10.48550/arXiv.2409.19067.
  • [8] Florent Foucaud, Pierre-Marie Marcille, Zin Mar Myint, R. B. Sandeep, Sagnik Sen, and S. Taruni. Monitoring edge-geodetic sets in graphs: Extremal graphs, bounds, complexity. In Subrahmanyam Kalyanasundaram and Anil Maheshwari, editors, Algorithms and Discrete Applied Mathematics - 10th International Conference, CALDAM 2024, Bhilai, India, February 15-17, 2024, Proceedings, volume 14508 of Lecture Notes in Computer Science, pages 29–43. Springer, 2024. doi:10.1007/978-3-031-52213-0_3.
  • [9] Florent Foucaud, Krishna Narayanan, and Lekshmi Ramasubramony Sulochana. Monitoring edge-geodetic sets in graphs. In Amitabha Bagchi and Rahul Muthu, editors, Algorithms and Discrete Applied Mathematics - 9th International Conference, CALDAM 2023, Gandhinagar, India, February 9-11, 2023, Proceedings, volume 13947 of Lecture Notes in Computer Science, pages 245–256. Springer, 2023. doi:10.1007/978-3-031-25211-2_19.
  • [10] Florent Foucaud, Arti Pandey, and Kaustav Paul. Characterizing optimal monitoring edge-geodetic sets for some structured graph classes, 2025. doi:10.48550/arXiv.2503.06086.
  • [11] John R. Gilbert, Joan P. Hutchinson, and Robert Endre Tarjan. A separator theorem for graphs of bounded genus. J. Algorithms, 5(3):391–407, 1984. doi:10.1016/0196-6774(84)90019-1.
  • [12] John Haslegrave. Monitoring edge-geodetic sets: Hardness and graph products. Discret. Appl. Math., 340:79–84, 2023. doi:10.1016/j.dam.2023.06.033.
  • [13] Russell Impagliazzo and Ramamohan Paturi. On the complexity of k-sat. J. Comput. Syst. Sci., 62(2):367–375, 2001. doi:10.1006/JCSS.2000.1727.
  • [14] Bart M. P. Jansen and Michal Wlodarczyk. Lossy planarization: a constant-factor approximate kernelization for planar vertex deletion. In Stefano Leonardi and Anupam Gupta, editors, STOC ’22: 54th Annual ACM SIGACT Symposium on Theory of Computing, Rome, Italy, June 20 - 24, 2022, pages 900–913. ACM, 2022. doi:10.1145/3519935.3520021.
  • [15] David S. Johnson. Approximation algorithms for combinatorial problems. In Alfred V. Aho, Allan Borodin, Robert L. Constable, Robert W. Floyd, Michael A. Harrison, Richard M. Karp, and H. Raymond Strong, editors, Proceedings of the 5th Annual ACM Symposium on Theory of Computing, April 30 - May 2, 1973, Austin, Texas, USA, pages 38–49. ACM, 1973. doi:10.1145/800125.804034.
  • [16] Richard J. Lipton and Robert Endre Tarjan. A separator theorem for planar graphs. SIAM Journal on Applied Mathematics, 36(2):177–189, 1979. doi:10.1137/0136016.
  • [17] Rongrong Ma, Zhen Ji, Yifan Yao, and Yalong Lei. Monitoring-edge-geodetic numbers of radix triangular mesh and sierpiński graphs. Int. J. Parallel Emergent Distributed Syst., 39(3):353–361, 2024. doi:10.1080/17445760.2023.2294369.
  • [18] Dana Moshkovitz. The projection games conjecture and the np-hardness of ln n-approximating set-cover. Theory Comput., 11:221–235, 2015. doi:10.4086/TOC.2015.V011A007.
  • [19] Peter Slavík. A tight analysis of the greedy algorithm for set cover. J. Algorithms, 25(2):237–254, 1997. doi:10.1006/JAGM.1997.0887.
  • [20] Ao Tan, Wen Li, Xiumin Wang, and Xin Li. Monitoring edge-geodetic numbers of convex polytopes and four networks. Int. J. Parallel Emergent Distributed Syst., 38(4):301–312, 2023. doi:10.1080/17445760.2023.2220143.
  • [21] Xin Xu, Chenxu Yang, Gemaji Bao, Ayun Zhang, and Xuan Shao. Monitoring-edge-geodetic sets in product networks. Int. J. Parallel Emergent Distributed Syst., 39(2):264–277, 2024. doi:10.1080/17445760.2024.2301929.
  • [22] Igor E. Zvervich, Vadim E. Zverovich, Igor Zverovich, and Vadim Zverovich. An induced subgraph characterization of domination perfect graphs. Journal of Graph Theory, 20:375–395, 1995. doi:10.1002/jgt.3190200313.