alphaFeedback

WorksComputer Science

Layering and reverse extension for weighted kk-path vertex cover

AI contributions
Not recorded for this paper
View details

Abstract

We study the weighted kk-path vertex cover problem for any fixed integer k≥2k \ge 2, in which a vertex non-negatively weighted simple graph G=(V,E)G = (V, E) is given and one wants to find a minimum-weight vertex subset C⊆VC \subseteq V such that every simple path on kk vertices in GG contains at least one vertex of CC. The problem generalizes the classic weighted vertex cover problem, that is, k=2k = 2, and it admits a kk-approximation algorithm of Hochbaum~[SIAM J. Comput., 1982] and a (k−12)(k - \frac 12)-approximation algorithm of Brüstle et al.~[IWOCA 2021]. In this paper, we carefully design local weight functions in the Layering and Reverse Extension local ratio framework of Bar-Yehuda et al.~[ACM Comput. Surv., 2004], leading to an approximation algorithm of ratio 3k−14\frac {3k-1}4 for odd k≥3k \ge 3 and of ratio 3k4\frac {3k}4 for even k≥4k \ge 4. When k=3k = 3 and k=4k = 4, these ratios are 22 and 33, respectively, matching the state-of-the-art approximation ratios for the corresponding special cases.

Acknowledgement

This work is supported by the NNSF of China (Grants 12371316, 92567201), the PNSF of Zhejiang China (Grant LZ25A010001), and the NSERC Canada.

Introduction

Throughout the paper, we consider a vertex non-negatively weighted simple graph G=(V,E)G=(V,E). In the special case where the vertices have the uniform weight, the graph is also called unweighted. Unless otherwise explicitly specified, the graphs and the problems are vertex-weighted.

For an integer k≥2k \ge2, a kk-path in the graph GG is a simple path on kk vertices. A vertex subset C⊆VC \subseteq V is a kk-path vertex cover, denoted as kkPVC, if every kk-path in GG contains at least a vertex of CC, or equivalently, the subgraph of GG obtained by removing the vertices of CC and those edges incident at the vertices of CC, i.e., G[V∖C]G[V \setminus C], does not contain any kk-path. In the latter sense, CC is also called a deletion set for convenience. One sees that when k=2k=2, a 2-path is an edge, and a 2PVC is a classic vertex cover.

The weighted kkPVC problem is to find a kkPVC CC to minimize the total weight of the vertices in CC, i.e., w(C)=∑v∈Cw(v)w(C)=\sum_{v\in C}w(v), where w(⋅)w(\cdot) is the given nonnegative vertex weight function for the input graph. The problem on unweighted graphs was first introduced by Brešar et al. [8], and later the weighted version was first studied by Brešar et al. [10], which generalize the classic vertex cover problem and its weighted variant, respectively. In this paper, we study the weighted kkPVC problem for any fixed integer k≥3k \ge3, from the perspective of approximation algorithms.

Previous work

The classic vertex cover, or 2PVC, problem and its weighted variant are NP-hard [14] and APX-hard [1], even on cubic graphs. They admit a 2-approximation algorithm [4] but, assuming the Unique Games Conjecture (UGC), are not approximable within 2−ϵ2-\epsilon for any positive ϵ\epsilon [17]. In the pioneering work of Brešar et al. [8], unweighted kkPVC is shown NP-hard, and consequently the weighted variant is NP-hard too, for every k≥3k \ge3.

On the approximability, given a vertex-weighted graph G=(V,E)G=(V,E), one can construct an instance of the weighted set cover problem in which every kk-path of GG becomes an “element” and every vertex of VV becomes a set that “covers” all the kk-paths passing it and has a weight. In particular, one observes that in such an instance, every element occurs in exactly kk sets (typically the number of sets is called frequency). Therefore, Bar-Yehuda and Even’s [4] and Hochbaum’s [16] algorithms for the low-frequency weighted set cover problem can be employed, to become the first kk-approximation algorithm for the weighted kkPVC problem. Since its first formal study [10] in 2014, the only improvement was made in 2021 by Brüstle et al. [11], who presented a (k−12)(k-\frac{1}{2})-approximation algorithm.

For the unweighted kkPVC problem, Lee presents an O(log⁡k)O(\log k)-approximation algorithm [18].

On the inapproximability side, Brešar et al. showed that an α\alpha-approximation algorithm for the unweighted kkPVC problem yields an α\alpha-approximation algorithm for the classic vertex cover problem [8]. Therefore, assuming the UGC, the unweighted, and consequently the weighted, kkPVC problem is not approximable within 2−ϵ2-\epsilon for any positive ϵ\epsilon.

Besides the above general results, there are also studies on some specific low values of kk and on some restricted graph classes. For instance, Tu and Zhou gave two 2-approximation algorithms for weighted 3PVC, based on the primal-dual method and the layering method [25, 24], respectively. For weighted 4PVC, Camby et al. gave a 3-approximation algorithm [12]. These are the state-of-the-art results for k=3k=3 and 4, respectively.

When the graphs are unweighted and regular, better constant approximation ratios are known for k≥3k \ge3 [20, 26]. For unweighted 3PVC, a polynomial-time approximation scheme (PTAS) is known for planar graphs [23], and a PTAS is known for bounded-heterogeneity ball graphs [27].

Exact polynomial-time algorithms are also known for several restricted graph classes. Brešar et al. [8] showed that unweighted kkPVC is solvable in linear time for trees; Tu [21] gave an exact polynomial-time algorithm for cactus graphs. For weighted kkPVC, Brešar et al. [10] gave exact polynomial-time algorithms for complete graphs, paths, cycles, and trees; in particular, their algorithm for trees runs in O(k∣V∣)O(k|V|) time. When k=3k=3, since unweighted 3PVC is dual to the maximum dissociation set problem, the results of Orlovich et al. [19] imply the polynomial-time solvability of unweighted 3PVC on chordal graphs, weakly chordal graphs, interval-filament graphs, and AT-free graphs. Brešar et al. [9] also gave a linear-time algorithm for unweighted 3PVC on 4-path-tidy graphs1 Further exact, approximation, and parameterized algorithmic results have been summarized in a survey [22].

Our contribution

We study the weighted kkPVC problem for any fixed integer k≥3k \ge3, from the approximation algorithm perspective. We adopt the Layering and Reverse Extension local ratio framework of Bar-Yehuda et al. [3], and carefully design local cost functions, leading to an approximation algorithm of ratio 3k−14\frac{3k-1}{4} for odd k≥3k \ge3 and of ratio 3k4\frac{3k}{4} for even k≥4k \ge4. When k=3k=3 and k=4k=4, these ratios are 2 and 3, respectively, matching the state-of-the-art approximation ratios for the corresponding special cases.

The algorithm framework

The Layering and Reverse Extension framework has a forward phase of recursive layering and a backward phase of solution extension, with its performance analyzed by the local ratio technique [3]. During the forward layering phase, we abuse G=(V,E)G=(V,E) to denote the current remaining graph in which every vertex of VV has a positive remaining weight. In the current iteration, a vertex subset U⊆VU \subseteq V is located such that the induced subgraph on UU, G[U]G[U], contains a spanning subgraph isomorphic to a carefully designed structure HH, which in our case is a maximal-arm spider (in Definition 2). Then, with respect to a local cost function designed for the vertices of UU, a scaling factor is found and the vertices of UU of the scaled weights form a layer, which is subtracted from the graph GG to give rise to at least one zero-weighted vertex. The zero-weighted vertices are then removed, and layering continues into the next iteration.

