Manuscript Offprint
arXiv:2610.35131From Linear to Polylogarithmic: Dynamic Submodular Maximization over Matroids
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We study the problem of submodular maximization under a matroid constraint. In this problem, there is a monotone submodular function and a matroid , accessible via value and independence oracles and the goal is to find the independent set maximizing the objective function, i.e., . This problem has been extensively studied across a variety of settings, including the online setting [1] (JACM 2018), [31] (STOC 2012), the adaptive complexity model [4] (STOC 2019), and the streaming model [13] (Math. Program. 2015).
In the fully dynamic setting, the active ground set evolves through element insertions and deletions. The goal is to maintain a solution with and after each update. Two approximation algorithms have been proposed to solve this problem: Dütting et al. [18] developed a -approximation algorithm with an expected amortized update time of , which grows quadratically with the matroid rank , and Banihashem et al. [7] achieved a similar approximation with a better update time , which is linear in . However, these methods both become inefficient when the rank of the matroid is large (e.g., when ).
The central open question in this line of work is whether a fully dynamic algorithm with polylogarithmic update time exists. This question was posed in [35] (NeurIPS'20) and [18] (TALG'25), and remains a natural open problem following [17] (STOC'22) and [7] (SODA'24).
We resolve this question by presenting the first fully dynamic algorithm for submodular maximization over matroids with polylogarithmic update time. Our algorithm maintains a -approximate solution with expected amortized update time , where . In particular, the update time is independent of the matroid rank , thereby eliminating the dependence on and settling the open problem.
1 Introduction
Many Web applications repeatedly need to select a high-quality subset of items from a large and continuously changing collection. For example, a Web platform may need to select a set of articles, products, advertisements, or recommended items to display to users. The quality of a selected set is often naturally modeled by a submodular function: adding an item provides diminishing marginal benefit as increasingly similar or redundant items are already selected. Submodular objectives have been widely used to model coverage and information-gathering objectives [33], as well as diversity in recommendation and search [43, 45].
In practice, however, a platform cannot select an arbitrary subset of items. The selected items must satisfy combinatorial constraints reflecting limited display space, business rules, or diversity requirements. Matroid constraints provide a particularly natural and expressive way to model such requirements. For example, a partition matroid can impose quotas on different categories or content providers, such as allowing at most
*Computer Science Department, University of Maryland, College Park, MD, USA. kiarash@umd.edu.
Computer Science Department, University of Maryland, College Park, MD, USA. samirag@umd.edu.
Computer Science Department, University of Maryland, College Park, MD, USA. hajiagha@cs.umd.edu.
Computer Science Department, University of Maryland, College Park, MD, USA. peymanj@umd.edu.
Department of Mathematics and Computer Science, TU Eindhoven, the Netherlands. m.monomizadeh@tue.nl.
items from category i. The rank of the matroid then has a direct interpretation as the total number of available selection slots. More general matroids can capture overlapping eligibility and resource constraints while allowing the algorithm to exchange selected items in a structured way. Thus, submodular maximization under a matroid constraint provides a general framework for balancing the quality of a selection with diversity and resource limitations that arise naturally in Web applications.
The role of the matroid rank is particularly intuitive in recommendation and content-selection systems. Suppose a platform must display at most k items. A uniform matroid of rank k models the basic capacity constraint that at most k items can be selected. A partition matroid can further distribute these k slots across categories or providers, for example by requiring that no category contribute more than a specified number of items. The submodular objective can then favor selections that cover diverse topics, users, or interests. In this setting, the rank represents the scale of the selection that the platform can maintain, while the matroid structure specifies how those limited slots may be allocated. More sophisticated matroids can similarly represent multiple interacting resource or eligibility constraints.
A defining characteristic of many Web applications is that their underlying collections and interactions evolve continuously. For example, in recommender systems, new items are introduced and users continuously interact with existing items, changing the interaction graph and the information available for recommendation [42, 24]. Real-world recommendation systems must also adapt to changing item-popularity trends while scaling to millions of items [37]. These changes can affect both the objective value of a selected set and its feasibility under application-specific constraints. Recomputing an approximately optimal solution from scratch after every insertion or deletion can be prohibitively expensive at Web scale. This motivates the fully dynamic version of submodular maximization, in which the active ground set changes over time and the algorithm must efficiently maintain a near-optimal feasible solution after each update.
For instance, consider a recommendation platform that maintains a set of items to display while promoting diversity across categories or providers [45]. The utility of a recommendation set can be modeled by a submodular function that captures user engagement, coverage, or diversity, while category or provider quotas can be represented by a matroid constraint. As new items become available and existing items are removed, the platform must continuously update its recommendations to adapt to the changing collection [24, 42]. Ideally, these updates should be processed in time that is polylogarithmic in the size of the system, rather than in time that grows with the number of available items or with the matroid rank.
Our work addresses this challenge by developing a fully dynamic algorithm for monotone submodular maximization under a matroid constraint with expected amortized update time , independent of the matroid rank. This result provides a general algorithmic framework for maintaining approximately optimal constrained selections in dynamic Web environments, where both the collection of available items and the feasible solution may change continuously.
Submodular functions naturally express the principle of diminishing returns: the gain from adding an element decreases as the chosen set grows. Formally, a set function defined on a finite ground set is submodular if, for every and element , . If, in addition, for all , then is monotone.
Constraints often reflect structural or resource limitations—such as selecting a subset of features, sensors, or network links, which can be modeled as a matroid to capture independence and exchange properties. A matroid is defined by a collection of independent sets that satisfy non-emptiness, heredity, and the exchange property. The rank of is the size of its largest independent set. The classical offline problem of submodular maximization under a matroid constraint seeks an independent set that maximizes , i.e., .
Submodular maximization has a broad range of applications. In machine learning, it appears in feature selection [11, 16], data summarization [38, 3], and active learning [44, 23]. In data mining and network science, it models influence maximization [30, 40] and community detection [25, 36], while in network design [15, 14], it captures objectives related to connectivity, reliability, and information flow.
The dynamic variant of submodular maximization under a matroid constraint has received growing attention [7, 18, 26, 27]. Here, the ground set N evolves over time through insertions and deletions, and the goal is to maintain an independent set that remains near-optimal for the current instance, while limiting the computational overhead per update. Formally, the algorithm interacts with f through a value oracle and with M through an independence oracle, and must update its maintained solution as the input changes.
While the offline version of submodular maximization under a matroid constraint is well understood—for instance, the classic greedy algorithm attains a -approximation [41]—these offline methods recompute the entire solution from scratch following each change, resulting in linear update time in . Such costs become prohibitive in large-scale settings, which has spurred interest in efficient dynamic submodular maximization algorithms that offer near-optimal guarantees while maintaining polylogarithmic update times.
Designing efficient algorithms for maintaining near-optimal solutions to monotone submodular maximization under matroid constraints in a fully dynamic setting has been a longstanding challenge (was posed in [35, 18], and remains a natural open problem following [17, 7]). The goal is to handle insertions and deletions of elements while simultaneously achieving two key objectives:
• maintain a constant-factor approximation (e.g., ) to the optimal solution, and
- ensure that each update requires only polylogarithmic time in the size of the ground set, measured in oracle queries to f and M.
Prior work has made substantial progress toward this goal. Dütting et al. [18] provided a -approximation algorithm with expected amortized update time . In concurrent and independent work, Banihashem et al. [7] improved this to a linear dependence on , achieving expected amortized update time while preserving the same approximation guarantee. Despite these advances, both approaches become computationally expensive when the matroid rank is large, since the update time still grows polynomially with .
In this work, we overcome this barrier by introducing the first fully dynamic algorithm for submodular maximization under a general matroid constraint whose update time is polylogarithmic in n. Our algorithm maintains a -approximate solution with expected amortized update time , independent of the matroid rank k. This breakthrough ensures that even rapidly evolving datasets can be handled efficiently, resolving the open problem posed by earlier studies.
Overview of Our Algorithm. Our dynamic algorithm for submodular maximization under matroid constraints builds on the dynamic framework developed for the simpler setting of cardinality constraints [5], which was later extended to submodular cover [9] and submodular matching [8]. Prior to our work, it remained unclear whether these ideas could yield an algorithm with polylogarithmic update time under matroid constraints, whose rich combinatorial structure is notoriously difficult to handle .
A well-known illustration of this difficulty is the classical secretary problem. Babaioff, Immorlica, and Kleinberg [2] introduced the matroid secretary problem as a generalization, in which the goal is to select a maximum-weight independent set of a matroid from elements arriving in random order. Constant-competitive algorithms are known for several structured matroid families, including graphic, partition, and laminar matroids [32, 28, 22]. Similarly, constant-factor approximations are known under matching constraints [19], suggesting that similar algorithms might also work for the matroid constraints and that comparable guarantees could extend to matroids.
To process elements, the algorithm organizes them into hierarchical layers, with polylogarithmic in expectation. At each layer , our data structure maintains an independent set , together with an auxiliary set as the union of all elements present in the independent set of its preceding levels. A key design choice is that marginal gains are always evaluated with respect to rather than . Since only grows over time, marginal values are non-increasing, and elements that were discarded at some layer because of their small marginal contribution do not need to be reconsidered. This prevents costly re-evaluations.
Each layer contains a set of elements whose marginal gains with respect to exceed a threshold and are feasible for addition to I under the matroid constraint. These elements are further partitioned into logarithmically many buckets according to their marginal values, and in each layer, the largest bucket is selected for processing. This bucket has two key properties: its elements have nearly equal marginal gains, and processing a constant fraction of them both ensures a substantial contribution to the solution and provides robustness against small deletions. These properties are crucial for controlling solution quality and for bounding the approximation guarantee.
Within each chosen bucket, we employ a sampling mechanism to estimate how many elements should be drawn so that a sufficient number can be successfully added to I without violating independence or, if necessary, by displacing existing elements that are less valuable. Once the sample size is determined, a set of that size is drawn uniformly from the bucket. With high probability, most of these elements are successfully added to I. In the case of conflicts, elements currently in I are removed to restore independence while remaining in , and the total marginal gain of the inserted elements is always at least twice that of the evicted ones. This geometric dominance guarantees that the overall loss is bounded and that the approximation ratio is preserved over time.
Insertions and deletions are handled using buffered updates. For insertions, each layer maintains a buffer of new elements, and the layer is rebuilt only when the buffer reaches an -fraction of the size of . For deletions, a single shared buffer D is used across all layers, and a layer is rebuilt once an -fraction of its elements have been deleted. These lazy updates spread the cost of reconstruction evenly over time, leading to low amortized query complexity.
Finally, to accommodate elements of widely varying submodular values, we run parallel copies of the algorithm with thresholds of the form , where ranges over integers. Each element participates only in the runs whose thresholds match its value interval, ensuring efficiency across the full value range. This thresholding technique is inspired by the parallel-run method of [35].
Theorem 1. For any , there exists a fully dynamic randomized algorithm for submodular maximization under a matroid constraint that maintains an expected -approximate solution against an oblivious adversary. The expected amortized update time is , where is the ground set size.
Next, we highlight the key novelties of our work in comparison with prior dynamic algorithms for submodular maximization under matroid and cardinality constraints. The dynamic algorithm for matroid constraints proposed in [7] achieves an update time linear in the rank k of the underlying matroid. In contrast, the dynamic algorithm for the cardinality constraint introduced in [5] achieves a polylogarithmic update time. However, neither of these techniques alone can be extended to develop a dynamic algorithm for matroid constraints that maintains a -approximate solution with an expected amortized update time of .
However, achieving such guarantees for general matroids remains one of the central open problems in the area. Despite being conjectured as early as 2007, the existence of constant-competitive algorithms for general matroids is still unresolved after nearly two decades of research, and the best known results achieve an -competitive ratio, where k denotes the matroid rank [34, 21]. This persistent gap highlights the inherent difficulty of extending techniques that succeed under uniform (cardinality) or matching constraints to the broader class of matroid constraints.
The approach in [7] maintains layers and, upon the deletion of an element from the current solution, reconstructs the layer where was added, along with all subsequent layers. As a result, this framework cannot be directly transformed into a data structure that supports update time under matroid constraints. To overcome this limitation, we partition the active set in each layer into logarithmically many buckets according to the marginal values of their elements, and we select the largest bucket for processing. This bucket contains at least elements whose marginal gains are nearly identical. Using a sampling mechanism, we estimate the fraction of elements in this bucket that can be added to the current solution through a single uniform sample. The key insight is that, since all elements added to the solution at layer have nearly equal marginal gains, as long as only an fraction of them are modified, the maintained solution continues to provide a -approximation guarantee. Consequently, unlike the approach in [7], which can tolerate only one update to the maintained solution (and therefore requires layers), our method can tolerate changes to an fraction of elements with nearly equal marginal gains. This property enables us to achieve an expected amortized update time of .
Moreover, while submodular maximization under cardinality or matching constraints is closely related to the matroid-constrained problem—specifically where the matroid is uniform of rank k—extending dynamic algorithms (e.g., [35, 5, 8]) to general matroids is far from trivial. The primary challenge lies in the structural nature of matroids, particularly the strong exchange property, which governs how independence is maintained as elements are inserted or deleted. Under a cardinality constraint, feasibility is a simple function of the set's size. This simplicity facilitates efficient update operations and enables the maintenance of approximate solutions with amortized polylogarithmic complexity. Similarly, matching constraints possess a specific localized structure that limits the ripple effect of updates. In contrast, for general matroids, maintaining independence requires intricate coordination across the entire ground set; adding or removing a single element can shift the feasibility status of numerous other subsets. Consequently, existing algorithms cannot be directly adapted to general matroids without substantial new insights. Our analysis introduces non-trivial arguments leveraging matroid axioms to ensure that dynamic updates preserve both independence and near-optimality.
One of the technicalities of this dynamic framework lies in its sampling size estimation procedure, which differs fundamentally from the binary-search sampling method used in [5], originally introduced in [20] and [4]. Due to the exchange property inherent in matroid constraints, this binary-search approach cannot be directly applied. Instead, we design a new sampling mechanism adapted to the matroid structure. For each layer , to estimate the number of elements of the largest bucket that can be uniformly sampled all at once (i.e., non-adaptively), we consider a polylogarithmic number of random permutations of elements in the largest bucket. For each permutation, we iterate from its beginning to determine the elements that can be added to the current solution while maintaining independence. (Recall that if a conflict arises, elements currently in I are removed to restore feasibility, and the removed elements are added to . It is important to note that, unlike the dynamic algorithm for cardinality constraint [5], where marginal gains are compared directly against the current solution, in our matroid-constrained setting, the marginal gains are compared with respect to , while the independence condition is enforced relative to the solution set I.)
After processing all permutations, we identify the largest index of the permutations such that, in at least a -fraction of the permutations, the element at index could be added to . Finally, in contrast to the cardinality-constrained setting, where all uniformly sampled elements from the largest bucket are added to the solution, our framework must verify each sampled element individually to ensure matroid feasibility.
However, the primary technical challenge of this work, distinguishing it from [8], arises from the fundamental structural disparities between matroids and matchings. Specifically, the INSPECT and ADJUST procedures required for matroids are more involved than those employed in the matching framework. These structural differences ultimately lead to a substantially different and more complex analysis to establish approximation guarantees.
Chen and Peng [17] established lower bounds for dynamic submodular maximization with cardinality constraints, which is a special case of matroid constraints. They showed that any algorithm achieving better than a -approximation must have amortized query complexity at least , and achieving an approximation better than 1.712 requires queries per update, even if the optimal value of the current set is known. In the insertion-only model, they further provided algorithms for submodular maximization under a matroid constraint of rank , achieving and -approximations with expected oracle query complexity and , respectively.
For general matroid constraints, Dütting et al. [18] proposed a -approximation algorithm with expected amortized update time , which scales quadratically with the matroid rank . An improved method was later introduced by Banihashem et al. [7], which achieves a similar approximation ratio but with expected amortized update time , linear in . Although these results represent progress, both approaches become inefficient when is large (e.g., ), since their complexity still grows polynomially in .
A related line of research considers the streaming setting, where the data arrives sequentially and algorithms must work with limited memory. The first streaming algorithm for submodular maximization under a cardinality constraint was proposed by Badanidiyuru et al. [3], who gave a -approximation using space. This was later improved by Kazemi et al. [29], who reduced the space requirement to . Chakrabarti and Kale [13] introduced a streaming framework applicable to a wide range of combinatorial constraints, including matroid and matching constraints. Their approach yields a 4-approximation algorithm for submodular maximization under a matroid constraint, using space.
1.2 Preliminaries
In this section, we introduce submodular functions, matroids, the oblivious adversarial model used in our dynamic setting, and the notion of query complexity.
Submodular functions. Let be a finite ground set. A function is called submodular if for all and any , , capturing the principle of diminishing returns: the benefit of adding an element to a smaller set is at least as large as adding it to its supersets. An equivalent definition states that for all , , We assume that the submodular function is also monotone, meaning for all . The value is called the marginal gain of adding to , and is denoted by . In this paper, we assume to have access to via a value oracle.
Matroids. Matroids are general combinatorial structures that capture the notion of independence. Formally, a matroid consists of a finite ground set and a collection of subsets , called independent sets, satisfying the following three properties: non-emptiness: , i.e., the empty set is independent; heredity (downward-closedness): If and , then , i.e., every subset of an independent set is also independent; exchange property: If and , then there exists an element such that . The rank of the matroid is the size of its largest independent set; the exchange property ensures that all maximal independent sets (called bases) have the same size . A circuit in a matroid is a minimal dependent set, i.e., a set that is not independent but every proper subset of is independent. Circuits describe the minimal sets of elements whose presence causes dependence; thus, removal of at least one element from each circuit of a dependent set makes it independent. The family of circuits of a matroid satisfies the following properties: ; if and , then ; and if , and , then there exists such that . It follows that if and with , then contains a unique circuit (see Lemma 42); consequently, removing any element of from restores its independence. In this paper, we assume that we have access to an independence oracle for the matroid .
Oblivious adversarial model. We analyze our dynamic algorithm in the oblivious adversarial model, a standard framework for randomized data structures [12]. In this model, the adversary knows both f and the algorithm but not its random bits; thus, the entire update sequence is fixed before execution.
Query complexity. The query complexity of a dynamic algorithm is the number of oracle queries (to the value oracle for f and to the independence oracle for the matroid M) used to maintain an approximate solution at time t, given all computation up to time t - 1. We measure time complexity primarily in terms of this query complexity.
Finally, we give a few notations that we use frequently in this paper.
For a function and a set , we write to denote the restriction of to the domain . Given an event , we use to denote its indicator function: it equals 1 if occurs, and 0 otherwise. We use bold letters for random variables (e.g., ) and the corresponding non-bold letters (e.g., ) to represent their realizations. The probability and expectation of a random variable are denoted by and , respectively. For two events and , we write for the conditional probability of given . For an event with nonzero probability and a discrete random variable , the conditional expectation of given is written as and defined by . Similarly, for two discrete random variables and , the conditional expectation of given that is denoted by .
2 Algorithms
In this section, we describe our dynamic algorithm for submodular maximization under a matroid constraint that maintains an independent set I that achieves a -approximation to the optimal solution, while efficiently handling insertions and deletions. The algorithm is built using several algorithms or subroutines:
Inspection procedure (INSPECT): For a new element , we first check whether its marginal gain with respect to current set exceeds threshold . If can be added to the independent set without violating the matroid constraint, we include it. Otherwise, we identify an element with the smallest marginal contribution , such that replacing by still preserves independence. If , we replace with .
Algorithm 1 Inspection
1: procedure INSPECT(e, (I, I^U, Δ), τ) 2: if f(e|I^U) < τ then 3: return FAIL 4: if I ∪ {e} ∈ I then 5: return 0 6: ▷ find by using a binary search 7: if 2 · Δ( ) ≤ f(e|I^U) then 8: return { } 9: return FAIL
Iterative Expansion (EXPAND): Given a sample set S of candidate elements and the current triplet (I, I^U, Δ), we iterate over S, applying ADJUST to each element e. The procedure ADJUST tries to insert e via INSPECT, and if successful, updates marginal contributions and keeps I independent.
Algorithm 2 Iterative Expansion
1: procedure EXPAND(S, (I, I^U, Δ), τ) 2: (I, I^U, Δ)' ← (I, I^U, Δ) 3: for e ∈ S do 4: (I, I^U, Δ)' ← ADJUST(e, (I, I^U, Δ)', τ) 5: return (I, I^U, Δ)' 6: procedure ADJUST(e, (I, I^U, Δ), τ) 7: X ← INSPECT(e, (I, I^U, Δ), τ) 8: if X ≠ FAIL then 9: Δ(e) ← f(e|I^U) and I ← I ∪ {e} \ X and I^U ← I^U ∪ {e} 10: return (I, I^U, Δ)
Algorithm 3 Sample Size Estimation
1: procedure ESTIMATESAMPLESIZE(B, (I, I^U, Δ), τ) 2: t ← ⌈ 3: Initialize X as a matrix of zeros. 4: for to do 5: a random permutation of B 6: 7: 8: 9: return
Sample Size Estimation (ESTIMATESAMPLESIZE): At each layer , we partition active elements into buckets based on their marginal gains relative to . We estimate an appropriate sample size to ensure, with high probability, that sampling from the largest bucket yields enough elements that can be successfully added to .
Algorithm 4 Main Algorithm
1: procedure INIT(τ) 2: and 3: Initialize as a zero function 4: procedure INSERT(e) 5: 6: for to do 7: if INSPECT(e, (I, , )_{\ell-1}, ) FAIL & then 8: 9: if then 10: return LAYERCONSTRUCT( ) 11: return 12: procedure DELETE(e) 13: 14: for to do 15: if then 16: return LAYERCONSTRUCT( ) 17: return 18: procedure LAYERCONSTRUCT( ) 19: 20: 21: if then 22: 23: return 24: 25: 26: a random permutation of a uniformly selected subset of size from 27: 28: 29: 30: return LAYERCONSTRUCT( ) 31: procedure CHOOSEBUCKET( ) 32: 33: for do 34: 35: 36: 37: 38: return 39:
Layered Dynamic Structure: Our algorithm organizes computation into multiple layers indexed by . For each layer, we maintain a set of active elements , an auxiliary buffer for new insertions, and associated data structures. When a new element arrives, we check in each layer whether it can be added to . If so, we perform a lazy update: we add to . When reaches an -fraction of , we merge into and reconstruct layer from scratch.
For deletions, we keep a single shared buffer collecting all removed elements. For each layer , if an -fraction of appear in , we rebuild that layer using the remaining undeleted elements. Unlike insertions—where each layer maintains its own buffer —deletions use the same global buffer .
Layer Construction (LAYERCONSTRUCT): To build the next layer, the algorithm uses CHOOSEBUCKET to select the largest bucket of elements with similar marginal gains. We then sample a subset from this bucket, expand by adding feasible elements (via EXPAND), and filter elements to create the new set for the subsequent layer.
Parallel Instances: To handle elements with diverse marginal gains, we run parallel copies of the dynamic algorithm, each using a different threshold . When an element is inserted or deleted, we update all instances whose threshold ranges include , following the parallel threshold idea from [35].
Algorithm 5 Parallel Runs
1: for do 2: Let be an instance of Main Algorithm 4, with . 3: function GLOBALINSERT() 4: 5: for each do 6: Invoke INSERT() for instance . 7: function GLOBALDELETE() 8: 9: for each do 10: Invoke DELETE() for instance .
By combining layered reconstruction, careful sampling, and iterative expansion while always evaluating marginal gains relative to the persistent set , our algorithm dynamically maintains an independent set that remains a -approximation to the optimum, even as elements are inserted to or removed from the ground set .
3 Analysis
We consider a fixed point in time immediately after the algorithm finishes executing an update. Throughout our analysis, we study the state of our algorithm at this fixed point of time, to which we may refer as the current time. As such, our Theorems, Definitions, and Lemmas are based on the current state of variables, unless explicitly specified.
3.1 Deterministic Properties of the Data structure
In this section, we establish a series of deterministic invariants that describe the state of our data structure at the said current time. We begin with a lemma that describes the structure of independent and union sets at layer zero.
Lemma 2. The following holds: .
Proof. Consider the full course of the algorithm’s execution. Both and are initialized as empty sets during the INIT procedure, performed at the outset. Throughout the remainder of the algorithm, and remain unchanged, as none of the update procedures modify either of them, directly or indirectly, through the LAYERCONSTRUCT procedure. This is because LAYERCONSTRUCT( ) is only invoked for and does not make any modifications to or I^\cup_\ell' for any .
The following lemma establishes the relationship between the variables across successive layers, expressed in terms of the EXPAND operation.
Lemma 3. The following holds for all :
Proof. We prove this by considering a fixed and showing that .
First, note that the helper functions INSPECT, EXPAND, and ESTIMATESAMPLESIZE do not modify their input parameters during execution. Moreover, note that throughout the entire execution of the algorithm, the values of the variables , , and , for any arbitrary , may change only within the LAYERCONSTRUCT( ) procedure prior to its invocation of LAYERCONSTRUCT( ) in line 30.
Now, Consider the most recent invocation of LAYERCONSTRUCT( ). Immediately after the execution of line 27 within LAYERCONSTRUCT( ), the equality holds by construction.
Since any invocation of LAYERCONSTRUCT( ) would subsequently trigger a call to LAYERCONSTRUCT( ), our choice implies that neither LAYERCONSTRUCT( ) nor LAYERCONSTRUCT( ) has been invoked since then. Hence, the values of , and have remained unchanged since that point, confirming that the equality still holds at current time.
The next lemma formalizes how the active elements are filtered across consecutive layers of our data structure. The proof of the following lemma captures how the algorithm handles reinsertions and redeletions that may occur during updates.
Lemma 4. Let denote for . The following holds for all :
Proof. Recall that the statement of this lemma concerns the state of the variables following the execution of a fixed update, namely, the current time.
We prove this by showing that the statement holds with respect to the state of the variables before any update is applied, and that, assuming it holds prior to an update, we can conclude it also holds afterward. Hence, by induction, the statement holds for the current time.
Note that before any update is applied, the claim holds trivially as T = 0.
Consider a call to the procedure INSERT(v) or DELETE(v). For any variable X, let and denote the state of X before and after the execution of the procedure, respectively. Suppose that for all ,
We aim to prove that for all ,
We first prove the following fact, which will be used in our argument.
Fact 5. If LAYERCONSTRUCT( ) is invoked during an update, and we use to denote the state of Y immediately before the invocation of LAYERCONSTRUCT( ), then:
Proof. Note that . During the execution of LAYERCONSTRUCT( ), the set is updated as and does not change afterward. Then, is set to and also remains unchanged. We have
☐
Now, we proceed to prove that the following claim holds for an arbitrary fixed , which will complete our proof.
First, consider the case where LAYERCONSTRUCT(i) is invoked. By Fact 5, we have . When line 28 is executed, both and are finalized. Hence, is set as
Then, is set to . Since is already , and , remains unchanged in LAYERCONSTRUCT( ). Hence, we have shown that
Moreover, by fact 5, we have , thus proving the claim in this case.
Now, we consider the case where LAYERCONSTRUCT(i) is not invoked.
Note that this assumption does not specify whether LAYERCONSTRUCT( ) is invoked. Let denote the state of the variable Y when we reach line 9 in the case of executing INSERT( ), or line 15 in the case of executing DELETE( ), with .
We know that by that point, no change is made to for , and all of , and consequently are already finalized; that is,
We also know that and are already finalized, and that unless LAYERCONSTRUCT( ) is invoked. Even though and may then differ from and , by Fact 5, we still have
Therefore, regardless of the case, it suffices to show that
(1) given the assumption that
We prove this for INSERT and DELETE separately.
- During INSERT(v), until we reach line 9 with , the element is removed from , and no change is made to or . For each , the procedure checks whether passes INSPECT( , ). If it does, is added to .
Given these changes, we know that the pairs and , and and , may only differ at . Hence, to show that equation (1) holds, we only need to focus on and show that
We have that if , then . It follows that or . From both, we can infer that INSPECT( , , ) FAIL. It also follows that INSPECT( , , ) FAIL. Hence, was already in or now is in . Thus, .
Moreover, we have that if INSPECT( , , ) FAIL, then v \in A_{i+1}^' if . Therefore, v \in A_{i+1}^' or v \in E_{i+1}^'. Hence, the statement (3) holds.
- During DELETE(v), we only add v to D until we reach line 15 with . Hence, we have and . Therefore, the assumption (2) clearly implies equation (1).
This proves the claim in the case where LAYERCONSTRUCT(i) is not invoked, thus completing the entire proof.
The next lemma establishes T as the number of non-empty layers in our data structure.
Lemma 6. The following holds: , and if then .
Proof. Consider the entire execution of the algorithm. The statement holds at the beginning, as initially and .
Both update procedures, INSERT(e) and DELETE(e), may change T and only through a call to the procedure LAYERCONSTRUCT. Consider the last update that triggers a call to LAYERCONSTRUCT, and let i denote its corresponding layer number, i.e., INSERT(e) or DELETE(e) has called LAYERCONSTRUCT(i). Note that if no such update occurs, then T and have not changed since the beginning.
Invocation of LAYERCONSTRUCT(i) implies that the condition in line 9 or 15 did not hold for , which guarantees for all . Each call to LAYERCONSTRUCT( ) is followed by a call to LAYERCONSTRUCT( ), continuing until reaching LAYERCONSTRUCT( ) ( ) with . During LAYERCONSTRUCT( ), the value of is updated to , ensuring that , while for all . By our selection of the last update that triggers a call to LAYERCONSTRUCT, we conclude that no further changes have been made to or thereafter.
This final lemma characterizes the structural properties of our data structure imposed by the reconstruction conditions.
Lemma 7. The following hold:
For all ,
For all .
Proof. Consider a fixed . Consider the most recent call to LAYERCONSTRUCT(i). Immediately after its execution, we have . This holds because was set to , and .
Since any call to LAYERCONSTRUCT( ) with also triggers a call to LAYERCONSTRUCT(i), our selection of the most recent call to LAYERCONSTRUCT(i) implies that during all subsequent executions of DELETE(e), we reached line 15 with without invoking LAYERCONSTRUCT(i), meaning that the first condition was satisfied. We also know that no subsequent INSERT(e) could be the first update to violate condition 1, as insertions do not modify or .
We make the same argument for insertions, but with a fixed . We consider the most recent call to LAYERCONSTRUCT(i). Immediately after its execution, we have . During each subsequent insertion, we reached the line 9 with , and LAYERCONSTRUCT(i) was not invoked, meaning that the second condition was satisfied. Moreover, no subsequent DELETE(v) could be the first update to violate condition 2, as deletions do not modify or .
Therefore, both conditions still hold.
3.2 Approximation
This section initiates the analysis of the approximation ratio guaranteed by our algorithm. (Note that parts of this analysis draw inspiration from [13].) We begin by formalizing the contribution of each element to the overall objective by introducing a weight function that quantifies the marginal significance of elements according to their state in the data structure.
Definition 8. We define the weight function as follows:
• For , set .
• For , set .
We also extend the definition of the weight function to sets by defining the total weight of a subset as , with the convention that .
The following lemma demonstrates that when an element gets accepted into, or already belongs to, the union set during the execution of the EXPAND procedure, its associated marginal value remains fixed.
Lemma 9. Consider the execution of EXPAND( , ) with . Let denote the elements of in their processing order. For any , let denote the state of immediately after processing . If for some , then
Informally, once , the EXPAND procedure preserves the value of within that layer.
Note that this definition is based on the simplifying assumption that . Without this assumption, one should define , with , to ensure the correctness of the lemmas.
Proof. First, observe that initializes as a copy of , and that denotes the state of immediately after processing . Therefore, for all , we have
Suppose, for the sake of contradiction, that . Then there must exist some index such that and .
By (4), we have
The procedure may only change the value of at the element . Therefore, for to hold, it must be the case that .
One may argue that given that and this may never happen. However, we prove the Lemma without any further assumption on .
We show that even if , the call does not change the value of at element . This is because such an update requires that , which in turn requires:
However, and , implies . Therefore, , and by definition, . This contradiction implies that for all , and hence , as claimed.
We now use the above lemma to relate the weight assigned to each element to its recorded value across the different layers of the data structure, illustrating their alignment.
Lemma 10. If , then .
Proof. We show that given , we have . Fix any index . By Lemma 3, we have:
Consider the execution of as described in Lemma 9, by setting:
Let denote the elements of in their processing order. For any , let denote the state of immediately after processing . Lemma 9 states that if for some , then:
Since , the condition holds for as , and by Lemma 40 implies . Thus, by Lemma 9 we have:
By induction over from to , we conclude that .
By Lemma 40, we have . Hence, implies . By Definition 8, the weight function for an element is defined as . We also have established that given , . Combined together, it follows that , as claimed.
We now proceed to derive bounds between the weight function or the objective function values corresponding to various sets maintained in our data structure and the optimal solution.
Lemma 11. The following holds: .
Proof. We prove by induction on that for all .
For the base case , we know by Lemma 2 that . This, by Definition 8, implies that , so the inequality holds trivially.
Now, for the inductive step, we show that using the inductive hypothesis, which assumes the claim holds for , i.e., . To this end, it suffices to show that
By Lemma 3, we have
where EXPAND constructs by iteratively modifying a copy of via calls to ADJUST for each .
Within ADJUST, each element is sent through inspection, which can result in one of three possible outcomes.
If an element fails the test in INSPECT, it is not added to either or , and thus contributes nothing to either or .
Elements that pass the test in INSPECT and can be added to I without any replacement are added to both and I, and thus contribute an equal amount of weight to both and .
Thus, it remains to examine the case where an element passes the INSPECT test and is added to both and while replacing another element in .
It suffices to show that in such cases the following holds:
For such elements and , since both belong to and by Lemma 40, we have . Hence, by Lemma 10, it follows that and . Therefore, it suffices to show that
We know that in such cases for the ADJUST procedure, during the INSPECT test, it is verified that . Immediately after the inspection is set to , and then and are modified accordingly. Once the ADJUST completes, the followings hold for the updated within the EXPAND:
By Lemma 9, we know that once an element is included in , its corresponding remains unchanged during the execution of EXPAND. Therefore, we have
completing the proof.
16
□
Lemma 12. The following holds: .
Proof. Similar to Lemma 11, we use an induction on , and prove that for all .
For the base case , we know by Lemma 2 that , and by Definition 8, we have . Thus, the base case holds.
For the inductive step, we assume that the claim holds for , i.e., , and prove that . It suffices to show that:
By Lemma 3, we have
The procedure initializes as a copy of , then sequentially modifies it via calls to for each , and uses it to set the value of at the end. Let denote the elements of in the order they are processed. For each , let denote the state of I^\cup' immediately after processing . This inherently implies that . We also use to denote .
Then, the equality (6), which we aim to prove can be rewritten as:
Now, we consider the outcome of the call to ADJUST on each element :
- If fails the test in INSPECT, then , so the terms corresponding to on both sides of (7) are equal to zero.
• Assuming passes the INSPECT test, the following hold:
(a) ,
(b) .
Property (b) follows because if , then would be zero, contradicting the fact that passed the INSPECT test, which requires .
From Definition 8, together with (a) and (b), we have:
where the second equality follows from Lemma 10 and the fact that .
Additionally, by the definition of relative contribution and using (a), we have:
Immediately after the completion of the ADJUST procedure for , we have:
By Lemma 9, we know that throughout the execution of EXPAND, once an element is included in , its corresponding value remains unchanged. Hence,
Therefore, using this together with Equations (8) and (9), we conclude:
Since, regardless of the case, each pair of corresponding terms in (7) is equal, the equality holds. This completes the inductive step and the proof.
Lemma 13. Let denote the optimal solution at the current time. The following holds:
Proof. We begin by bounding the difference between and . By submodularity of , we have:
By Definition 8, for any element that , the weight function is defined as . Therefore, we have:
where the equality follows from Definition 8 for sets, which defines the total weight of a set of elements as the sum of their individual weights.
By Lemma 12, we have , and by Lemma 11, we know . Therefore, we have:
Combining the above, we conclude that:
as desired.
The following lemma shows how the existence of a blocking subset in the independent set is preserved under the execution of the ADJUST procedure for another element.
Lemma 14. Consider arbitrary elements and , and a set . Assume that , but . Let be the output of . Then, there exists a set such that forms a circuit, and f(e_1 | I^\cup') < 2\Delta'(e') for all .
Proof. Firstly, we note a few helpful facts for the proof.
-
We have , and the submodularity of the function ensures that .
-
and may only differ at .
-
The condition for all is equivalent to
Since , but must be dependent. We define as:
We know that is the unique circuit in . (It can be easily verified that each element in must be in a circuit, contains only one circuit by Lemma 42, and any element in the circuit is included in .) Since INSPECT(, , , for the element with minimum , we have:
Now, consider the ADJUST( , , ) procedure. The ADJUST procedure calls INSPECT( , , ). If the output is either FAIL or or , the set satisfies all the requirements for . This is because in all these cases, , is a circuit and the facts imply that
The only remaining case, is that if INSPECT( , , ) returns that . Let denote the circuit in . We know that was the edge with minimum , and
Moreover, since , for all , we have
By Lemma 41, there exists a circuit such that
We have established that satisfies all the properties for . The proof is complete.
Combining the previous results and leveraging our carefully designed Algorithm 5 alongside an elegant charging scheme yields a global bound on the optimum's value in terms of the weight of .
Lemma 15. Let denote the optimal solution at the current time. There exists an instance I in Algorithm 5, for which the following holds:
Proof. Let's assume that . In this Lemma, we bound . Define and with , as follows:
By definition of weight function for set, we have
where the last inequality follows from the fact that . By assumption it follows that
Hence, we have the following bound on that
Now, we turn our focus to . By Definition 8, for , we have . Therefore, since for any element , we know that , we have
where the last inequality comes from the submodularity of . The assumption also implies that . Consider the instance in Algorithm 5. We are certain that any element exists in the instance .
Consider a fixed arbitrary element . For all , we define as in Lemma 4 to be . We know that is an element present at the current time, with . Hence, it must exist in one of or , and . It follows that .
We know by Lemma 6 that . Moreover, Lemma 7 implies that . Hence, .
let be a level such that but . By Lemma 4, we have
Therefore, we have
Furthermore, since , we have .
We know from Lemma 3 that is obtained from by iteratively applying Adjust to the elements of , then , until .
Therefore, even when by applying Lemma 14, we know that there exists a set such that forms a circuit, and for all ,
For each element , we denote its corresponding by .
Consider a bipartite graph with an edge from to if . For each , we know that . This further implies that for all , . Therefore, Since is independent, we can conclude that . Thus, by Hall's theorem, There is a perfect matching of into . Since, weight of each element in is less than twice the weight of its matched element in , we have
Therefore, we have
Then, by Lemma 13, we obtain
The proof is complete.
3.3 Sample Size and Randomized Properties of the Data Structure
This section analyzes the randomized aspects of our data structure. We begin by formally defining the notion of a suitable sample size, which is a key component of our algorithm.
Definition 16. Consider given variables , , and . Let be a random permutation of , and let denote the output of . Define a random vector of length as follows: for each ,
and set
We define as the set of indices , for which the following conditions hold:
-
for all ,
-
for .
In particular, for , we define .
The following lemma further establishes the significance of the above definition by demonstrating desirable probabilistic properties of selecting a sample subset with a suitable size, guaranteeing both sufficient expansion of the solution at the current level and effective filtration of the remaining elements for the next level.
Lemma 17. Consider , , , , and as in Definition 16. Let be an ordered sample subset of of size , and let denote the output of .
Assume , then the following hold:
Proof. Recall that is a random permutation of , denotes the output of , and is a random vector of length such that for all ,
For each , the random variables and have the same distribution. Therefore,
Given the assumption that , condition 1 in Definition 16 gives for all . Hence,
as desired.
Next, consider . If nonempty, let be an element selected uniformly at random from , and define as followed by . Let be . By construction,
and if and only if INSPECT( , , . Therefore,
where the first equality comes from the fact that the random variables and have the same distribution, and the last inequality uses condition (2) in Definition 16. It follows that
and thus,
Now, it remains to show that
It is in fact true that for any . Yet, it suffices to show that this holds for any , which in turn implies
This is because we have already established that , and under the assumption .
Finally, for all , we argue that since if , which is the case for elements because , for .
The proof is complete.
The next lemma demonstrates that the procedure ESTIMATESAMPLESIZE returns a sample size from the set of suitable sample sizes defined above efficiently and with high probability.
Lemma 18. Suppose the procedure ESTIMATESAMPLESIZE is called with input parameters , , and . With probability at least , the following holds:
Proof. Hoeffding's inequality implies that for any ,
Since we have:
it follows that
Thus, we have:
By substituting , we get:
By applying the union bound over all , we have
where the last inequality uses . Therefore,
Also note that by definition, . Hence, with probability at least , for all , we have
We know that is selected as . Note that since , such exists. The choice of implies that
for all ,
for .
Hence, the following holds:
for all ,
for .
This implies that
Next, before proceeding with the randomized invariants of our dynamic algorithm, we first present a fact used in their analysis.
Fact 19. Let C be collection of random variables X, and events Y, and let Z be a random variable. If Z is a function of X, given Y, that is, it can be deterministically determined given X and Y, then:
The same holds if Z is an event that is implied by X and Y.
However, note that if X and Y are contradictory to Z, and are undefined. Note that when we get by the law of iterated expectations, is itself a random variable, a function only defined over values of satisfying .
We then follow with defining the notion of History , which serves as the conditioning context for our randomized invariant concerning the sample size at each layer.
Definition 20. Let denote for . We define History as
We use to denote the random variables corresponding to .
Note that conditioning on the values of inherently implies .
The following lemma establishes that, conditioned on its preceding history, the sample size at each layer is suitable with high probability.
Lemma 21. For all , the following holds:
Proof. We prove this by showing that the statement holds before any update is applied and that, assuming that it holds prior to an update, we can conclude that it also holds afterward.
At the beginning, before any update, the claim holds trivially, as T = 0. Since the set [T] is empty, the lemma statement holds vacuously for the initial state.
For any variable , we use the notations and to denote before and after the execution of an update, respectively. Hence, we aim to proof given the assumption that .
Let be a random variable that takes the value 1 if LAYERCONSTRUCT( ) was called during this update (whether directly or through LAYERCONSTRUCT( )).
By the law of iterated expectation, we have
Therefore, proving the following inequalities completes the proof.
and
Equation (11) holds by Lemma 18. We also know that if but , then LAYERCONSTRUCT( ) has been called and therefore , which means Equation (11) is sufficient to prove the claim for those levels. Thus we only need to focus on proving Equation (10) when .
We know that conditioning on implies that . Thus, we can also condition on . By the law of iterated expectation, we have
It therefore suffices to show that
Now we note that and would not change during an update unless the update triggers the LAYERCONSTRUCT( ). Hence, given the condition , we can replace with . This makes it sufficient to show that
Then we highlight that is a function of , given , and by Fact 19 we have
Lastly, we argue that is a function of . In other words, either implies or is in contradiction with it, and is only defined for the former. Therefore, we also have
Equations (14) and (13) and our assumption prove the inequality (12), and thus complete the proof.
We now extend the history notion to define , incorporating the estimated sample size at layer along with the history of preceding layers, used to condition the final randomized invariant of our data structure.
Definition 22. Recall that denotes for . Post-estimate history as
We let denote the random variables corresponding to .
Note that conditioning on the values of inherently implies .
With defined, we now establish the uniformity of the sampled subset of each layer, conditioned on the post-estimate history of that layer. The proof of this lemma is similar to the proof of Lemma 21.
Lemma 23. For all , let denote the set of all ordered subsets of size with elements of . For all , the following holds:
3.4 Effect of deletions on Approximation
Since the algorithm returns (more precisely, the best among its instances), it suffices to bound by . Having already established a connection between and , this section analyzes the relationship between and and thereby finishes the approximation analysis. The proofs of some of the following lemmas rely on the randomized components of our data structure to capture the impact of removing from the final output.
The following Lemma bounds the weight of elements added to at layer .
Lemma 24. For any , the following holds:
Proof. We consider a fixed and a fixed condition .
Since the weight is non-negative, by the law of total expectation we have
Recall that by Lemma 3, we have
where during EXPAND each sampled element is processed by ADJUST, and those passing the INSPECT test are added to . Thus, the newly added elements are those in that pass the INSPECT test, also equal to .
The INSPECT test guarantees that the relative contribution of any element added to satisfies . Moreover, by Lemma 10, we have for any such element. Therefore, for any newly added element , .
Furthermore, by construction, is the sum of the weights of the elements in . We therefore have
Since is an ordered sample of elements from , the condition and Lemma 17 give
Combining the above with the initial inequality yields the desired bound
☐
The following lemma bounds the total weight of elements added to at layer that belong to , thereby quantifying the expected loss in the weight of at this layer, due to the deletions.
Lemma 25. For any , the following holds:
Proof. We consider a fixed and condition on . By Lemma 3, we have
which means is the set of elements in that are added to during the EXPAND procedure. Thus, , and therefore
By Lemma 23, we know that is a uniform sample of size from , and by Lemma 7, we have . Therefore, we have
Furthermore, we know by Lemma 10 that for any element in . On the other hand, for any element , we know that . Also, by submodularity we know that the marginal contribution of element at the time of its addition to is less than or equal to its contribution with respect to , i.e., . Therefore, for any element , we have
By construction, is the sum of the weights of all elements in . Combining the above, we obtain
Combining the above proves that conditioned on ,
27
☐
Building on the previous results, the following lemma demonstrates that retains almost all of its weight after the removal of D.
Lemma 26. The following holds:
where .
Proof. For each , define the respective gain and loss of level as
with the convention that for . It follows from the definition that
We aim to show that for each
By the law of iterated expectation, this implies
and therefore
Finally, summing over and applying linearity of expectation yields
which completes the proof.
To establish Equation (15), it suffices to show that
for any with .
By Lemma 24, we have
On the other hand, by Lemma 25, we have
Combining the above gives us
which then implies
By Lemma 21, we have . Hence,
By above inequalities and the law of total expectation we have
By definition, we know that . Then, by Lemma 11, it follows that . Moreover, we know that contains at most elements and for each element , we have . Therefore, we conclude that is deterministically bounded by .
Meanwhile, we know that since conditioning on implies that , which ensures there is at least one element in . Thus, we obtain the following bound:
This gives us
which establishes Equation (16) and completes the proof.
Using the previous lemma, we extend the earlier guarantee and show that the expected weight of remains nearly unchanged after the removal of D.
Lemma 27. The following holds:
Proof. Let . By Lemma 26 we have:
Using the linearity of expectation for partition gives us:
By using the simple bound , we obtain:
(17)
By Lemma 11 and then applying linearity of expectation to the partition again, we have
which in turn implies that
Combining this and Equation (17) completes the proof:
☐
The next lemma bounds the weight of by its function value.
Lemma 28. The following holds: .
Proof. Let denote the elements of in their processing order. We have
Let's use to denote the state of right before processing element . By definition we have
where the second equality holds because of Lemmas 9 and 10.
We know that . Therefore, by submodularity of we have
which completes the proof.
Finally, by combining the established results, we prove the approximation guarantee of our algorithm in the following theorem.
Theorem 29. There exists an instance I produced by Algorithm 5 such that
where is the optimal independent set and the expectation is taken over the randomness of the algorithm. Equivalently, the algorithm achieves an expected -approximation.
Proof. Lemma 15 guarantees the existence of an instance I in Algorithm 5 such that
By Lemma 27, we further have
and by Lemma 28,
Combining these inequalities yields an instance for which the following final bound holds:
The proof is complete.
3.5 Query Time
In this section, we analyze the query complexity of our algorithm.
We begin by introducing a potential-based framework to track the progress of elements across layers, which enables us to bound the number of layers.
Definition 30 (Potential). For any , let denote . For any element , we define the potential of element with respect to the layer as:
For an element , we define to be zero.
We also, define the potential of layer i as:
We then establish some fundamental properties of the potential function that will be used in our analysis.
Lemma 31. The followings hold:
Proof. For any element , we know that . Additionally, for any , for any element in either or , we know that INSPECT( , . Hence, . Therefore, the first property always holds.
The second property follows from the first one since for .
We know by Lemma 6 that . Moreover, Lemma 7 implies that . Hence, . Therefore, the third property also holds.
Next, we show that the potential of an element is decreasing through the layers.
Lemma 32. For any , and any arbitrary element , and therefore, .
Proof. If , the claim holds because . It also holds for due to the submodularity of and the fact that .
The following is an auxiliary fact that will be used to bound the expected number of layers in our data structure.
Fact 33. Let be a sequence of integer positive variables such that and
Let denote the first index such that and assume that for some fixed integer . Then .
The following two lemmas quantify the expected decrease in potential across consecutive layers, showing that, in expectation, a substantial fraction of the potential diminishes at each layer.
Lemma 34. For any value of , the following holds:
Proof. We know that for any . Hence,
The inequality comes from the fact that is decreasing by Lemma 32 and an integer by definition, so is either 0 or it can be bounded by 1.
We know that if , then . We also know that if , then , which means that . Hence, for any such that , .
By Lemma 17, we have assuming that , then
The proof is complete.
32
□
Lemma 35. For any value of , the following holds:
Proof. By the law of iterated expectation and the previous Lemma, we have
The proof is complete.
Using the above results, this lemma provides a polylogarithmic bound on the number of remaining layers.
Lemma 36. For any ,
Proof. The elements of are divided into buckets, and is the largest one among them. We also know from Lemma 7 that . Therefore,
By Lemma 35, we have
This, the second property of Lemma 31, and Fact 33, completes the proof.
We are now ready to bound the expected total number of layers.
Corollary 37. At any point in the stream, the expected number of layers is at most .
Proof. By Lemma 36, we have
However note that, the expectation in the result above is over all of the randomness of the algorithm. Yet, since for each update u the value of T) after the execution update u is independent of the randomness of the algorithm during subsequent updates, the same holds for expectation over the randomness of the algorithm until the execution of u finishes.
Given the upper bound on the number of layers, we now compute the query complexity of procedure LAYERCONSTRUCT.
Lemma 38. Suppose the procedure LAYERCONSTRUCT(i) is invoked. The expected number of queries made by calling LAYERCONSTRUCT(i) is , where refers to the size of after the update, which is equal to right before executing LAYERCONSTRUCT(i), and the expectation is over the randomness of algorithm only during the execution of LAYERCONSTRUCT(i).
Proof. We know that conditioned on history up to level , the expected number of layers after is polylogarithmic. The number of queries made during ESTIMATESAMPLESIZE() is bounded by . Hence, the number of total queries is bounded by .
Finally, by combining the above results and introducing a charging scheme for the cost, we distribute the cost of each invocation of LAYERCONSTRUCT across updates, thereby bounding the total query complexity of our algorithm per each update.
Theorem 39. The expected amortized update time of our entire algorithm is .
Proof. Each update affects only instances of the main Algorithm. Hence, it suffices to bound the number of queries per update for a fixed instance of the Main Algorithm 4.
The number of query calls made directly via INSERT(e) or DELETE(e) is bounded by T, which by Corollary 37 is known to be polylogarithmic.
To upper bound the number of indirect query calls made per update through the procedure LAYERCONSTRUCT, we employ the following charging scheme:
Let’s refer to the number of calls made during the execution of the procedure LAYERCONSTRUCT( ) as its cost. Note that this cost also reflects the indirect queries that LAYERCONSTRUCT( ) makes through LAYERCONSTRUCT( ). We charge the cost of executing LAYERCONSTRUCT( ) to all the updates that were responsible for triggering its invocation. In particular, if the procedure INSERT(e) directly invokes LAYERCONSTRUCT( ) (not through LAYERCONSTRUCT( )), we spread the cost of LAYERCONSTRUCT( ) among the updates corresponding to the elements in immediately before its execution. Likewise, if DELETE(e) directly invokes LAYERCONSTRUCT( ), we charge its cost to all updates corresponding to the elements in immediately before its execution.
For updates u and v and layer i, let denote the cost charged to u due to the invocation of LAYERCONSTRUCT(i) during the execution of update v. Note that if LAYERCONSTRUCT(i) was not invoked or if it was invoked indirectly through LAYERCONSTRUCT(i - 1), then .
Consider a fixed u and let denote the number of levels right before update u. We have:
Given , we know that LAYERCONSTRUCT(i) has been invoked during update v. By Lemma 38 we know that, the value of is independent of the randomness of the algorithm before the execution of LAYERCONSTRUCT(i) during update v and it is bounded by as the cost of LAYERCONSTRUCT(i) has been spread bacross different updates. We also note that whether or not can be deterministically determined by the randomness of the algorithm up to starting the execution of update v. Therefore, to prove that is polylogarithmic, it only remains to show that
We know that the element corresponding to update u may only be involved in the invocation of LAYERCONSTRUCT(i) during update v if update v is the first update since receiving update u that has caused a direct or indirect invocation of LAYERCONSTRUCT(i), since and would become empty each time LAYERCONSTRUCT(i) is executed. The same reasoning also implies that cannot be nonzero for any as the existence of such level can only be due to the execution of LAYERCONSTRUCT(i) during or after update u. Therefore, we have:
Since , Corollary 37 proves inequality (18) and completes the proof.
References
[1] Moshe Babaioff, Nicole Immorlica, David Kempe, and Robert Kleinberg. Matroid secretary problems. J. ACM, 65(6):35:1–35:26, 2018.
[2] Moshe Babaioff, Nicole Immorlica, and Robert Kleinberg. Matroids, secretary problems, and online mechanisms. In Nikhil Bansal, Kirk Pruhs, and Clifford Stein, editors, Proceedings of the Eighteenth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2007, New Orleans, Louisiana, USA, January 7-9, 2007, pages 434–443. SIAM, 2007.
[3] Ashwinkumar Badanidiyuru, Baharan Mirzasoleiman, Amin Karbasi, and Andreas Krause. Streaming submodular maximization: massive data summarization on the fly. In Sofus A. Macskassy, Claudia Perlich, Jure Leskovec, Wei Wang, and Rayid Ghani, editors, The 20th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD '14, New York, NY, USA - August 24 - 27, 2014, pages 671–680. ACM, 2014.
[4] Eric Balkanski, Aviad Rubinstein, and Yaron Singer. An optimal approximation for submodular maximization under a matroid constraint in the adaptive complexity model. In Moses Charikar and Edith Cohen, editors, Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing, STOC 2019, Phoenix, AZ, USA, June 23-26, 2019, pages 66–77. ACM, 2019.
[5] Kiarash Banihashem, Leyla Biabani, Samira Goudarzi, MohammadTaghi Hajiaghayi, Peyman Jabbarzade, and Morteza Monemizadeh. Dynamic constrained submodular optimization with polylogarithmic update time. In Andreas Krause, Emma Brunskill, Kyunghyun Cho, Barbara Engelhardt, Sivan Sabato, and Jonathan Scarlett, editors, International Conference on Machine Learning, ICML 2023, 23-29 July 2023, Honolulu, Hawaii, USA, volume 202 of Proceedings of Machine Learning Research, pages 1660–1691. PMLR, 2023.
[6] Kiarash Banihashem, Leyla Biabani, Samira Goudarzi, MohammadTaghi Hajiaghayi, Peyman Jabbarzade, and Morteza Monemizadeh. Dynamic non-monotone submodular maximization. In Alice Oh, Tristan Naumann, Amir Globerson, Kate Saenko, Moritz Hardt, and Sergey Levine, editors, Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023, 2023.
[7] Kiarash Banihashem, Leyla Biabani, Samira Goudarzi, MohammadTaghi Hajiaghayi, Peyman Jabbarzade, and Morteza Monemizadeh. Dynamic algorithms for matroid submodular maximization. In
David P. Woodruff, editor, Proceedings of the 2024 ACM-SIAM Symposium on Discrete Algorithms, SODA 2024, Alexandria, VA, USA, January 7-10, 2024, pages 3485–3533. SIAM, 2024.
[8] Kiarash Banihashem, Leyla Biabani, Samira Goudarzi, MohammadTaghi Hajiaghayi, Peyman Jabbarzade, and Morteza Monemizadeh. Dynamic algorithms for submodular matching. In Keren Censor-Hillel, Fabrizio Grandoni, Joël Ouaknine, and Gabriele Puppis, editors, 52nd International Colloquium on Automata, Languages, and Programming, ICALP 2025, July 8-11, 2025, Aarhus, Denmark, volume 334 of LIPIcs, pages 19:1–19:21. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2025.
[9] Kiarash Banihashem, Samira Goudarzi, MohammadTaghi Hajiaghayi, Peyman Jabbarzade, and Morteza Monemizadeh. A dynamic algorithm for weighted submodular cover problem. In Forty-first International Conference on Machine Learning.
[10] Kiarash Banihashem, Samira Goudarzi, MohammadTaghi Hajiaghayi, Peyman Jabbarzade, and Morteza Monemizadeh. A dynamic algorithm for weighted submodular cover problem. In Forty-first International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024. OpenReview.net, 2024.
[11] MohammadHossein Bateni, Lin Chen, Hossein Esfandiari, Thomas Fu, Vahab S. Mirrokni, and Afshin Rostamizadeh. Categorical feature compression via submodular optimization. In Kamalika Chaudhuri and Ruslan Salakhutdinov, editors, Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 9-15 June 2019, Long Beach, California, USA, volume 97 of Proceedings of Machine Learning Research, pages 515–523. PMLR, 2019.
[12] Larry Carter and Mark N. Wegman. Universal classes of hash functions (extended abstract). In Proceedings of the 9th Annual ACM Symposium on Theory of Computing, May 4-6, 1977, Boulder, Colorado, USA, pages 106–112, 1977.
[13] Amit Chakrabarti and Sagar Kale. Submodular maximization meets streaming: Matchings, matroids, and more. Mathematical Programming, 154(1):225–247, 2015.
[14] Chandra Chekuri and Kent Quanrud. Submodular function maximization in parallel via the multilinear relaxation. In Timothy M. Chan, editor, Proceedings of the Thirtieth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2019, San Diego, California, USA, January 6-9, 2019, pages 303–322. SIAM, 2019.
[15] Chandra Chekuri and Kent Quanrud. Isolating cuts, (bi-)submodularity, and faster algorithms for connectivity. In Nikhil Bansal, Emanuela Merelli, and James Worrell, editors, 48th International Colloquium on Automata, Languages, and Programming, ICALP 2021, July 12-16, 2021, Glasgow, Scotland (Virtual Conference), volume 198 of LIPIcs, pages 50:1–50:20. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2021.
[16] Lin Chen, Hossein Esfandiari, Gang Fu, Vahab S. Mirrokni, and Qian Yu. Feature cross search via submodular optimization. In Petra Mutzel, Rasmus Pagh, and Grzegorz Herman, editors, 29th Annual European Symposium on Algorithms, ESA 2021, September 6-8, 2021, Lisbon, Portugal (Virtual Conference), volume 204 of LIPIcs, pages 31:1–31:16. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2021.
[17] Xi Chen and Binghui Peng. On the complexity of dynamic submodular maximization. In Stefano Leonardi and Anupam Gupta, editors, STOC '22: 54th Annual ACM SIGACT Symposium on Theory of Computing, Rome, Italy, June 20 - 24, 2022, pages 1685–1698. ACM, 2022.
[18] Paul Dütting, Federico Fusco, Silvio Lattanzi, Ashkan Norouzi-Fard, and Morteza Zadimoghaddam. Fully dynamic submodular maximization over matroids. ACM Trans. Algorithms, 21(1):11:1–11:23, 2025.
[19] Tomer Ezra, Michal Feldman, Nick Gravin, and Zhihao Gavin Tang. Secretary matching with general arrivals. arXiv preprint arXiv:2011.01559, 2020.
[20] Matthew Fahrbach, Vahab S. Mirrokni, and Morteza Zadimoghaddam. Submodular maximization with nearly optimal approximation, adaptivity and query complexity. In Timothy M. Chan, editor, Proceedings of the Thirtieth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2019, San Diego, California, USA, January 6-9, 2019, pages 255–273. SIAM, 2019.
[21] Moran Feldman, Ola Svensson, and Rico Zenklusen. A simple -competitive algorithm for the matroid secretary problem. In Piotr Indyk, editor, Proceedings of the Twenty-Sixth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2015, San Diego, CA, USA, January 4-6, 2015, pages 1189–1201. SIAM, 2015.
[22] Shayan Oveis Gharan and Jan Vondrák. On variants of the matroid secretary problem. Algorithmica, 67(4):472–497, 2013.
[23] Daniel Golovin and Andreas Krause. Adaptive submodularity: A new approach to active learning and stochastic optimization. In Adam Tauman Kalai and Mehryar Mohri, editors, COLT 2010 - The 23rd Conference on Learning Theory, Haifa, Israel, June 27-29, 2010, pages 333–345. Omnipress, 2010.
[24] Huizhong Guo, Zhu Sun, Dongxia Wang, Tianjun Wei, Jinfeng Li, and Jie Zhang. Enhancing new-item fairness in dynamic recommender systems. In Proceedings of the 48th International ACM SIGIR Conference on Research and Development in Information Retrieval, 2025.
[25] Jianxiong Guo and Weili Wu. Influence maximization: Seeding based on community structure. ACM Trans. Knowl. Discov. Data, 14(6), September 2020.
[26] Kathrin Hanauer, Monika Henzinger, and Christian Schulz. Recent advances in fully dynamic graph algorithms - A quick reference guide. ACM J. Exp. Algorithms, 27:1.11:1–1.11:45, 2022.
[27] Kathrin Hanauer, Monika Henzinger, and Christian Schulz. Recent advances in fully dynamic graph algorithms (invited talk). In James Aspnes and Othon Michail, editors, 1st Symposium on Algorithmic Foundations of Dynamic Networks, SAND 2022, March 28-30, 2022, Virtual Conference, volume 221 of LIPIcs, pages 1:1–1:47. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2022.
[28] Sungjin Im and Yajun Wang. Secretary problems: Laminar matroid and interval scheduling. In Dana Randall, editor, Proceedings of the Twenty-Second Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2011, San Francisco, California, USA, January 23-25, 2011, pages 1265–1274. SIAM, 2011.
[29] Ehsan Kazemi, Marko Mitrovic, Morteza Zadimoghaddam, Silvio Lattanzi, and Amin Karbasi. Submodular streaming in all its glory: Tight approximation, minimum memory and low adaptive complexity. In Kamalika Chaudhuri and Ruslan Salakhutdinov, editors, Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 9-15 June 2019, Long Beach, California, USA, volume 97 of Proceedings of Machine Learning Research, pages 3311–3320. PMLR, 2019.
[30] David Kempe, Jon M. Kleinberg, and Éva Tardos. Maximizing the spread of influence through a social network. In Lise Getoor, Ted E. Senator, Pedro M. Domingos, and Christos Faloutsos, editors, Proceedings of the Ninth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Washington, DC, USA, August 24 - 27, 2003, pages 137–146. ACM, 2003.
[31] Robert Kleinberg and S. Matthew Weinberg. Matroid prophet inequalities. In Howard J. Karloff and Toniann Pitassi, editors, Proceedings of the 44th Symposium on Theory of Computing Conference, STOC 2012, New York, NY, USA, May 19 - 22, 2012, pages 123–136. ACM, 2012.
[32] Nitish Korula and Martin Pál. Algorithms for secretary problems on graphs and hypergraphs. In Susanne Albers, Alberto Marchetti-Spaccamela, Yossi Matias, Sotiris E. Nikoletseas, and Wolfgang Thomas, editors, Automata, Languages and Programming, 36th International Colloquium, ICALP 2009, Rhodes, Greece, July 5-12, 2009, Proceedings, Part II, volume 5556 of Lecture Notes in Computer Science, pages 508–520. Springer, 2009.
[33] Andreas Krause and Carlos Guestrin. Submodularity and its applications in optimized information gathering. ACM Trans. Intell. Syst. Technol., 2(4):32:1–32:20, 2011.
[34] Oded Lachish. O(log log rank) competitive ratio for the matroid secretary problem. In 55th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2014, Philadelphia, PA, USA, October 18-21, 2014, pages 326–335. IEEE Computer Society, 2014.
[35] Silvio Lattanzi, Slobodan Mitrovic, Ashkan Norouzi-Fard, Jakub Tarnawski, and Morteza Zadi-moghaddam. Fully dynamic algorithm for constrained submodular optimization. In Hugo Larochelle, Marc'Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin, editors, Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, 2020.
[36] Xiaoyang Liu, Shu Ye, Giacomo Fiumara, and Pasquale De Meo. Influence nodes identifying method via community-based backward generating network framework. IEEE Transactions on Network Science and Engineering, 11(1):236–253, 2024.
[37] Yifei Ma, Murali Balakrishnan Narayanaswamy, Haibin Lin, and Hao Ding. Temporal-contextual recommendation in real-time. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2020.
[38] Baharan Mirzasoleiman, Ashwinkumar Badanidiyuru, Amin Karbasi, Jan Vondrák, and Andreas Krause. Fast constrained submodular maximization: Personalized data summarization. In International Conference on Machine Learning (ICML), pages 1358–1367, 2016.
[39] Morteza Monemizadeh. Dynamic submodular maximization. In Hugo Larochelle, Marc'Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin, editors, Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, 2020.
[40] Elchanan Mossel and Sebastien Roch. On the submodularity of influence in social networks. In Proceedings of the Thirty-Ninth Annual ACM Symposium on Theory of Computing, STOC '07, page 128–134, New York, NY, USA, 2007. Association for Computing Machinery.
[41] George L. Nemhauser, Laurence A. Wolsey, and Marshall L. Fisher. An analysis of approximations for maximizing submodular set functions - I. Math. Program., 14(1):265–294, 1978.
[42] Haoran Tang, Shiqing Wu, Guandong Xu, and Qing Li. Dynamic graph evolution learning for recommendation. In Proceedings of the 46th International ACM SIGIR Conference on Research and Development in Information Retrieval, pages 1589–1598, 2023.
[43] Sebastian Tschiatschek, Josip Djolonga, and Andreas Krause. Learning probabilistic submodular diversity models via noise contrastive estimation. In Arthur Gretton and Christian C. Robert, editors,
Proceedings of the 19th International Conference on Artificial Intelligence and Statistics, volume 51 of Proceedings of Machine Learning Research, pages 770–779, Cadiz, Spain, 09–11 May 2016. PMLR.
[44] Kai Wei, Rishabh K. Iyer, and Jeff A. Bilmes. Submodularity in data subset selection and active learning. In Francis R. Bach and David M. Blei, editors, Proceedings of the 32nd International Conference on Machine Learning, ICML 2015, Lille, France, 6-11 July 2015, volume 37 of JMLR Workshop and Conference Proceedings, pages 1954–1963. JMLR.org, 2015.
[45] Haolun Wu, Yansen Zhang, Chen Ma, Fuyuan Lyu, Bowei He, Bhaskar Mitra, and Xue Liu. Result diversification in search and recommendation: A survey. IEEE Transactions on Knowledge and Data Engineering, 36(10):5354–5373, 2024.
A Omitted proofs
Lemma 40. Given , we have .
Proof. We know from Lemma 3 that for all ,
In the EXPAND procedure (Algorithm 2), the set is initially set to and may be augmented during the sequence of ADJUST operations on elements in . However, no elements are removed from it during this process.
Therefore, we have for all , and by applying this inductively it follows that for all , as desired.
Lemma 41. The family C of circuits of a matroid has the following properties:
•
• if , and , then .
• (C3) if , , and , then there exists such that .
Lemma 42. Let and be an arbitrary element and independent set in . If , then contains a unique circuit .
Proof. Starting with the dependent set , one can iteratively remove an element that its removal preserves dependence. Since , this process must terminate with a minimal dependent set, which is, by definition, a circuit. Therefore, there exists at least one circuit .
Suppose, for contradiction, that there are two distinct circuits with . Since is independent, neither nor can be fully contained in . Thus, . By Lemma 41 there exists a circuit . However, , implying , which is in contradiction with the independence of .
Therefore, contains exactly one circuit.
Lemma 43. Let be an independent set and be an element such that . Define . Let be an arbitrary weight function and define . The element can be found using at most oracle queries.
Proof. Let denote an ordering of such that . Let denote the smallest index such that . Such an index exists because . We claim that . We note that the element can be found using a binary search over because for any , if , then as well.
To prove this, we first claim that . To see why this holds, we first observe that since is independent but is not, we have . Therefore, since for all , we have , which implies
which implies as claimed.
We need to show that for any , we have . Assume for contradiction that . It follows that for some . By definition of , we must have , which implies . Since , this further implies , which is not possible by definition of .