Fully Dynamic Maximal Independent Set with Polylogarithmic Update Time

Soheil Behnezhad, Mahsa Derakhshan, MohammadTaghi Hajiaghayi, Cliff Stein, Madhu SudanFOCS 2019

Abstract

We present the first algorithm for maintaining a maximal independent set (MIS) of a fully dynamic graph—which undergoes both edge insertions and deletions—in polylogarithmic time. Our algorithm is randomized and, per update, takes $O(\log^2 \Delta \cdot \log^2 n)$ expected time. Furthermore, the algorithm can be adjusted to have $O(\log^2 \Delta \cdot \log^4 n)$ worst-case update-time with high probability. Here, $n$ denotes the number of vertices and $\Delta$ is the maximum degree in the graph. The MIS problem in fully dynamic graphs has attracted significant attention after a breakthrough result of Assadi, Onak, Schieber, and Solomon [STOC'18] who presented an algorithm with $O(m^{3/4})$ update-time (and thus broke the natural $\Omega(m)$ barrier) where $m$ denotes the number of edges in the graph. This result was improved in a series of subsequent papers, though, the update-time remained polynomial. In particular, the fastest algorithm prior to our work had $\widetilde{O}(\min\{\sqrt{n}, m^{1/3}\})$ update-time [Assadi et al. SODA'19]. Our algorithm maintains the lexicographically first MIS over a random order of the vertices. As a result, the same algorithm also maintains a 3-approximation of correlation clustering. We also show that a simpler variant of our algorithm can be used to maintain a random-order lexicographically first maximal matching in the same update-time.

Introduction

In graph theory, a Maximal Independent Set (MIS) is a fundamental structure where no two vertices in the set are adjacent, and no additional vertex can be added without violating this property. While finding an MIS in a static graph is a straightforward task for greedy algorithms, maintaining it in a fully dynamic environment—where edges are frequently inserted or deleted—presents a significant computational challenge.

For years, the research community sought an algorithm capable of updating an MIS in less than polynomial time. A recent breakthrough by Behnezhad et al. finally achieves this, moving the field from polynomial update costs to polylogarithmic time. This represents an exponential speedup, providing a scalable solution for massive, rapidly changing datasets.

The Challenge of Dynamic MIS

In a fully dynamic graph, the goal is to update the MIS after every edge modification as efficiently as possible. Previous state-of-the-art algorithms, such as those by Assadi et al., achieved update times like $O(m^{3/4})$ or $\tilde{O}(\min\{\sqrt{n}, m^{1/3}\})$. While these results broke the linear $\Omega(m)$ barrier, they remained polynomial, meaning the cost per update could still be prohibitive for large-scale graphs. The central question in the field was whether an MIS could be maintained in $O(\text{poly} \log n)$ time. This paper answers that question in the affirmative.

Methodology: Random Ranking and Eliminators

The authors' approach centers on maintaining a specific type of MIS: the Lexicographically First MIS (LFMIS) relative to a random permutation of vertices.

1. Random Ranking and LFMIS

At the outset, each vertex $v$ is assigned a random rank $\pi(v)$ chosen uniformly from $[0, 1]$. The LFMIS is defined by processing vertices in increasing order of their ranks; a vertex is added to the MIS if and only if none of its lower-ranked neighbors have already been included. This structure is particularly useful because it is history-independent: the current MIS depends only on the current graph and the assigned ranks, not on the sequence of edge updates.

2. The Eliminator Concept

To track the status of each vertex efficiently, the algorithm introduces the concept of an "eliminator." For any vertex $v$, its eliminator is the neighbor with the lowest rank that is currently in the MIS. If $v$ itself is in the MIS, it serves as its own eliminator. If $v$ is not in the MIS, it must have at least one neighbor in the MIS with a lower rank.

3. Dynamic Data Structures

A naive update would require checking all neighbors of a vertex, leading to a bottleneck of $\Omega(\Delta)$, where $\Delta$ is the maximum degree. To circumvent this, the authors partition a vertex's neighborhood into two sets, $N^-$ and $N^+$, based on the ranks of their neighbors' eliminators. These sets are stored in balanced search trees (BSTs). This allows the algorithm to quickly identify which neighbors might be affected by a change while ignoring the majority that remain "shielded" by lower-ranked eliminators.

Key Insights

  • Bounded Ripple Effects: The core technical breakthrough is the proof that, for any edge update, the expected number of vertices that change their eliminator is only $O(\log n)$. While a single change could theoretically trigger a massive cascade of flips, the random ranking ensures that these cascades are statistically limited.
  • Pruning the Search Space: By indexing neighbors by the rank of their eliminators, the algorithm avoids the need to scan the entire neighborhood, allowing it to achieve polylogarithmic complexity.

Results and Applications

The primary result is a randomized algorithm with an expected update time of $O(\log^2 \Delta \cdot \log^2 n)$. For applications requiring stricter guarantees, the algorithm can be modified to provide a worst-case update time of $O(\log^2 \Delta \cdot \log^4 n)$ with high probability.

Beyond MIS, the framework is remarkably versatile:

  • Correlation Clustering: The algorithm maintains a 3-approximation for correlation clustering.
  • Maximal Matching: A simplified version of the framework maintains a random-order lexicographically first maximal matching within the same polylogarithmic time bounds.
  • Stability: The expected number of changes to the MIS (vertices entering or leaving the set) per edge update is $O(1)$, ensuring high stability in the output.

Conclusion and Future Work

This work marks a milestone in dynamic graph algorithms by breaking the polynomial barrier for MIS. However, some challenges remain. The current proofs rely on an oblivious adversary assumption, where the sequence of updates cannot be influenced by the algorithm's random choices. Additionally, while this randomized approach is highly efficient, the quest for a deterministic polylogarithmic algorithm for fully dynamic MIS remains an open and significant problem in the field.

Summary updated

BibTeX
@inproceedings{behnezhad2019fully,
  author = {Soheil Behnezhad and Mahsa Derakhshan and MohammadTaghi Hajiaghayi and Cliff Stein and Madhu Sudan},
  title = {{Fully Dynamic Maximal Independent Set with Polylogarithmic Update Time}},
  booktitle = {FOCS},
  year = {2019},
  url = {https://openreview.net/forum?id=Mc9K1e81RhF},
}
Figure