When an iteration is reached in which the remaining graph GG can be solved exactly, which in our case is spider-free, a minimal solution is obtained and the second reverse extension phase starts to restore the removed vertices in the reverse order of layering iterations, and at the end returns a kkPVC for the original graph.

For the performance analysis, the designed local cost function for layering is used to bound the weight of the achieved solution in each layer with respect to the optimum local to that layer, following the good-local-cost formulation of Aprile et al. [2].

The main result and paper organization

Theorem 1 For every fixed integer k≥3k \ge3, the weighted kk-Path Vertex Cover problem admits a polynomial-time ρk\rho_k-approximation algorithm, where

ρk={3k−14,k is odd;3k4,k is even.\rho_k = \begin{cases} \frac{3k-1}{4}, & k\text{ is odd};\\ \frac{3k}{4}, & k\text{ is even}. \end{cases}

We introduce some key notations and the spider structures in § 3. § 4 presents a polynomial-time dynamic programming exact algorithm for spider-free graphs, that is, the input graph does not contain the defined spider structure as a subgraph. The main algorithm of Layering and Reverse Extension, together with the local-ratio analysis and the running time analysis, are in § 5. § 6 concludes the paper.

Preliminaries

All graphs are finite, simple, and undirected. Given a graph GG and its nonnegative vertex weight function w:V(G)→Q≥0w: V(G) \to\mathbb{Q}_{\ge0} and C⊆V(G)C \subseteq V(G), let w(C)=∑v∈Cw(v)w(C)=\sum_{v\in C} w(v) for any vertex subset CC, and let

OPT⁡(G,w)=min⁡{w(C):C is a kPVC of G}.\operatorname{OPT}(G,w)=\min\{w(C): C\text{ is a }k\text{PVC of }G\}.

Definition 1 (Three-arm spider). For three positive integers aa, bb, and cc, let S(a,b,c)S(a,b,c) be the tree obtained from three paths of lengths a,b,ca,b,c, respectively, by identifying one endpoint of each path. The identified vertex is the center; the three paths are the arms and the vertices other than the center are arm-vertices.

Define the three-arm spider

Tk={S(m,m,m),k=2m+1;S(m−1,m,m),k=2m.(1)T_k = \begin{cases} S(m,m,m), & k=2m+1;\\ S(m-1,m,m), & k=2m. \end{cases} \tag*{(1)}

The number of vertices of TkT_k is

∣V(Tk)∣={1+3m=3k−12,k odd;1+(m−1)+m+m=3k2,k even.(2)\lvert V(T_k)\rvert= \begin{cases} 1+3m=\dfrac{3k-1}{2}, & k\text{ odd};\\ 1+(m-1)+m+m=\dfrac{3k}{2}, & k\text{ even}. \end{cases} \tag*{(2)}

If a graph contains no TkT_k as a subgraph, then we call it TkT_k-free or spider-free.

Given a three-arm spider, an (m+1)(m+1)-path (i.e., length-mm path) ending at cc and containing no arm-vertex of the spider can be added to become a new arm to make it into a four-arm spider; a four-arm spider can continue to grow into a five-arm spider, and so on.

Definition 2 (Maximal-arm spider). Starting with a three-arm spider TkT_k re-written as A={c,Q1,Q2,Q3}A=\{c,Q_1,Q_2,Q_3\}, where cc is the center and Q1,Q2,Q3Q_1,Q_2,Q_3 are the three arms, repeatedly find an (m+1)(m+1)-path ending at cc and containing no arm-vertex of AA, and then append it as a new arm to AA. Upon no new arm can be found, the resultant A={c,Q1,Q2,…,Qp}A=\{c,Q_1,Q_2,\ldots,Q_p\}, where p≥3p\ge3, is called a maximal-arm spider. See for an illustration in Figure 1.

Illustration of a maximal-arm spider

Figure 1. An illustration of a maximal-arm spider A={c,Q1,Q2,…,Qp}A=\{c,Q_1,Q_2,\ldots,Q_p\}, where p≥3p\ge3, when kk is odd (left, where m=k−12m=\frac{k-1}{2}) and when kk is even (right, where m=k2m=\frac{k}{2}).

We remark that a maximal-arm spider is greedily grown from a three-arm spider, and thus it is not necessarily unique, neither necessarily has a unique number of arms, but all depending on what the new arms are and how they are discovered.

In our Layering and Reverse Extension algorithm for the weighted kkPVC problem, we will use maximal-arm spiders to construct layers. The next two lemmas give the first idea on why they are important to the approximation ratio we want to prove.

Lemma 1 For a pp-arm spider A={c,Q1,Q2,…,Qp}A=\{c,Q_1,Q_2,\ldots,Q_p\}, if the center cc is not included in a kkPVC CC, then CC contains at least one vertex from each of p−1p-1 arms.

Proof. If CC does not contain any vertex from two arms, then these two arms together with the center cc form a kk-path, a contradiction.

Lemma 2 If all the vertices of a maximal-arm spider AA are positively weighted, then every kkPVC CC of the graph GG containing all the vertices of AA can be reduced by removing at least one vertex of AA.

Proof. Suppose PP is a kk-path in GG passing the center cc. We claim that PP contains at least an arm-vertex of AA, since otherwise from PP one can find a new arm for AA, contradicting the maximality. In other words, C∖{c}C \setminus\{c\} is still a kkPVC. This proves the lemma.

Basically, using Lemma 1, we assign a weight of 1 to every arm-vertex while a weight of p−1p-1 to the center. This way, the minimum cost of covering a pp-arm spider is at least p−1p-1. Furthermore, given that all these weights are positive, by Lemma 2 our to-be computed solution will not contain all the vertices of the spider but at most pm−1+(p−1)=k+12−2pm-1+(p-1)=\frac{k+1}{2}-2 when kk is odd (or a similar value when kk is even). It follows that the approximation ratio is no more than 3k−14\frac{3k-1}{4}. We will formally present the algorithm and prove its performance in the next two sections.

Lemma 2 also inspires the definition of minimal kkPVC: A kkPVC CC of GG is minimal if for every v∈Cv \in C, C∖{v}C \setminus\{v\} is no longer a kkPVC.

Lemma 3 For a kkPVC CC of GG, CC is minimal if and only if for every v∈Cv \in C, there exists a kk-path PP such that V(P)∩C={v}V(P) \cap C = \{v\}, which is called the witness path of vv.

Proof. Consider a vertex v∈Cv \in C. Since C∖{v}C \setminus\{v\} is not a kkPVC, there exists a kk-path PP that is not covered by C∖{v}C \setminus\{v\}, i.e., V(P)∩(C∖{v})=∅V(P) \cap(C \setminus\{v\}) = \varnothing. On the other hand, since CC is a kkPVC, PP must contain at least one vertex of CC, and thus exactly the vertex vv.

Conversely, removing vv from CC will leave PP uncovered, and thus CC is minimal.

A polynomial-time exact algorithm for spider-free graphs

In this section, we show that the kkPVC problem on spider-free graphs is solvable in polynomial time. A spider-free graph is one that does not contain any three-arm spider TkT_k defined in Eq. (1), and thus it is the boundary case terminating the first layering phase of the algorithm. For distinction, we fix a spider-free graph H=(V,E)H=(V,E) for discussion.

There are two steps in the exact algorithm. First, we show that the spider-free graph HH has pathwidth bounded by a function depending only on kk, and construct a path decomposition of bounded width for HH. We then give a dynamic program on this path decomposition to compute a minimum weight kkPVC for HH.

Bounded pathwidth and a path decomposition

Given a graph, an edge contraction merges the two connecting vertices into one and removes the loop just formed. A graph FF is a minor of HH if FF can be obtained from HH by a sequence of edge contractions, edge and vertex deletions. An edge subdivision adds new vertices to the edge whereby breaking the edge into two. A graph FF is a topological minor of HH if a subdivision of FF is (isomorphic to) a subgraph of HH. One sees that a topological minor is a minor, but the converse is not necessarily true. Nevertheless, when the minor is a subcubic graph, it is a topological minor too due to Diestel [13].

Proposition 1 [13 Proposition 1.7.3] If a subcubic graph FF is a minor of HH, then FF is a topological minor of HH too.

Since every subdivision of the three-arm spider TkT_k contains TkT_k as a subgraph, this proposition immediately implies that excluding TkT_k as a subgraph in HH also excludes TkT_k as a minor. We summarize this conclusion in the next lemma.

Lemma 4 If HH is a spider-free graph, then the three-arm spider TkT_k is not a minor of HH.

Given a graph HH, a tree decomposition represents the vertices of HH as subtrees of a tree TT, in such a way that vertices in HH are adjacent only when the corresponding subtrees of TT overlap. In detail, a tree decomposition [13 Section 12.3] is a pair (B,T)(\mathcal{B}, T), where B={B1,B2,…,Bq}\mathcal{B} = \{B_1, B_2, \ldots, B_q\} is a family of subsets (called bags) of vertices of HH, and TT is a tree whose nodes are these bags, satisfying the following properties: 1) every vertex of HH appears in (called associated with) some bags that are connected in TT, and 2) for every edge (u,v)(u, v) in HH, both uu and vv appear in some bags. The width of the tree decomposition is the size of its largest bag minus one, i.e., max⁡1≤i≤q∣Bi∣−1\max_{1 \le i \le q} |B_i| - 1, and the treewidth tw⁡(H)\operatorname{tw}(H) of the graph HH is the minimum width among all possible tree decompositions of HH.

A tree decomposition in which the underlying tree TT is a path graph is called a path decomposition of HH, and the width parameter derived from this path decomposition is called pathwidth. Analogously, the pathwidth pw⁡(H)\operatorname{pw}(H) of the graph HH is the minimum width among all possible path decompositions of HH [13]. We remark that for notational convenience, for a path decomposition (B,P)(\mathcal{B}, P), where B={B1,B2,…,Bq}\mathcal{B} = \{B_1, B_2, \ldots, B_q\} and PP is the underlying path, we assume these bags are indexed to match their node order on the path PP. One sees that every graph has path and tree decompositions, for example a single bag of all the vertices of the graph. Efforts are put in finding an optimal path or tree decomposition that achieves the minimum pathwidth or treewidth, correspondingly, followed by their applications.

We next use the following result on the pathwidth of a graph due to Bienstock et al. [5] (where a forest is a graph consisting of one or multiple trees).

Lemma 5 [5] If a graph HH contains no forest FF as a minor, then its pathwidth pw⁡(H)≤∣V(F)∣−2\operatorname{pw}(H) \le|V(F)| - 2.

Since TkT_k is a tree, Lemmas 4 and 5 give an explicit constant upper bound on the pathwidth of the spider-free graph HH.

Corollary 1 For a spider-free graph HH, its pathwidth pw⁡(H)≤pk={3k−52,k odd;3k−42,k even.\operatorname{pw}(H) \le p_k = \begin{cases} \dfrac{3k-5}{2}, & k\text{ odd}; \\ \dfrac{3k-4}{2}, & k\text{ even}. \end{cases}

Proof. One sees that when k=2m+1k = 2m + 1, ∣V(Tk)∣=1+3m=3k−12|V(T_k)| = 1 + 3m = \dfrac{3k-1}{2}, and thus pw⁡(H)≤∣V(Tk)∣−2=3k−52\operatorname{pw}(H) \le|V(T_k)| - 2 = \dfrac{3k-5}{2}. When k=2mk = 2m, ∣V(Tk)∣=1+(m−1)+m+m=3m=3k2|V(T_k)| = 1 + (m - 1) + m + m = 3m = \dfrac{3k}{2}, and thus pw⁡(H)≤∣V(Tk)∣−2=3k−42\operatorname{pw}(H) \le|V(T_k)| - 2 = \dfrac{3k-4}{2}. □

For a fixed kk, a bounded-width path decomposition of a spider-free graph HH can be constructed in linear time. For example, one can first call Bodlaender’s algorithm [6] to construct a tree decomposition of width at most pkp_k for HH in linear time, and then call Bodlaender and Kloks’s algorithm [7] to construct a path decomposition of width at most pkp_k for HH in linear time. In the sequel, we assume a path decomposition of width at most pkp_k for HH is readily available.

Definition 3 A nice path decomposition (B,P)(\mathcal{B}, P) for a graph HH, where B={B0,B1,…,Bq}\mathcal{B} = \{B_0, B_1, \ldots, B_q\}, is a path decomposition satisfying 1) the two end-bags are empty, i.e., B0=Bq=∅B_0 = B_q = \varnothing, and 2) for each i=1,2,…,qi = 1, 2, \ldots, q, either Bi=Bi−1∪{v}B_i = B_{i-1} \cup\{v\} for some vertex vv of HH (introduce vv) or Bi=Bi−1∖{v}B_i = B_{i-1} \setminus\{v\} for some vertex vv of HH (forget vv).

