Dynamic Set Cover with Worst-Case Recourse
Abstract
In the dynamic set cover (SC) problem, the input is a dynamic universe of at most elements and a fixed collection of sets, where each element belongs to at most sets and each set has a cost in . The objective is to efficiently maintain an approximate minimum SC under element updates. Efficiency is primarily measured by the update time, but another important parameter is the recourse (the number of changes to solution per update). Ideally, one would like to achieve low worst-case bounds on both update time and recourse.
One can achieve an approximation of (greedy-based) or (primal–dual-based) with worst-case update time (ignoring -dependencies). However, despite a large body of work, no algorithm with low update time (even amortized) and nontrivial worst-case recourse is known even for unweighted instances ()!
We remedy this by providing a transformation that, given a SC algorithm with approximation and update time as a black-box, returns a set cover algorithm with approximation , update time and worst-case recourse . Our main results are obtained by leveraging this transformation for constant :
-
For , applying the transformation on the best primal-dual-based algorithm yields worst-case recourse . For constant (e.g., vertex cover), we get near-optimal bounds on all parameters.
-
For , applying the transformation on the best greedy-based algorithm yields worst-case recourse . As our main technical contribution, we show that by opening the black box and exploiting a certain robustness property of the greedy-based algorithm, the worst-case recourse can be reduced to , without sacrificing the other parameters, yielding a -approximation with worst-case update time and worst-case recourse.
Keywords and phrases:
Dynamic graphs, set cover, recourseCategory:
Track A: Algorithms, Complexity and GamesFunding:
Shay Solomon: Funded by the European Union (ERC, DynOpt, 101043159). Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European Research Council. Neither the European Union nor the granting authority can be held responsible for them. This research was also supported by the Israel Science Foundation (ISF) grant No.1991/1, and by a grant from the United States-Israel Binational Science Foundation (BSF), Jerusalem, Israel, and the United States National Science Foundation (NSF).Copyright and License:
2012 ACM Subject Classification:
Theory of computation Dynamic graph algorithmsEditors:
Sayan Bhattacharya, Danupon Nanongkai, Michael Benedikt, and Gabriele PuppisSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
The minimum set cover (SC) problem is among the most extensively studied problems in combinatorial optimization, and represents the canonical covering problem. It is defined on a set system , where is a universe of elements and is a family of subsets of where each set has a cost (in the unweighted setting ). The frequency of the system is the maximum number of sets containing any element of . A collection is a SC if every element of is contained in at least one set in , and the goal is to find a cover of minimum cost . The classical primal–dual (PD) and greedy algorithms achieve approximations of and (roughly) , respectively [42]. These guarantees are believed to be optimal: improving beyond is impossible assuming the Unique Games Conjecture [31], and beyond is NP-hard [21, 42].
Dynamic Set Cover.
There is a growing body of work on the SC problem in the dynamic setting [1, 4, 11, 12, 13, 14, 17, 24, 40, 41], where the universe undergoes updates (an element is inserted or deleted per update, while ) and the family of sets is fixed. The algorithms are separated into the low-frequency regime () and the high-frequency regime (). The objective is to maintain a near-optimal approximate SC efficiently, where the most well-studied measure of efficiency is the update time – the time required to update the maintained solution per update. One may try to optimize the amortized (average) update time of the algorithm or its worst-case (maximum) update time. Another important efficiency measure, which has received growing research attention in recent years, is the recourse – the number of changes to the solution per update. Here too, one may try to optimize both amortized and worst-case recourse bounds.
Recourse.
Dynamic and online algorithms with low recourse have been studied for a wide range of optimization problems, including set cover, graph matching, MIS, Steiner tree, flow, and scheduling; see [2, 3, 5, 8, 9, 16, 18, 19, 22, 23, 24, 25, 26, 32, 40] and the references therein. In applications such as resource allocation (e.g., assigning servers to clients in a network) and vehicle scheduling (e.g., delivery routing), replacing one solution component with another can be prohibitive – often far more costly than the computational effort required to determine the replacement itself. This provides a primary motivation for algorithms with low recourse. Another motivation is that when the recourse bound is small, all changes to the maintained solution can be efficiently reported after each update, which is important in practical implementations – particularly when the algorithm serves as a black-box subroutine within a larger data structure or algorithm.
Amortized Versus Worst-case.
In many practical scenarios – particularly in systems requiring real-time responses – tight control over the worst-case update time or recourse is essential; consequently, algorithms with only amortized guarantees may be inadequate in such settings. Alas, for various dynamic problems, there is a strong separation between the state-of-the-art algorithms with low amortized versus worst-case bounds, in the update time or the recourse, or both. We discuss this separation for the SC problem in detail below. We note that a low worst-case update time does not imply a low worst-case recourse, as exemplified by the Maximal Independent Set (MIS) problem: [20] and [7] achieve worst-case update time with high probability (against an oblivious adversary), while [3] proved a lower bound of on the worst-case recourse. However, there are problems, such as approximate matchings, for which algorithms with low update time were strengthened to also achieve low worst-case recourse [37]; more on this in Section 2.
Our Focus.
This work focuses on dynamic SC algorithms with low worst-case recourse. Despite a large body of work, all known algorithms with non-trivial worst-case recourse incur slow update times. Can low worst-case recourse be achieved alongside fast update times? Here, “fast” does not refer to sub-exponential time or even polynomial in the input size, but rather polylogarithmic in the input size (and polynomial in ). The holy grail is to match the state-of-the-art worst-case update time while maintaining low worst-case recourse.
1.1 Prior Work
Slow Update Time, Worst-Case Recourse.
In the high-frequency regime, the only known algorithm with approximation and with low worst-case recourse requires exponential update time [24]. For low frequency and for unweighted instances, one can naively maintain a maximal matching (MM) with a worst-case update time of and a worst-case recourse of , and this generalizes to hypergraphs, with the update time and recourse bounds increasing by a factor of . Selecting all matched vertices yields an -approximate hypergraph vertex cover (i.e., -approximate SC).
Slow Update Time, Amortized Recourse.
Two algorithms with amortized recourse were given in [24] in the high-frequency and low-frequency regimes, achieving approximations and respectively, but with super-linear update time, essentially equivalent to recomputing the solution from scratch at each update step.
Fast Amortized Time, Amortized Recourse.
Fast Worst-case Time, High Recourse.
[14] gave a -approximation algorithm with worst-case update time. The state-of-the-art algorithms in both the low and high-frequency regimes, with near-optimal approximations of (PD-based) and (greedy-based) respectively, achieve a worst-case update time of [41]. All algorithms in [14, 41] incur a significantly high recourse, even amortized, since their approach relies on the notion of schedulers, which involves running multiple background solutions simultaneously and frequently switching between them, thereby blowing up the recourse.
We summarize prior work in Table 1. The following fundamental question naturally arises:
Question 1.
Can one obtain a SC algorithm with a nontrivial worst-case recourse bound, together with a fast (ideally worst-case) update time?
1.2 Our Contribution
We answer Question 1 affirmatively for both the high-frequency and low-frequency regimes, for instances with a small aspect ratio . Our first result, proved in Section 2, is the following:
Theorem 1 (Black-box Transformation).
Let be an algorithm that maintains an -approximate SC with an update time (either amortized or worst-case). Using as a black box, one can maintain a -approximate SC (assuming and ) in (amortized or worst-case) update time , and with a worst-case recourse of .
Corollary 2 (Low-Frequency).
For any set system that undergoes a sequence of element insertions and deletions, where the frequency is always bounded by , and for any , there is a deterministic algorithm that maintains a -approximate SC in worst-case update time and with worst-case recourse.
Remarks.
(1) Corollary 2 provides a recourse of for constant (and ). (2) For the minimum (weighted) vertex cover problem, by setting in Corollary 2, we can deterministically maintain a -approximate vertex cover in worst-case update time and with worst-case recourse. Despite a large body of work on dynamic vertex cover [6, 11, 12, 13, 14, 15, 27, 33, 35, 36, 38, 39, 41], this is the first -approximation algorithm to achieve both low worst-case recourse and fast update time.
Applying Theorem 1 to the greedy-based algorithm of [41] results in a worst-case recourse of . As our main technical contribution, we “open the box” to remove the factor from the recourse without compromising other parameters. We achieve this by exploiting a certain robustness property of the greedy-based algorithm. We say that a fixed -approximate SC on the set system is robust if following the deletion of up to arbitrary elements from , for any , is a -approximate SC. 111We use and not since is reserved for the final approximation guarantee. In Section 3.1 we observe that, whereas the SC produced by the classic static PD algorithm is not robust, the SC produced by the static greedy algorithm is. A dynamic -approximate SC algorithm is said to be robust if at any point in time the output SC is robust. As we will show in Section 3.2, although the notion of robustness is defined against a sequence of deletions, the property naturally extends to sequences involving both deletions and insertions. We will prove there that the greedy-based dynamic algorithm of [41] (with state-of-the-art worst-case update time) is robust (against deletions and insertions), which provides the necessary “slack” (as explained in Section 4) to prove the following:
Theorem 3 (High-Frequency).
For any set system that undergoes a sequence of element insertions and deletions, where the frequency is always bounded by , and for any , there is a deterministic algorithm that maintains a -approximate SC in worst-case update time and with worst-case recourse.
Remark.
For constant , and in particular unweighted instances (), Theorem 3 gives an asymptotically optimal worst-case recourse, with the state-of-the-art worst-case update time, and with twice the near-optimal approximation.
As a direct corollary of Theorem 3, we obtain a result for the minimum dominating set (DS) problem. In the DS problem, we are given a graph , where , and each vertex has an associated cost. The goal is to find a subset of vertices of minimum total cost, such that for any vertex , either or has a neighbor in . In the dynamic setting, the adversary inserts or deletes an edge at each update step. We obtain the following result for the DS problem, improving previous results [29, 40], via a simple reduction to the SC problem (described in Section 6 in [41]), which allows us to use our SC algorithm provided by Theorem 3 as a black box.
Theorem 4 (Dominating Set).
For any graph that undergoes a sequence of edge insertions and deletions, where the degree is always bounded by , and for any , there is a dynamic algorithm that maintains a -approximate minimum weighted dominating set in deterministic worst-case update time and with worst-case recourse.
1.3 Concurrent Work
Independent of our work, Bhattacharya et al. [10] (STOC 2026) also presented low worst-case recourse algorithms for the dynamic set cover problem, focusing exclusively on the unweighted setting (). Our results outperform those of [10] across all parameters: approximation factor, update time, and recourse. Specifically: (1) While we achieve approximation factors of and , their factors are and , where the constants hidden in the -notation are larger than 2.222It is implied from Section 4 of [10] that they did not try to optimize the hidden constants, yet their approach is inherently limited at the factor 2 barrier: “It seems plausible that our framework can be used to reduce the approximation factors to and . However, the gap of 2 is an inherent barrier”. (2) Our update times provide a factor improvement. (3) Our recourse bounds are stronger: in the low-frequency regime (), we get recourse rather than , and in the high-frequency regime, we get recourse rather than . (See Table 2 for a comparison between the two works.) Finally, from a technical perspective, the two works are based on different approaches, with our approach being arguably much simpler.
1.4 Organization
Section 2 provides the proof of Theorem 1, which, when combined with the state-of-the-art PD-based algorithm of [41], directly implies Corollary 2. Combining Theorem 1 with the state-of-the-art greedy-based algorithm of [41] yields a worst-case recourse of . Section 3 is devoted to the robustness property. We first (Section 3.1) observe that the SC produced by the static greedy algorithm is robust, whereas the one produced by the classic static PD algorithm is not. We then (Section 3.2) strengthen the observation on the robustness of the static greedy algorithm by proving that the greedy-based dynamic algorithm of [41], which achieves the current state-of-the-art worst-case update time, is also robust. By carefully exploiting this robustness property, in Section 4 we demonstrate that the factor in the worst-case recourse of the greedy-based algorithm can be eliminated, achieving recourse and thus proving Theorem 3.
2 Worst-case Recourse: Black-box Transformation
This section is devoted to the proof of Theorem 1. When combined with the PD-based algorithm of [41], it directly implies Corollary 2.
2.1 A Static Reconfiguration Problem
The framework of reconfiguration problems has received extensive research attention; see [28, 30, 34, 37] and the references therein. The basic goal in reconfiguration problems is to compute a gradual transformation between two feasible solutions, so that all intermediate solutions are feasible. For the SC problem, given two feasible solutions (the source) and (the target), the goal is to gradually transform into , while changing only a small number of sets at each step. Assuming both solutions are -approximations, it is straightforward to achieve a gradual transformation where the approximation ratio throughout the process is at most . Moreover, such a factor 2 loss is inevitable, even for vertex cover; e.g., consider (the complete bipartite graph with vertices on each side), and assume the source and target solutions consist of the vertices on the left and right side, respectively. To maintain feasibility, we must add all right-side vertices to the solution before we can remove from it even one left-side vertex. On the other hand, for packing problems, and for approximate matchings in particular, a reconfiguration between any source and target matching does not necessarily incur a factor blow-up in the approximation; indeed, [37] gave a matching reconfiguration algorithm that increases the approximation by a factor of , and used it to achieve a black-box transformation for dynamic matching algorithms with low worst-case recourse.
2.2 Overview
Our goal is to transform a given dynamic SC algorithm, denoted by , that may have high worst-case recourse into one with low worst-case recourse, via a black-box transformation. To achieve this, we reduce our dynamic problem – of guaranteeing low worst-case recourse while preserving almost the same approximation and update time guarantees of the black-box – to a static reconfiguration problem. The basic idea is to try and stick to the same output SC, changing it as little as possible to cope with element updates, until the approximation ratio deteriorates (a bit), at which stage we would need to switch the output SC to a better SC, but we must do it gradually rather than instantaneously. To this end, we shall run in the “background”, and “sample” it for the output SC only periodically; we would like to gradually transform the current output SC (whose approximation has deteriorated) into the freshly sampled SC (whose approximation is good) throughout a sufficiently long time interval – as long as needed by the solution to the static reconfiguration problem.
Thus, we partition the update sequence into disjoint consecutive intervals, and at the start of each interval, the current output SC serves as the source solution, and the SC maintained by serves as the target. We gradually transform the output from the source to the target during the interval; we would need to choose the interval lengths appropriately (see below), so that we will be able to complete the transformation process by the time the interval ends with a low worst-case recourse and with the required approximation guarantee. One hurdle in the dynamic setting that we completely ignored, which does not arise in the static reconfiguration problem, is that the element updates that occur during an interval may damage both the feasibility and approximation guarantee of the output SC. However, we show that the naive treatment of element updates for achieving feasibility has little effect on the approximation factor for small aspect ratio , and in general one can simply increase the recourse by a factor of .
2.3 Algorithm
Our algorithm will simulate in the background. Denote by the worst-case update time of . The update sequence will be divided into intervals. It begins with an “initial interval”, and then the first interval, the second interval, etc. We will denote the output solution, the background solution given by , and an optimum solution, at the beginning of the -th interval by , and , respectively. We define the initial interval as the -th interval, and we assume that . During the -th interval (for ), we want to gradually transform the output from to . Since at the end of the -th interval might no longer be a legal SC, for every element that is inserted during the interval, we add a set containing it to the output (this is not necessarily needed but in the worst-case this does occur so we assume so for simplicity). We define this as naively maintaining or naively extending the solution. We denote the collection of sets added naively during the -th interval as . Thus, our goal is to gradually transform the output from (source) to (target) by the end of the -th interval.
To do so, we divide the -th interval (for ) into two phases of equal length, the adding phase and the removing phase. In the adding phase we gradually add sets in to the output, and in the removing phase we gradually remove sets in from the output. In addition, as mentioned in the previous paragraph, during both phases we naively add one set per insertion. At the end of the second phase we have that .
The length of each phase in the -th interval will be update steps, so the length of the -th interval will be twice as long. We emphasize that the -th interval can also simply be of length or update steps (regardless of which is larger), and the theorem would still hold, but for the sake of consistency with Section 4 we take the maximum, which is necessary there. The initial interval will simply be of length where at the end of it . To simplify the analysis, we assume that all terms within the ceilings are integers.
2.4 Analysis
Observation 5 (Recourse).
The worst-case recourse is .
Proof.
The worst-case recourse during the initial interval is one. In each phase in the -th interval () we gradually add or remove sets. This is done in up to update steps. We add one more set per insertion.
Observation 6 (Update Time).
The worst-case update time is .
Proof.
Three procedures contribute to the update time. The first is the update time of running in the background, . The second is the gradual maintenance of the solution, with update time linear in that of the recourse. The third is choosing an arbitrary set containing an inserted element and adding it to the solution, which can be done in time.
Observation 7 (Legal Solution).
The output is always a valid SC (i.e., covers all elements).
Proof.
In the beginning of the -th interval we have two legal solutions, and . Throughout the -th interval the output solution always fully contains at least one of them, plus a set containing each inserted element. For the approximation factor, we will prove by induction on the intervals the following claim:
Claim 8 (Approximation Factor).
For any :
-
1.
The approximation factor of the output solution throughout the -th interval is .
-
2.
The approximation factor of the output solution at the beginning of the -th interval is .
2.4.1 Proof of Claim 8
In this section we prove Claim 8. Theorem 1 would hold by Observation 5, Observation 6, Observation 7 and Claim 8 (1). For any , denote the output solution, the background solution given by , and an optimum solution, update steps after the beginning of the -th interval until it ends, by , and , respectively. For the highest possible (given a specific ) we have , and . We begin with the following observation:
Observation 9.
In each update step the cost of the output can increase by at most , since the cost of sets lies in the range . Similarly, in each update step the cost of the optimum can decrease by up to , since only one set can leave an optimum solution each update step (and its cost is upper bounded by ).
We begin by proving the base case.
Observation 10.
For any we have that and .
Proof.
Observation 11.
The approximation factor update steps after the beginning of the initial interval and until it ends is .
Proof.
By Observation 10 we get that:
where the last inequality holds for any and . We have shown that both items of Claim 8 hold for the base case (). For the induction step, we begin with the first item:
Observation 12.
The approximation factor update steps after the beginning of the -th interval and until it ends is .
Proof.
where the first inequality is by Observation 9, the second by the induction hypothesis (Claim 8 (2)), and the last holds for any and .
Observation 13.
At the beginning of the -th interval, the approximation factor is .
Proof.
where the first inequality is by Observation 9, the second by the induction hypothesis (Claim 8 (2)), and the last holds for any and . See Figure 1 for an illustration of the black-box transformation. We have shown that both items of Claim 8 hold for the induction step, concluding its proof. This completes the proof of Theorem 1.
3 The Robustness Property
The main result of this section is Lemma 16, which asserts that the greedy-based dynamic algorithm of [41] is robust. This robustness property is crucial for shaving off the term from the recourse, thereby proving Theorem 3 (see Section 4 for details). We begin in Section 3.1 by observing (Observation 14) that the classic static greedy algorithm produces a robust SC whereas the classic static PD algorithm is not robust. While Observation 14 serves as a warm-up for the dynamic robustness lemma (Lemma 16), it may also be of independent interest.
3.1 The Robustness Property I: The Greedy and PD Static Algorithms
Observation 14 (Warm-up: Static greedy is robust).
Let be any set system and let be a SC returned by the classic greedy algorithm, and the optimum value. Let be any set of deleted elements with for any , and let be the optimum value after these deletions. Then:
where and is the -th harmonic number.
Proof.
As the greedy algorithm selects a set that newly covers a set of elements , assign to each such element a weight:
The total cost of the greedy solution equals the sum of assigned weights:
Since and , we have for all . Define the restricted weights to be if and otherwise. Then:
| (1) |
Now, let be the sets in an optimal set cover for the system after deletions . Consider one such set . Let the elements of be , ordered by when they were covered by the greedy algorithm.
Claim 15.
For any , we have .
Proof.
At the step where the greedy algorithm covers using some set , the elements are all still uncovered. Thus, at that point, the set contains at least uncovered elements. Since the greedy algorithm picks a set to minimize the cost-per-newly-covered-element ratio:
As for , the claim follows. Summing the weights for all elements in that were not deleted:
By summing over all sets in the optimal solution :
| (2) |
Since the optimal solution covers all elements in , we have:
| (3) |
Remark.
Replacing with , where , gives:
The classic PD algorithm is not robust.
Consider the following canonical unweighted instance: For each element , where , create sets that contain only . The PD algorithm could add all sets to the SC, while has size . If elements are deleted, for any , we have . In particular, for (the extreme case being ), is of size (or 0); thus already for , after deleting a fraction of the elements in the solution produced by the PD algorithm, the approximation may become arbitrarily large, thus the PD algorithm is not robust (and actually far from robust). Furthermore, if , we will need to delete sets from the set cover to achieve an approximation factor of , which gives an amortized recourse of for any reasonable approximation. This shows the asymptotic optimality of the recourse bound provided by Corollary 2 (for constant and ): any PD-based algorithm must have a recourse of , even in the amortized sense and the decremental-only setting.
Although this example with singleton sets is degenerate, since there is no incentive to include multiple sets to cover the same element, this can be extended to less degenerate instances with more dummy sets and elements. The key point remains: the fact that a sequence of deletions can cause to drop significantly does not imply that the initial approximation was strictly better than , in contrast to the greedy algorithm, as seen in Observation 14.
3.2 The Robustness Property II: The Dynamic Algorithm [41]
In this section we prove that the greedy-based algorithm of [41] is robust. In fact, we prove a stronger variant: the algorithm is also “robust against insertions”, as defined below.
Lemma 16 ([41] is Robust - Greedy-Based).
Consider a solution given by [41] denoted by , yielding an approximation factor of . Then throughout the next update steps (for any ) during which we maintain naively (adding an arbitrary set containing each inserted element to it), the approximation factor is .
3.2.1 Preliminaries
We first review the primary definitions from [41]. Let . All sets are assigned a level value where . Throughout the algorithm, a valid set cover is maintained for all elements. Each element is assigned to one of the sets , which we denote by , and conversely, for each set , define its covering set to be the collection of elements in that are assigned to , namely . The level of an element is defined as the level of the set it is assigned to, namely , and we are guaranteed that , i.e., is assigned to the highest-level set containing it. We define the level of each set to be , whereas the level of each set will lie in , so in particular we will have , for each element . Let , and .
Besides the level value for elements , a value of passive level such that is also maintained, which is central to the algorithm. In contrast to the level of an element , which may decrease (as well as increase) by the algorithm, its passive level is monotonically non-decreasing throughout its lifespan.
An element is said to be dead if it was deleted by the adversary, hence it should be removed from , yet it remains in because the algorithm has not yet “processed” the deletion. An element is said to be alive if it is not dead. To avoid confusion, the notation is used to denote the set of all dead and alive elements (i.e., the elements from the algorithm’s perspective), while is the set of alive elements (i.e., the elements from the adversary’s perspective). We next introduce the following key definitions.
Definition 17.
For each level , an element is called -active (respectively, -passive) if (resp., ) and let and be the sets of all -active and -passive elements, respectively. Notice that is the collection of all elements at level , and . Moreover, if for two levels , then . For each set , define .
3.2.2 Invariants
The algorithm of [41] maintains the following three invariants. The first and second are identical to those presented in [41], but the third here is a relaxed version of the third there, which originally demanded that for each , we have . This relaxation is crucial for the robustness proof.
-
1.
For any set and for each , we have .
-
2.
For any set , we have ; we note that may include dead elements, i.e., elements in . In particular, . Moreover, for each , .
-
3.
3.2.3 Proof of Lemma 16
For the most part, the proof of Lemma 16 follows the proof of the approximation factor in [41], except in one key area. We will present the entire formal proof and state exactly where this deviation occurs. Specifically, the first and third parts will be similar to [41], whereas the second part will be new.
Part I – Similar to [41].
The left-hand side of the third invariant can be rewritten as:
and the right-hand side of the third invariant can be rewritten as:
which yields:
or equivalently, by adding to both sides:
| (4) |
We emphasize the point that also includes dead elements. We also have that:
| (5) | ||||
where the first inequality holds by the second invariant and the second holds as and hence . Combining Equation 4 and Equation 5 we obtain:
| (6) |
Part II – New Ideas.
Our goal will be to show that following updates we have:
| (7) |
The most adverse effect of an insertion is an increase in the cost of the maintained set cover by one. Conversely, the most significant reduction to the right-hand side of Equation 6 occurs if a deleted element’s passive level drops from the maximum level to zero. We will first handle the deletions. By deletions, the right-hand side of Equation 6 can be lowered only by less than . This is because for each deleted element , can rise only by less than , and the rest does not change. Thus, after the deletions, we can claim that:
| (8) |
Rearranging, and for any , we indeed get that Equation 7 holds. Regarding the insertions, in the worst-case grew by a factor of , since the cost of each set is no more than . Clearly Equation 7 would still hold (by multiplying the right-hand side of Equation 7 by ).
Part III – Similar to [41].
Denote by an optimum SC. Next, let us lower bound using the term . For any , consider the following three cases for any index :
-
.
By the first invariant, we have: , so .
-
.
By the first invariant, we have:
-
.
In this case, we use the trivial bound: , and so we have:
Observe that:
| (9) | ||||
By the above case analysis, we have:
| (10) | ||||
Combining Equation 9 with Equation 10 yields
Therefore, as , under the assumption that we have:
Since is a valid set cover for all elements in (all the alive elements) and as for each dead element (in ) we have , it follows that:
| (11) |
We conclude that:
where the first inequality holds by Equation 7 and the second by Equation 11. By scaling , we conclude the proof of Lemma 16.
4 Worst-Case Recourse: to (Greedy)
This section is devoted to the proof of Theorem 3. We begin by recalling the main greedy-based result obtained by [41]:
Theorem 18 ([41] – Greedy-Based).
For any set system that undergoes a sequence of element insertions and deletions, where the frequency is bounded by , and for any , there is a deterministic algorithm that maintains a -approximate SC in worst-case update time.
Applying this algorithm to our black-box transformation presented in Section 2 yields a -approximate SC in worst-case update time and with a worst-case recourse of . Our goal is to remove the factor from the recourse bound. The core strategy is to scale the interval lengths as defined in Section 2 by a factor of to reduce the recourse, while leveraging the robustness property established in Section 3.2 to ensure the approximation ratio remains bounded. However, the situation is much more subtle, since the robustness of a SC solution depends on its cost, while the costs of the source and target solutions at the start and end of each interval may differ by a factor of . This subtlety necessitates a considerably more refined analysis, detailed in Section 4.2.
4.1 Algorithm Description
We employ the exact same algorithm as in Section 2, with the sole modification being that interval lengths are increased by a factor of . Specifically, the length of the -th interval will be update steps, and each phase will consist of update steps. The initial interval will have a length of update steps. To simplify the analysis, we assume that all terms within the ceilings are integers.
Observation 19 (Recourse).
The worst-case recourse is .
Proof.
The worst-case recourse during the initial interval is one. In each phase in the -th interval () we gradually add or remove sets. This is done in up to update steps. We add one more set per insertion.
Observation 20 (Update Time).
The worst-case update time is .
Proof.
Three procedures contribute to the update time. The first is the update time of running [41] in the background, . The second is the gradual maintenance of the solution, with update time linear in that of the recourse. The third is choosing an arbitrary set containing an inserted element and adding it to the solution, which can be done in time.
Observation 21 (Legal Solution).
At all times the output is a legal SC solution (covers all elements).
Proof.
In the beginning of the -th interval we have two legal solutions, and . Throughout the -th interval the output solution always fully contains at least one of them, plus a set containing each inserted element.
4.2 Approximation Factor
During the -th interval, our output solution is contained in . Thus, we aim to upper bound to the approximation factor of this legal solution. We distinguish between the source solution and the target solution . Instead of explicitly analyzing the approximation factor of each one, each interval will have an anchor, which is a solution given by [41], specifically for some . Essentially, our goal is to show that the cost of the source/target solution throughout the -th interval is bounded by the cost of a “theoretical” solution – which we do not explicitly maintain – that possesses a favorable approximation factor throughout the -th interval, which is the naive extension of the anchor throughout the -th interval. Thus, we must show three things:
-
1.
The cost of the source solution is bounded by the cost of the naively maintained anchor.
-
2.
The cost of the target solution is bounded by the cost of the naively maintained anchor.
-
3.
The naively maintained anchor has a good approximation factor throughout the -th interval (established by applying Lemma 16).
We emphasize that we do not explicitly maintain the naively extended anchor, it is used solely for the analysis. We first argue that the case is straightforward. Indeed, since the “fresh” solution dominates, we can simply take , meaning is the anchor. Clearly the naively maintained anchor is a -approximate SC throughout the -th interval, since the length of the -th interval is . Thus we can apply Lemma 16 with . Moreover, the target solution’s cost is bounded by the naively maintained anchor’s cost by definition, as they coincide. The source solution’s cost is bounded by the naively maintained anchor’s cost since , and throughout the interval the source solution remains static while the naively maintained anchor’s cost is non-decreasing. Since throughout the -th interval our output solution is contained in , and , we conclude with the following corollary:
Corollary 22.
If , then throughout the -th interval the output solution gives an approximation ratio of .
In what follows we assume that . In this case, the anchor of the -th interval is , where is the index of the most recent interval such that . Note that is well defined since .
Claim 23.
For any :
Proof.
For any , we have that . Note that for any , it follows that:
| (12) |
and for we have:
| (13) |
Thus, for any we have:
| (14) |
Claim 24.
The number of update steps from the beginning of the -th interval to the end of the -th interval is .
Proof.
Let denote the number of update steps from the beginning of the -th interval to the end of the -th interval. We have that:
| (15) |
where the first inequality follows from the definition of the anchor and the second from Claim 23. Bounding the geometric series yields:
| (16) |
where the last inequality holds for any , and the claim follows. See Figure 2 for an illustration of the proof of Claim 24.
By Claim 24, we naively maintain our anchor for up to update steps, so we can apply Lemma 16 on it with and conclude with the following corollary:
Corollary 25.
The naively maintained anchor is a -approximate SC throughout the -th interval.
Observation 26.
The cost of the target solution is bounded by .
Proof.
We have that:
Setting in Claim 23 yields:
and so the claim holds. Setting in Claim 23 also immediately yields the following observation:
Observation 27.
The cost of the source solution is bounded by .
Throughout the -th interval our output solution is contained in . Since , the following corollary follows directly from Corollary 25, Observation 26 and Observation 27:
Corollary 28.
If , then throughout the -th interval the output solution gives an approximation ratio of .
By combining Corollary 22 and Corollary 28, we obtain the following:
Corollary 29.
Throughout the entire update sequence, the output solution achieves an approximation ratio of .
The proof of Theorem 3 follows from Observation 19, Observation 20, Observation 21 and Corollary 29, after appropriately scaling .
5 Conclusions and Open Questions
We presented a simple black-box transformation that takes any dynamic set cover (SC) algorithm and produces a dynamic SC algorithm with similar approximation and update time guarantees, while ensuring a worst-case recourse of , where is the approximation factor of and is the aspect ratio. This transformation comes with three limitations: (1) the approximation factor increases by roughly a factor of two; (2) the recourse depends linearly on ; and (3) the recourse depends linearly on .
To address limitation (3), we identified a robustness property of the classic greedy algorithm – which does not hold for primal–dual (PD) algorithms – and showed that the greedy-based dynamic algorithm of [41] maintains a robust SC at all times. By leveraging this property in a nontrivial way, we removed the dependence in the recourse bound for the high-frequency regime, improving it from to . In contrast, in the low-frequency regime, we showed that removing the dependence is impossible when relying on PD-based algorithms.
Our black-box transformation relies on the reconfiguration problem. As discussed in Section 2.1, even for vertex cover this framework inherently incurs the approximation blow-up in (1), as well as the recourse dependencies in (2) and (3).
This leaves the following open question. Is there an alternative approach – possibly abandoning the black-box paradigm – that avoids limitations (1) and (2)? In particular, can one reduce or eliminate the factor- loss in the approximation guarantee and/or achieve a sublinear, preferably polylogarithmic, dependence on the aspect ratio ? We view these as the main directions for future work.
References
- [1] Amir Abboud, Raghavendra Addanki, Fabrizio Grandoni, Debmalya Panigrahi, and Barna Saha. Dynamic set cover: improved algorithms and lower bounds. In Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing, pages 114–125, 2019. doi:10.1145/3313276.3316376.
- [2] Spyros Angelopoulos, Christoph Dürr, and Shendan Jin. Online maximum matching with recourse. J. Comb. Optim., 40(4):974–1007, 2020. doi:10.1007/s10878-020-00641-w.
- [3] Sepehr Assadi, Krzysztof Onak, Baruch Schieber, and Shay Solomon. Fully dynamic maximal independent set with sublinear update time. In Proceedings of the 50th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2018, pages 815–826, New York, NY, USA, 2018. Association for Computing Machinery. doi:10.1145/3188745.3188922.
- [4] Sepehr Assadi and Shay Solomon. Fully Dynamic Set Cover via Hypergraph Maximal Matching: An Optimal Approximation Through a Local Approach. In 29th Annual European Symposium on Algorithms (ESA 2021), volume 204 of Leibniz International Proceedings in Informatics (LIPIcs), pages 8:1–8:18. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2021. doi:10.4230/LIPIcs.ESA.2021.8.
- [5] Nikhil Bansal, Anupam Gupta, Ravishankar Krishnaswamy, Kirk Pruhs, Kevin Schewior, and Cliff Stein. A 2-Competitive Algorithm For Online Convex Optimization With Switching Costs. In Naveen Garg, Klaus Jansen, Anup Rao, and José D. P. Rolim, editors, Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM 2015), volume 40 of Leibniz International Proceedings in Informatics (LIPIcs), pages 96–109, Dagstuhl, Germany, 2015. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.APPROX-RANDOM.2015.96.
- [6] Surender Baswana, Manoj Gupta, and Sandeep Sen. Fully dynamic maximal matching in O(logn) update time. In 2011 IEEE 52nd Annual Symposium on Foundations of Computer Science, pages 383–392, 2011. doi:10.1109/FOCS.2011.89.
- [7] Soheil Behnezhad, Mahsa Derakhshan, MohammadTaghi Hajiaghayi, Cliff Stein, and Madhu Sudan. Fully dynamic maximal independent set with polylogarithmic update time. In 2019 IEEE 60th Annual Symposium on Foundations of Computer Science (FOCS), pages 382–405, 2019. doi:10.1109/FOCS.2019.00032.
- [8] Aaron Bernstein, Jacob Holm, and Eva Rotenberg. Online bipartite matching with amortized O replacements. J. ACM, 66(5), 2019. doi:10.1145/3344999.
- [9] Aaron Bernstein, Tsvi Kopelowitz, Seth Pettie, Ely Porat, and Clifford Stein. Simultaneously Load Balancing for Every p-norm, With Reassignments. In Christos H. Papadimitriou, editor, 8th Innovations in Theoretical Computer Science Conference (ITCS 2017), volume 67 of Leibniz International Proceedings in Informatics (LIPIcs), pages 51:1–51:14, Dagstuhl, Germany, 2017. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.ITCS.2017.51.
- [10] Sayan Bhattacharya, Ruoxu Cen, and Debmalya Panigrahi. Fully dynamic set cover: Worst-case recourse and update time. CoRR, abs/2511.08485, November 2025. Accepted to STOC 2026. doi:10.48550/arXiv.2511.08485.
- [11] Sayan Bhattacharya, Deeparnab Chakrabarty, and Monika Henzinger. Deterministic fully dynamic approximate vertex cover and fractional matching in O(1) amortized update time. In International Conference on Integer Programming and Combinatorial Optimization, pages 86–98. Springer, 2017. doi:10.1007/978-3-319-59250-3_8.
- [12] Sayan Bhattacharya, Monika Henzinger, and Giuseppe F Italiano. Design of dynamic algorithms via primal-dual method. In International Colloquium on Automata, Languages, and Programming, pages 206–218. Springer, 2015. doi:10.1007/978-3-662-47672-7_17.
- [13] Sayan Bhattacharya, Monika Henzinger, and Danupon Nanongkai. A new deterministic algorithm for dynamic set cover. In 2019 IEEE 60th Annual Symposium on Foundations of Computer Science (FOCS), pages 406–423. IEEE, 2019. doi:10.1109/FOCS.2019.00033.
- [14] Sayan Bhattacharya, Monika Henzinger, Danupon Nanongkai, and Xiaowei Wu. Dynamic set cover: Improved amortized and worst-case update time. In Proceedings of the 2021 ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 2537–2549. SIAM, 2021. doi:10.1137/1.9781611976465.150.
- [15] Sayan Bhattacharya and Janardhan Kulkarni. Deterministically Maintaining a -Approximate Minimum Vertex Cover in O Amortized Update Time, pages 1872–1885. SIAM, January 2019. doi:10.1137/1.9781611975482.113.
- [16] Bartłomiej Bosek, Dariusz Leniowski, Piotr Sankowski, and Anna Zych. A Tight Bound for Shortest Augmenting Paths on Trees, pages 201–216. Springer, March 2018. doi:10.1007/978-3-319-77404-6_16.
- [17] Anton Bukov, Shay Solomon, and Tianyi Zhang. Nearly optimal dynamic set cover: Breaking the quadratic-in- time barrier. arXiv preprint arXiv:2308.00793, 2023. doi:10.48550/arXiv.2308.00793.
- [18] Keren Censor-Hillel, Elad Haramaty, and Zohar Karnin. Optimal dynamic distributed mis. In Proceedings of the 2016 ACM Symposium on Principles of Distributed Computing, PODC ’16, pages 217–226, New York, NY, USA, 2016. Association for Computing Machinery. doi:10.1145/2933057.2933083.
- [19] K. Chaudhuri, C. Daskalakis, R. D. Kleinberg, and H. Lin. Online bipartite perfect matching with augmentations. In IEEE INFOCOM 2009, pages 1044–1052, 2009. doi:10.1109/INFCOM.2009.5062016.
- [20] Shiri Chechik and Tianyi Zhang. Fully dynamic maximal independent set in expected poly-log update time. In 2019 IEEE 60th Annual Symposium on Foundations of Computer Science (FOCS), pages 370–381, 2019. doi:10.1109/FOCS.2019.00031.
- [21] Irit Dinur and David Steurer. Analytical approach to parallel repetition. In Proceedings of the forty-sixth annual ACM symposium on Theory of computing, pages 624–633, 2014. doi:10.1145/2591796.2591884.
- [22] Edward F. Grove, Ming-Yang Kao, P. Krishnan, and Jeffrey Scott Vitter. Online perfect matching and mobile computing. In Proceedings of the 4th International Workshop on Algorithms and Data Structures, WADS ’95, pages 194–205, Berlin, Heidelberg, 1995. Springer-Verlag. doi:10.1007/3-540-60220-8_62.
- [23] Albert Gu, Anupam Gupta, and Amit Kumar. The power of deferral: maintaining a constant-competitive steiner tree online. In Proceedings of the Forty-Fifth Annual ACM Symposium on Theory of Computing, STOC ’13, pages 525–534, New York, NY, USA, 2013. Association for Computing Machinery. doi:10.1145/2488608.2488674.
- [24] Anupam Gupta, Ravishankar Krishnaswamy, Amit Kumar, and Debmalya Panigrahi. Online and dynamic algorithms for set cover. In Proceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing, pages 537–550, 2017. doi:10.1145/3055399.3055493.
- [25] Anupam Gupta and Amit Kumar. Online steiner tree with deletions. In Proceedings of the Twenty-Fifth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA ’14, pages 455–467, USA, 2014. Society for Industrial and Applied Mathematics. doi:10.1137/1.9781611973402.34.
- [26] Anupam Gupta, Amit Kumar, and Cliff Stein. Maintaining Assignments Online: Matching, Scheduling, and Flows, pages 468–479. SIAM, 2014. doi:10.1137/1.9781611973402.35.
- [27] Manoj Gupta and Richard Peng. Fully Dynamic -Approximate Matchings . In 2013 IEEE 54th Annual Symposium on Foundations of Computer Science (FOCS), pages 548–557, Los Alamitos, CA, USA, October 2013. IEEE Computer Society. doi:10.1109/FOCS.2013.65.
- [28] Jan van den Heuvel. The complexity of change, pages 127–160. London Mathematical Society Lecture Note Series. Cambridge University Press, 2013. doi:10.1017/CBO9781139506748.005.
- [29] Niklas Hjuler, Giuseppe F. Italiano, Nikos Parotsidis, and David Saulpic. Dominating Sets and Connected Dominating Sets in Dynamic Graphs. In Rolf Niedermeier and Christophe Paul, editors, 36th International Symposium on Theoretical Aspects of Computer Science (STACS 2019), volume 126 of Leibniz International Proceedings in Informatics (LIPIcs), pages 35:1–35:17, Dagstuhl, Germany, 2019. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.STACS.2019.35.
- [30] Takehiro Ito, Erik D. Demaine, Nicholas J. A. Harvey, Christos H. Papadimitriou, Martha Sideri, Ryuhei Uehara, and Yushi Uno. On the complexity of reconfiguration problems. Theor. Comput. Sci., 412(12–14):1054–1065, 2011. doi:10.1016/j.tcs.2010.12.005.
- [31] Subhash Khot and Oded Regev. Vertex cover might be hard to approximate to within . Journal of Computer and System Sciences, 74(3):335–349, 2008.
- [32] Nicole Megow, Martin Skutella, José Verschae, and Andreas Wiese. The power of recourse for online mst and tsp. SIAM Journal on Computing, 45(3):859–880, 2016. doi:10.1137/130917703.
- [33] Ofer Neiman and Shay Solomon. Simple deterministic algorithms for fully dynamic maximal matching. ACM Trans. Algorithms, 12(1), 2015. doi:10.1145/2700206.
- [34] Naomi Nishimura. Introduction to reconfiguration. Algorithms, 11(4), 2018. doi:10.3390/a11040052.
- [35] Krzysztof Onak and Ronitt Rubinfeld. Maintaining a large matching and a small vertex cover. In Proceedings of the Forty-Second ACM Symposium on Theory of Computing, STOC ’10, pages 457–464, New York, NY, USA, 2010. Association for Computing Machinery. doi:10.1145/1806689.1806753.
- [36] David Peleg and Shay Solomon. Dynamic -Approximate Matchings: A Density-Sensitive Approach, pages 712–729. SIAM, 2016. doi:10.1137/1.9781611974331.ch51.
- [37] Noam Solomon and Shay Solomon. A Generalized Matching Reconfiguration Problem. In James R. Lee, editor, 12th Innovations in Theoretical Computer Science Conference (ITCS 2021), volume 185 of Leibniz International Proceedings in Informatics (LIPIcs), pages 57:1–57:20, Dagstuhl, Germany, 2021. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.ITCS.2021.57.
- [38] Shay Solomon. Fully Dynamic Maximal Matching in Constant Update Time . In 2016 IEEE 57th Annual Symposium on Foundations of Computer Science (FOCS), pages 325–334, Los Alamitos, CA, USA, October 2016. IEEE Computer Society. doi:10.1109/FOCS.2016.43.
- [39] Shay Solomon. Local algorithms for bounded degree sparsifiers in sparse graphs. In Anna R. Karlin, editor, 9th Innovations in Theoretical Computer Science Conference, ITCS 2018, January 11-14, 2018, Cambridge, MA, USA, volume 94 of LIPIcs, pages 52:1–52:19. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2018. doi:10.4230/LIPIcs.ITCS.2018.52.
- [40] Shay Solomon and Amitai Uzrad. Dynamic -Approximation Algorithms for Minimum Set Cover and Dominating Set. In Proceedings of the 55th Annual ACM Symposium on Theory of Computing, pages 1187–1200, 2023. doi:10.1145/3564246.3585211.
- [41] Shay Solomon, Amitai Uzrad, and Tianyi Zhang. A lossless deamortization for dynamic greedy set cover. In 2024 IEEE 65th Annual Symposium on Foundations of Computer Science (FOCS), pages 264–290, 2024. doi:10.1109/FOCS61266.2024.00025.
- [42] David P Williamson and David B Shmoys. The design of approximation algorithms. Cambridge university press, 2011.