The following standard transformation shows that imposing this nice form does not increase the width.

Lemma 6 A path decomposition (B={B1,B2,…,Bq},P)(\mathcal{B} = \{B_1, B_2, \ldots, B_q\}, P) of a graph HH can be transformed in linear time into a nice path decomposition (B′={B0′,B1′,…,B2n′},P′)(\mathcal{B}' = \{B'_0, B'_1, \ldots, B'_{2n}\}, P') of the same width, where n=∣V(H)∣n = |V(H)|.

Proof. We construct the bags in the new path decomposition sequentially and explicitly, starting with the empty bag B0′=∅B'_0 = \varnothing. Assuming without loss of generality that Bi′B'_i has just been constructed using a sub-collection of bags {B1,B2,…,Bj−1}\{B_1, B_2, \ldots, B_{j-1}\} of B\mathcal{B}, and that Bi′=Bj−1B'_i = B_{j-1}, where B0=∅B_0 = \varnothing for notational convenience. Forgetting one vertex of Bi′∖Bj=Bj−1∖BjB'_i \setminus B_j = B_{j-1} \setminus B_j at a time to produce s=∣Bj−1∖Bj∣s = |B_{j-1} \setminus B_j| new bags sequentially, namely, Bi+1′,…,Bi+s′B'_{i+1}, \ldots, B'_{i+s} such that Bi+s′=Bj−1∩BjB'_{i+s} = B_{j-1} \cap B_j. Next, introducing one vertex of Bj∖Bj−1B_j \setminus B_{j-1} at a time to produce t=∣Bj∖Bj−1∣t = |B_j \setminus B_{j-1}| new bags sequentially, namely, Bi+s+1′,…,Bi+s+t′B'_{i+s+1}, \ldots, B'_{i+s+t}. One thus sees that Bi+s+t′=BjB'_{i+s+t} = B_j. This way, using the bag BjB_j, we have constructed s+t=∣Bj−1∖Bj∣+∣Bj∖Bj−1∣s + t = |B_{j-1} \setminus B_j| + |B_j \setminus B_{j-1}| sequential bags such that these i+s+ti + s + t bags satisfy the second property in Definition 3. At the end of using the last bag BqB_q, we achieve a sequence of bags B0′,B1′,…,Bℓ′B'_0,B'_1,\ldots,B'_{\ell} such that Bℓ′=BqB'_{\ell}=B_q. Lastly, forget the vertices of BrB_r one at a time from Bℓ′B'_{\ell} to produce ∣Bq∣|B_q| bags with the last one Bq′′=∅B'_{q'}=\emptyset, where q′=ℓ+∣Bq∣q'=\ell+|B_q|. Therefore, both properties in Definition 3 are satisfied.

For notational convenience, we denote Bq+1=∅B_{q+1}=\emptyset. We have q′=∑j=1q∣Bj∖Bj−1∣+∑j=2q+1∣Bj−1∖Bj∣=∣V(H)∣+∣V(H)∣=2∣V(H)∣q'=\sum_{j=1}^{q}|B_j\setminus B_{j-1}|+\sum_{j=2}^{q+1}|B_{j-1}\setminus B_j|=|V(H)|+|V(H)|=2|V(H)|, i.e., every vertex of HH is introduced exactly once and forgotten exactly once. This proves the number of constructed bags in B′\mathcal{B}'.

It is seen that all the old bags of B\mathcal{B} occur in B′\mathcal{B}', and thus every edge of HH continues to exist. Also, by the ways of forgetting and introducing vertices from Bj−1B_{j-1} to achieve Bj−1∩BjB_{j-1}\cap B_j and then to achieve BjB_j, every vertex of HH continues to associate with an interval of bags in B′\mathcal{B}', and thus a subpath of the path P′P'. That is, B′\mathcal{B}' is a nice path decomposition for HH. Since we do not produce any bag of size larger than max⁡1≤j≤q∣Bj∣\max_{1\leq j\leq q}|B_j|, the pathwidth of B′\mathcal{B}' is the same as that of B\mathcal{B}. One clearly sees that the construction takes O(n+q)O(n+q) time, which is linear. This finishes the proof of the lemma. □

By Lemma 6, in the sequel, we assume a nice path decomposition B={B0,B1,…,B2n}\mathcal{B}=\{B_0,B_1,\ldots,B_{2n}\} of width at most pkp_k for a spider-free graph HH is readily available, where n=∣V(H)∣n=|V(H)| and each vertex of HH is introduced first and then forgotten from a later bag. We use B\mathcal{B} to solve the weighted kkPVC problem on HH exactly.

A dynamic programming exact algorithm

Consider a spider-free graph HH and a nice path decomposition B={B0,B1,…,B2n}\mathcal{B}=\{B_0,B_1,\ldots,B_{2n}\} of width at most pkp_k for HH stated right in the above. Our algorithm examines these bags one by one sequentially, and distinguishes on how the current bag BiB_i is obtained from Bi−1B_{i-1}, by introducing or forgetting a vertex vv.

Denote Ui=⋃j=1iBjU_i=\bigcup_{j=1}^{i}B_j, the set of vertices introduced up to BiB_i, and the induced subgraph Hi=H[Ui]H_i=H[U_i]. Importantly, since when a vertex is forgotten all its neighbors must have all been introduced, there is no edge between the set Ui∖BiU_i\setminus B_i of vertices (which have been forgotten) and the set V(H)∖Ui−1V(H)\setminus U_{i-1} of vertices (which are to be introduced). This leads to our idea to maintain the collection of all partial kk-paths in the current graph H[Ui∖C]H[U_i\setminus C], where C⊆UiC\subseteq U_i is the set of deleted vertices, and update them when the vertex vv is introduced, deleted, or forgotten. We point out that the existence of a complete kk-path indicates the infeasibility of the deleted vertex set CC.

Furthermore, we ignore the detailed vertices of C∩(Ui∖Bi)C\cap(U_i\setminus B_i), but only record their total weight. On the other hand, we do keep the detailed vertices of D=C∩BiD=C\cap B_i. With respect to DD, a partial kk-path is denoted as a vector

σ=(σ1,…,σk)∈((Bi∖D)∪{0,⋆})k,\sigma=(\sigma_1,\ldots,\sigma_k)\in((B_i\setminus D)\cup\{0,\star\})^k,

where a vertex v∈Bi∖Dv\in B_i\setminus D denotes a retained vertex, 00 denotes an unused position, and each occurrence of ⋆\star denotes a distinct retained forgotten vertex of (Ui∖Bi)∖C(U_i\setminus B_i)\setminus C. The consecutive occupied positions correspond to adjacent distinct vertices. Let Φ\Phi denote the collection of all such partial kk-paths that are valid in the current residual graph; define a dynamic programming (DP) state as a pair (D,Φ)(D,\Phi), and DPi[D,Φ]\mathrm{DP}_i[D,\Phi] stores the minimum weight of a deletion set in UiU_i producing this state. That is, if several deletion sets produce the same state, then only the minimum-weight one is kept for backtracking purpose.

At the initial empty bag B0=∅B_0=\emptyset, we initialize Φ={(0,…,0)}\Phi=\{(0,\ldots,0)\} and set DP0[∅,Φ]=0\mathrm{DP}_0[\emptyset,\Phi]=0. Below we assume all possible states (D,Φ)(D,\Phi) at the bag Bi−1B_{i-1} have been decided, and their associated minimum weight DPi−1[D,Φ]\mathrm{DP}_{i-1}[D,\Phi] computed. We distinguish the two introduce and forget transitions.

Case 1: Bi=Bi−1∪{v}B_i=B_{i-1}\cup\{v\}. For each state (D,Φ)(D,\Phi) at Bi−1B_{i-1}, the DP algorithm considers whether vv is deleted or retained.

If vv is deleted, then vv is added to DD, its weight w(v)w(v) is added to the objective value, and all the partial kk-paths remain unchanged. That is, a valid state (D∪{v},Φ)(D\cup\{v\},\Phi) is reached and DPi[D∪{v},Φ]=DPi−1[D,Φ]+w(v)\mathrm{DP}_i[D\cup\{v\},\Phi]=\mathrm{DP}_{i-1}[D,\Phi]+w(v).

Suppose that vv is retained. Firstly, each partial kk-path σ=(σ1,…,σk)∈Φ\sigma=(\sigma_1,\ldots,\sigma_k)\in\Phi remains valid, since vv does not have to be used in the path. In addition, vv can be added the path σ\sigma to produce new representations, by replacing each position xx with σx=0\sigma_x=0 by vv. To be valid, every occupied position adjacent to xx, i.e., σx−1\sigma_{x-1} and σx+1\sigma_{x+1} if they are within range, has to have a vertex of Bi−1⊂BiB_{i-1} \subset B_i adjacent to vv in the underlying graph HH, or otherwise the new representation is invalid and deleted. We note that an occupied neighboring position cannot be ⋆\star, which represents a forgotten vertex not adjacent to vv in the graph HH. The final collection, denoted as Φ′\Phi', is the union of Φ\Phi and these new valid partial kk-paths containing vv. We have DPi[D,Φ′]=DPi−1[D,Φ]\mathrm{DP}_i[D,\Phi'] = \mathrm{DP}_{i-1}[D,\Phi].

Case 2: Bi=Bi−1∖{v}B_i = B_{i-1} \setminus\{v\}. For each state (D,Φ)(D,\Phi) at Bi−1B_{i-1}, the DP algorithm considers whether vv has been deleted or is retained.

If v∈Dv \in D, i.e., vv has been deleted, then it is removed from DD to update DD to be a subset of BiB_i, and all the partial kk-paths remain unchanged. That is, a valid state (D∖{v},Φ)(D \setminus\{v\},\Phi) is reached and DPi[D∖{v},Φ]=DPi−1[D,Φ]\mathrm{DP}_i[D \setminus\{v\},\Phi] = \mathrm{DP}_{i-1}[D,\Phi].

Suppose that v∉Dv \notin D, i.e., vv is retained. For each partial kk-path σ=(σ1,…,σk)∈Φ\sigma= (\sigma_1,\ldots,\sigma_k) \in\Phi, if it does not contain vv, then it remains valid; otherwise, the occurrence of vv is replaced by ⋆\star while all other symbols remain unchanged. We note that such a symbol-replacement process might lead to identical partial kk-paths, and if so then only one is kept. For the final collection, denoted as Φ′\Phi', we have DPi[D,Φ′]=DPi−1[D,Φ]\mathrm{DP}_i[D,\Phi'] = \mathrm{DP}_{i-1}[D,\Phi].

We also note that in the above two transitions, multiple states at Bi−1B_{i-1} can lead to the same state at BiB_i, and if so then the algorithm keeps the minimum weight and the associated deletion set for backtracking purpose. At the final empty bag B2nB_{2n}, every remaining state corresponds exactly to a kkPVC of the underlying graph HH, and the one achieving the minimum weight can be backtracked to produce the deletion set returned as the solution, denoted as ALG⁡(H,w)\operatorname{ALG}(H,w).

Theorem 2. For every fixed kk, the dynamic programming algorithm is an (n⋅f(k))(n \cdot f(k))-time exact algorithm for the weighted kkPVC problem on spider-free graphs, where nn is the order of the graph and f(k)f(k) is a function depending only on kk.

Proof. For a spider-free graph HH, by Corollary 1, HH has pathwidth at most pk<32kp_k < \frac{3}{2}k. A nice path decomposition B\mathcal{B} of HH can be constructed in linear time. Using B\mathcal{B}, a minimum-weight kkPVC C∗C^* of HH can walk through to delete or retain vertices correspondingly, reaching a valid state at the last bag B2nB_{2n} where n=∣V(H)∣n = |V(H)|. It follows that ALG⁡(H,w)\operatorname{ALG}(H,w) has the same weight as C∗C^*, and thus is an optimal solution.

Recall that in the DP algorithm we have states in the form (D,Φ)(D,\Phi), where D⊆BiD \subseteq B_i is the deletion set within the current bag BiB_i and Φ\Phi is the collection of valid partial kk-paths in the current residual graph. Let

b=max⁡i∣Bi∣≤pk+1<32k.b = \max_i |B_i| \leq p_k + 1 < \frac{3}{2}k.

There are at most (b+2)k(b+2)^k possible partial kk-paths. Hence the number of possible collections Φ\Phi is at most 2(b+2)k2^{(b+2)^k}, and there are at most 2b2^b choices for DD. Thus the number of states at each bag is no more than

2b⋅2(b+2)k≤232k+(32k+1)k,2^b \cdot2^{(b+2)^k} \leq2^{\frac{3}{2}k+(\frac{3}{2}k+1)^k},

which is a constant depending only on kk.

By the two-case distinction in the DP algorithm, each transition examines a state at the preceding bag at most k+1k+1 times to produce all possible states at the current bag, followed by duplicate removing. Therefore each transition takes a time depending only on kk. We thus conclude that the overall running time for the DP algorithm, and consequently for the entire process leading to ALG⁡(H,w)\operatorname{ALG}(H,w), is n⋅f(k)n \cdot f(k), where n=∣V(H)∣n = |V(H)| and f(k)f(k) is a function depending only on kk.

Algorithmic framework of layering and reverse extension

Given a subgraph HH of the current vertex positively weighted graph G=(V,E)G = (V,E), a non-zero nonnegative function cH:V(H)→Q≥0c_H : V(H) \to\mathbb{Q}_{\geq0} that defines the vertex weights in HH is called a local cost function for HH. We use (H,cH)(H,c_H) to denote the vertex non-negatively weighted graph HH in which cHc_H is the vertex weight function.

Definition 4 (Good local cost). Given a vertex subset S⊆VS \subseteq V, a local cost function cHc_H for H=G[S]H = G[S], and a constant ρ>0\rho> 0, if cH(C∩S)≤ρ⋅OPT⁡(H,cH)c_H(C \cap S) \leq\rho\cdot\operatorname{OPT}(H,c_H) holds for every minimal kkPVC CC of GG, then we call the weighted graph (H,cH)(H,c_H) ρ\rho-good in GG.

Layering and reverse extension is an algorithmic framework that, given a weighted graph G=(V,E)G = (V,E), cuts off a layer of vertex weights resulting in a smaller graph G′G', recursively computes a solution for G′G', then greedily extends the solution using some vertices in the layer to become a solution for the original graph GG. For an input graph G=(V,E)G = (V,E) in which the vertex weight function is w(⋅)w(\cdot), we denote the procedure as LRE⁡(G,w)\operatorname{LRE}(G,w), in which the detailed steps of computation are depicted in Algorithm 1.

Algorithm 1 LRE⁡(G,w)\operatorname{LRE}(G,w).

Require: G=(V,E)G = (V,E) with vertex weight function w:V→Q≥0w: V \to\mathbb{Q}_{\geq0};

Ensure: a minimal kkPVC CC.

  1. Z←{v∈V∣w(v)=0}Z \leftarrow\{v \in V \mid w(v) = 0\};

  2. if (Z≠∅)(Z \ne\varnothing) then

  3. V′←V∖ZV' \leftarrow V \setminus Z;

  4. G′←G[V′]G' \leftarrow G[V'];

  5. C←LRE⁡(G′,w∣V∖Z)C \leftarrow\operatorname{LRE}(G',w|_{V\setminus Z}); ▷ recursive call;

  6. while (Z≠∅)(Z \ne\varnothing) do

  7. take a vertex zz of ZZ; ▷ reverse extension starts;

  8. V′←V′∪{z}V' \leftarrow V' \cup\{z\};

  9. G′←G[V′]G' \leftarrow G[V'];

  10. if (CC is not a kkPVC of G′G') then C←C∪{z}C \leftarrow C \cup\{z\};

  11. Z←Z∖{z}Z \leftarrow Z \setminus\{z\};

  12. return CC;

  13. if (GG is spider-free) then ▷ boundary case;

  14. return ALG⁡(G,w)\operatorname{ALG}(G,w); ▷ a minimum-weight kkPVC of GG;

  15. else

  16. find a maximal-arm spider H={c,Q1,Q2,…,Qp}H = \{c,Q_1,Q_2,\ldots,Q_p\} in GG; ▷ layering starts;

  17. define

cH(v)={p−1,v=c;1,v∈V(H)∖{c};c_H(v) = \begin{cases} p-1, & v=c;\\ 1, & v \in V(H)\setminus\{c\}; \end{cases}
  1. λ←max⁡{μ≥0∣w(v)−μ⋅cH(v)≥0, ∀v∈V(H)}\lambda\leftarrow\max\{\mu\geq0 \mid w(v)-\mu\cdot c_H(v) \geq0,\ \forall v \in V(H)\};

  2. define

wˉ(v)={w(v)−λ⋅cH(v),v∈V(H);w(v),v∉V(H);\bar{w}(v) = \begin{cases} w(v)-\lambda\cdot c_H(v), & v \in V(H);\\ w(v), & v \notin V(H); \end{cases}
  1. return LRE⁡(G,wˉ)\operatorname{LRE}(G,\bar{w}); ▷ recursive call;

In Lines 13–20 of the layering phase, the conditional statement distinguishes whether a layering is necessary, namely, if GG is spider-free, i.e., boundary case, then (Line 14) the dynamic programming algorithm stated in Theorem 2 is called to solve the instance exactly. Otherwise, (Lines 16–20) a three-arm spider TkT_k can be located and then greedily a maximal-arm spider H={c,Q1,Q2,…,Qp}H = \{c,Q_1,Q_2,\ldots,Q_p\} containing TkT_k is formed, where p≥3p \geq3. The vertices of this spider HH form a layer, for which a local cost function cH(⋅)c_H(\cdot) is designed (Line 17), and subsequently the coefficient λ\lambda of the layer is determined so that taking off the layer from the graph GG leaves at least one zero-weight vertex. Then the algorithm recursively runs on the graph GG with the remaining vertex weights. During the recursive call, in Lines 1–12, the algorithm first removes zero-weighted vertices, then executes Lines 13–20 to find a solution CC. Upon CC is returned, the reverse extension phase starts, in which zero-weighted vertices are scanned in an arbitrary order to restore the graph, so that if CC does not remain as a kkPVC of the current graph, then the scanned vertex is added to CC. This ensures the final CC is a minimal kkPVC for the original graph GG.

Lemma 7 (Reverse extension preserves minimality). Let V′⊂VV' \subset V and CC be a minimal kkPVC of the graph G[V′]G[V'], and let z∈V∖V′z \in V \setminus V' be a restored vertex. If CC is a kkPVC of G[V′∪{z}]G[V' \cup\{z\}], then keep CC; otherwise, replace it by C+=C∪{z}C^+ = C \cup\{z\}. In either case, the resulting set is a minimal kkPVC of G[V′∪{z}]G[V' \cup\{z\}].

Proof. The minimality holds trivially if CC is a kkPVC of G[V′∪{z}]G[V' \cup\{z\}].

Next suppose CC is not a kkPVC of G[V′∪{z}]G[V' \cup\{z\}]. One first sees that C+=C∪{z}C^+ = C \cup\{z\} is a kkPVC of G[V′∪{z}]G[V' \cup\{z\}]. If C+=C∪{z}C^+ = C \cup\{z\} is not minimal, then there exists an x∈Cx \in C such that C∪{z}∖{x}C \cup\{z\} \setminus\{x\} is a kkPVC of G[V′∪{z}]G[V' \cup\{z\}]. Since zz is not on any kk-path of G[V′]G[V'], C∖{x}C \setminus\{x\} is a kkPVC of G[V′]G[V'], contradicting the minimality of CC in G[V′]G[V']. This proves that C+=C∪{z}C^+ = C \cup\{z\} is a minimal kkPVC of G[V′∪{z}]G[V' \cup\{z\}]. □\square

Lemma 8 (Spider local optimum). The weighted pp-arm spider (H,cH)(H,c_H) defined in Lines 16–17 of Algorithm 1, OPT⁡(H,cH)≥p−1\operatorname{OPT}(H,c_H) \ge p - 1.

Proof. Let CC be a kkPVC of HH. If the center c∈Cc \in C, then cH(C)≥cH(c)=p−1c_H(C) \ge c_H(c) = p - 1.

Suppose that c∉Cc \notin C. We conclude from Lemma 1 that CC contains at least p−1p-1 arm-vertices each of local cost 1. That is, cH(C)≥p−1c_H(C) \ge p - 1. This proves the lemma. □\square

Lemma 9 (Spider local upper bound). The weighted maximal-arm spider (H,cH)(H,c_H) defined in Lines 16–17 of Algorithm 1, every minimal kkPVC CC of GG satisfies cH(C∩V(H))≤cH(V(H))−1c_H(C \cap V(H)) \le c_H(V(H)) - 1.

Proof. Note that the vertices of HH have positive weights of at least 1. By Lemma 2, CC does not contain all the vertices of HH, and thus cH(C∩V(H))≤cH(V(H))−1c_H(C \cap V(H)) \le c_H(V(H)) - 1. □\square

Lemma 10 (Good spider layer). The weighted maximal-arm spider (H,cH)(H,c_H) defined in Lines 16–17 of Algorithm 1 is ρ\rho-good with

ρ={3k−14,k is odd;3k4,k is even.\rho= \begin{cases} \frac{3k-1}{4}, & k\text{ is odd};\\ \frac{3k}{4}, & k\text{ is even}. \end{cases}

Proof. Let CC be a minimal kkPVC of GG. By Lemmas 8 and 9, and p≥3p \ge3, when kk is odd,

cH(C∩V(H))OPT⁡(H,cH)≤pm+p−2p−1=m+1+m−1p−1≤m+1+m−12=3m+12=3k−14.\frac{c_H(C \cap V(H))}{\operatorname{OPT}(H,c_H)} \le\frac{pm+p-2}{p-1} = m+1+\frac{m-1}{p-1} \le m+1+\frac{m-1}{2} = \frac{3m+1}{2} = \frac{3k-1}{4}.

When kk is even,

cH(C∩V(H))OPT⁡(H,cH)≤pm+p−3p−1=m+1+m−2p−1≤m+1+m−22=3m2=3k4.\frac{c_H(C \cap V(H))}{\operatorname{OPT}(H,c_H)} \le\frac{pm+p-3}{p-1} = m+1+\frac{m-2}{p-1} \le m+1+\frac{m-2}{2} = \frac{3m}{2} = \frac{3k}{4}.

That is, (H,cH)(H,c_H) is ρ\rho-good with the defined ρ\rho. □\square

Theorem 3 (Local-ratio theorem for LRE). Let ρ≥1\rho\ge1. If every local weighted maximal-arm spider (H,cH)(H,c_H) defined in Lines 16–17 of Algorithm 1 is ρ\rho-good in the current graph and ALG in Line 14 solves spider-free graphs exactly, then LRE⁡(G,w)\operatorname{LRE}(G,w) returns a minimal kkPVC CC of GG with weight w(C)≤ρ⋅OPT⁡(G,w)w(C) \le\rho\cdot\operatorname{OPT}(G,w).

Proof. Denote (G0,w0)=(G,w)(G_0,w_0) = (G,w) the original graph, and GiG_i denotes the subgraph induced by the vertices having positive residual weight after the ii-th layering step, and let wiw_i be the corresponding residual weight function restricted to V(Gi)V(G_i) (that is, for every v∉V(Gi)v \notin V(G_i), wi(v)=0w_i(v) = 0). The local weighted maximal-arm spider (Hi,cHi)(H_i,c_{H_i}) of the ii-th layer is selected from the graph Gi−1G_{i-1} with coefficient λi\lambda_i, for i=1,2,…,ti = 1,2,\ldots,t, and terminates at the residual spider-free graph (Gt,wt)(G_t,w_t).

Let CC be the kkPVC returned by LRE, and let C∗C^* be an optimum kkPVC of (G,w)(G,w). For every layer ii, let OPT⁡(Hi,cHi)\operatorname{OPT}(H_i,c_{H_i}) denote the minimum-weight of the kkPVC of HiH_i. Since C∗∩V(Hi)C^* \cap V(H_i) is a kkPVC of HiH_i and cHic_{H_i} is restricted to V(Hi)V(H_i), we have

cHi(C∗)=cHi(C∗∩V(Hi))≥OPT⁡(Hi,cHi),i=1,2,…,t.c_{H_i}(C^*) = c_{H_i}(C^* \cap V(H_i)) \ge\operatorname{OPT}(H_i,c_{H_i}), \quad i = 1,2,\ldots,t.

Similarly, C∗∩V(Gt)C^* \cap V(G_t) is a kkPVC of the spider-free graph GtG_t, and hence

wt(C∗)=wt(C∗∩V(Gt))≥OPT⁡(Gt,wt).w_t(C^*) = w_t(C^* \cap V(G_t)) \ge\operatorname{OPT}(G_t,w_t).

Therefore,

OPT⁡(G,w)=w(C∗)=wt(C∗)+∑i=1tλi⋅cHi(C∗)≥OPT⁡(Gt,wt)+∑i=1tλi⋅OPT⁡(Hi,cHi).\operatorname{OPT}(G,w) = w(C^*) = w_t(C^*) + \sum_{i=1}^{t} \lambda_i \cdot c_{H_i}(C^*) \ge\operatorname{OPT}(G_t,w_t) + \sum_{i=1}^{t} \lambda_i \cdot\operatorname{OPT}(H_i,c_{H_i}).

Recall that the returned CC is formed by ALG⁡(Gt,wt)\operatorname{ALG}(G_t,w_t), followed by reverse extension that adds vertices from V(Gi−1)∖V(Gi)⊆V(Hi)V(G_{i-1}) \setminus V(G_i) \subseteq V(H_i) into CC, sequentially for i=t,t−1,…,1i=t,t-1,\ldots,1. For every layer ii, consider the moment in the reverse-extension process when all vertices of Gi−1G_{i-1} have been restored. By Lemma 7, the solution at this moment is a minimal kkPVC of Gi−1G_{i-1}. Moreover, subsequent reverse-extension steps never remove any vertex from the solution. Therefore, the solution at this moment is exactly C∩V(Gi−1)C \cap V(G_{i-1}). That is, C∩V(Gi−1)C \cap V(G_{i-1}) is a minimal kkPVC of Gi−1G_{i-1}. Since (Hi,cHi)(H_i,c_{H_i}) is ρ\rho-good in Gi−1G_{i-1},

cHi(C)=cHi(C∩V(Hi))≤ρ⋅OPT⁡(Hi,cHi).c_{H_i}(C) = c_{H_i}(C \cap V(H_i)) \le\rho\cdot\operatorname{OPT}(H_i,c_{H_i}).

Using wt(C)=wt(ALG⁡(Gt,wt))=OPT⁡(Gt,wt)w_t(C) = w_t(\operatorname{ALG}(G_t,w_t)) = \operatorname{OPT}(G_t,w_t) and ρ≥1\rho\ge1, we have

w(C)=wt(C)+∑i=1tλi⋅cHi(C)≤OPT⁡(Gt,wt)+ρ⋅∑i=1tλiOPT⁡(Hi,cHi)≤ρ⋅OPT⁡(G,w).w(C) = w_t(C) + \sum_{i=1}^{t} \lambda_i \cdot c_{H_i}(C) \le\operatorname{OPT}(G_t,w_t) + \rho\cdot\sum_{i=1}^{t} \lambda_i \operatorname{OPT}(H_i,c_{H_i}) \le\rho\cdot\operatorname{OPT}(G,w).

This proves the theorem. □

Lemma 11 Given a vertex non-negatively weighted graph G=(V,E)G=(V,E), the LRE algorithm runs in O(nh(k)⋅poly⁡(k)+n⋅f(k))O(n^{h(k)} \cdot\operatorname{poly}(k) + n \cdot f(k)) time, where n=∣V∣n=|V| and h(k)h(k), poly⁡(k)\operatorname{poly}(k) and f(k)f(k) are functions depending only on kk.

Proof. A three-arm spider TkT_k contains at most 3k/23^{k/2} vertices interconnected in a specific structure, and thus it can be located, if exists, in O(n3k/2⋅poly⁡(k))O(n^{3k/2}\cdot\operatorname{poly}(k)) time. Afterwards, since enumerating all possible arms at the center vertex in the subgraph induced by the vertices outside of the spider takes O((k2)⋅nk/2)O\left(\binom{k}{2}\cdot n^{k/2}\right) time, and there are O(nk/2)O(n^{k/2}) of them, greedily expanding TkT_k into a maximal-arm spider HH, in which there are at most 2nk\frac{2n}{k} arms, takes O(k2⋅nk/2⋅2nk)=O(nk/2+1)O\left(\frac{k}{2}\cdot n^{k/2}\cdot\frac{2n}{k}\right)=O(n^{k/2+1}) time.

Given a maximal-arm spider HH, setting up the local cost function cHc_H, determining the parameter λ\lambda, and updating the vertex weight function wˉ\bar{w} takes O(n+k)O(n+k) time. It follows that every layer takes an overall time of O(n3k/2⋅poly⁡(k))O(n^{3k/2}\cdot\operatorname{poly}(k)), and it leaves at least a zero-weight vertex in the residual graph. That is, there are at most nn layers.

During the reverse extension, when a zero-weight vertex is restored, the feasibility of the current deletion set CC can be tested by enumerating all kk-paths in the restored graph, which takes O(nk⋅poly⁡(k))O(n^k\cdot\operatorname{poly}(k)) time. Since there are at most nn restorations, the overall reverse extension time is in O(nk+1⋅poly⁡(k))O(n^{k+1}\cdot\operatorname{poly}(k)).

Recall from Theorem 2 that the dynamic programming algorithm produces an exact solution for a spider-free graph, which is a subgraph of G=(V,E)G=(V,E), in O(n⋅f(k))O(n\cdot f(k)) time, where f(k)f(k) is a function depending only on kk. Summing up, a coarse running time bound for the LRE is O(n3k/2+1⋅poly⁡(k)+n⋅f(k))O(n^{3k/2+1}\cdot\operatorname{poly}(k)+n\cdot f(k)), where poly⁡(k)\operatorname{poly}(k) is a polynomial function in kk and f(k)f(k) is an exponential function depending only on kk. We remark that if kk is part of the input, then the running time is not necessarily polynomial any more. □

Combining Lemma 10, Theorem 3, and Lemma 11, we have achieved the conclusion stated as Theorem 1, that is, for every fixed integer k≥3k \ge3, the weighted kkPVC problem admits a polynomial-time ρk\rho_k-approximation algorithm, where

ρk={3k−14,k is odd;3k4,k is even.\rho_k = \begin{cases} \frac{3k-1}{4}, & k\text{ is odd};\\ \frac{3k}{4}, & k\text{ is even}. \end{cases}

Conclusion

We studied the weighted kk-Path Vertex Cover problem from the perspective of approximation algorithm, where the input graph is vertex non-negatively weighted. We observed a maximal-arm spider that can be approximated within a factor of 3k4\frac{3k}{4}, and thus designed it into layers in the Layering and Reverse Extension framework. Furthermore, we proposed a polynomial-time exact dynamic programming algorithm that solves the boundary case of spider-free graphs, based on a path decomposition of bounded width. Using the local-ratio technique, we were able to prove that the performance ratio of our approximation algorithm is no more than 3k4\frac{3k}{4}. The improvement in the approximation ratio is huge considering the previous best ratio being k−12k-\frac{1}{2}, which was improved from an earlier ratio of kk. Notably, the running time of both the dynamic programming algorithm, and the Layering and Reverse Extension algorithm, is exponential in kk, and thus requires kk to be a fixed constant. It would be interesting to see whether the approximation ratio lower bound is O(k)O(k) or not, and if not, how one can improve the ratio into o(k)o(k).

References

  1. [1]Alimonti, P. and V. Kann. Some APX-completeness results for cubic graphs. Theoret. Comput. Sci., 237:123–134, 2000.DOI
  2. [2]Aprile, M., M. Drescher, S. Fiorini, and T. Huynh. A tight approximation algorithm for the cluster vertex deletion problem. Math. Program., 197:1069–1091, 2023.
  3. [3]Bar-Yehuda, R., K. Bendel, A. Freund, and D. Rawitz. Local ratio: A unified framework for approximation algorithms. ACM Comput. Surv., 36:422–463, 2004.
  4. [4]Bar-Yehuda, R. and S. Even. A linear-time approximation algorithm for the weighted vertex cover problem. J. Algorithms, 2:198–203, 1981.
  5. [5]Bienstock, D., N. Robertson, P. D. Seymour, and R. Thomas. Quickly excluding a forest. J. Combin. Theory Ser. B, 52:274–283, 1991.
  6. [6]Bodlaender, H. L. A linear-time algorithm for finding tree-decompositions of small treewidth. SIAM J. Comput., 25:1305–1317, 1996.
  7. [7]Bodlaender, H. L. and T. Kloks. Efficient and constructive algorithms for the pathwidth and treewidth of graphs. J. Algorithms, 21:358–402, 1996.
  8. [8]Brešar, B., F. Kardoš, J. Katrenič, and G. Semanišin. Minimum k-path vertex cover. Discrete Appl. Math., 159:1189–1195, 2011.DOI
  9. [9]Brešar, B., T. Kos, R. Krivoš-Belluš, and G. Semanišin. Hitting subgraphs in P₄-tidy graphs. Appl. Math. Comput., 352:211–219, 2019.DOI
  10. [10]Brešar, B., R. Krivoš-Belluš, G. Semanišin, and P. Šparl. On the weighted k-path vertex cover problem. Discrete Appl. Math., 177:14–18, 2014.
  11. [11]Brüstle, N., T. Elbaz, H. Hatami, O. Kocer, and B. Ma. Approximation algorithms for hitting subgraphs. In Proceedings of IWOCA 2021, pages 370–384, 2021.arxiv.org/abs/2011.14450
  12. [12]Camby, E., J. Cardinal, M. Chapelle, S. Fiorini, and G. Joret. A primal-dual 3-approximation algorithm for hitting 4-vertex paths. In Proceedings of ICGT 2014, page 61, 2014.
  13. [13]Diestel, R. Graph Theory. Springer, 5th edition, 2017.
  14. [14]Garey, M. R. and D. S. Johnson. Computers and Intractability: A Guide to the Theory of NP-completeness. W. H. Freeman and Company, San Francisco, 1979.
  15. [15]V. Giakoumakis, F. Roussel, and H. Thuillier. On P₄-tidy graphs. Discrete Math. & Theoret. Comput. Sci., 1:17–41, 1997.
  16. [16]D. S. Hochbaum. Approximation algorithms for the set covering and vertex cover problems. SIAM J. Comput., 11:555–556, 1982.DOI
  17. [17]S. Khot and O. Regev. Vertex Cover might be hard to approximate to within 2 − ε. J. Comput. Syst. Sci., 74:335–349, 2008.
  18. [18]E. Lee. Partitioning a graph into small pieces with applications to path transversal. Math. Program., 177:1–19, 2019.
  19. [19]Y. Orlovich, A. Dolgui, G. Finke, V. Gordon, and F. Werner. The complexity of dissociation set problems in graphs. Discrete Appl. Math., 159:1352–1366, 2011.DOI
  20. [20]B. Ries, B. Schamberg, and W. Unger. The k-observer problem on d-regular graphs. In Proceedings of SSS 2015, pages 81–93. Springer, 2015.DOI
  21. [21]J. Tu. Efficient algorithm for the vertex cover Pₖ problem on cacti. Appl. Math. Comput., 311:217–222, 2017.DOI
  22. [22]J. Tu. A survey on the k-path vertex cover problem. Axioms, 11:191, 2022.arxiv.org/abs/2201.03397
  23. [23]J. Tu and Y. Shi. An efficient polynomial time approximation scheme for the vertex cover P₃ problem on planar graphs. Discuss. Math. Graph Theory, 39:55–65, 2019.DOI
  24. [24]J. Tu and W. Zhou. A factor 2 approximation algorithm for the vertex cover P₃ problem. Inform. Process. Lett., 111:683–686, 2011.
  25. [25]J. Tu and W. Zhou. A primal-dual approximation algorithm for the vertex cover P₃ problem. Theoret. Comput. Sci., 412:7044–7048, 2011.DOI
  26. [26]A. Zhang, Y. Chen, Z.-Z. Chen, and G. Lin. Improved approximation algorithms for path vertex covers in regular graphs. Algorithmica, 82:3041–3064, 2020.arxiv.org/abs/1811.01162
  27. [27]Z. Zhang, X. Li, Y. Shi, H. Nie, and Y. Zhu. PTAS for minimum k-path vertex cover in ball graph. Inform. Process. Lett., 119:9–13, 2017.DOI

Paper details

vlnc:W_ubhsafxa
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Computer Science

Not recorded for this paper · View statement →

Looking for related papers…
Contents