NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Coarse-Grained Complexity for Dynamic Algorithms

Sayan Bhattacharya, Danupon Nanongkai, Thatchaphol Saranurak

TL;DR

This paper introduces a "coarse-grained" complexity theory for dynamic algorithms, defining dynamic analogues of classic complexity classes like $\mathsf{P}$, $\mathsf{NP}$, and the Polynomial Hierarchy ($\mathsf{PH}$). By proving that the dynamic Orthogonal Vectors (OV) problem is $\mathsf{NP}^{dy}$-complete, the authors provide a powerful framework to prove unconditional non-reducibility results—explaining, for instance, why researchers have been unable to reduce dynamic OV to the $k$-edge connectivity problem.

What Problem Does This Paper Address?

In the study of dynamic algorithms, the input changes over time (e.g., edges are inserted or deleted in a graph), and the algorithm must update its answer quickly (ideally in polylogarithmic time) without recomputing from scratch.

Recently, researchers have proved many lower bounds for dynamic algorithms using fine-grained complexity. This approach relies on strong assumptions about specific problems, like the Strong Exponential Time Hypothesis (SETH) or the Online Matrix-Vector Multiplication (OMv) conjecture, to prove exact polynomial time bounds.

However, dynamic algorithms lack a traditional coarse-grained complexity theory—the kind that groups problems into broad resource-based classes like $\mathsf{P}$ and $\mathsf{NP}$. Without this, we miss out on structural insights. For example, what if dynamic OV (the basis for many fine-grained lower bounds) turns out to be easy in the cell-probe model? Or, can we mathematically prove that certain problems cannot be reduced to one another? This paper builds the foundational theory to answer these questions.

Methods

The authors construct a systematic complexity theory for dynamic problems in the cell-probe and word-RAM models:

  • Defining $\mathsf{P}^{dy}$: The class of dynamic problems solvable with deterministic, polylogarithmic worst-case update time.
  • Defining $\mathsf{NP}^{dy}$ (Nondeterminism with Rewards): In static $\mathsf{NP}$, a verifier just checks a proof and outputs YES or NO. In the dynamic setting, this isn't enough because the verifier must maintain a useful state across multiple updates. The authors solve this by introducing a reward mechanism: at each step, the verifier outputs YES/NO and a reward score. The prover is forced to provide a proof that maximizes this reward, ensuring the verifier gets useful structural information even for NO-instances.
  • Completeness: They define $\mathsf{P}^{dy}$-reductions and introduce a core problem called dynamic narrow DNF evaluation ($\mathsf{DNF}^{dy}$), proving it is $\mathsf{NP}^{dy}$-complete.
  • Hierarchy and Randomization: They extend these definitions to create a dynamic polynomial hierarchy ($\mathsf{PH}^{dy}$) and randomized classes ($\mathsf{BPP}^{dy}$, $\mathsf{AM}^{dy}$).

Datasets

Not discussed in the paper. (This is a theoretical computer science paper focused on complexity classes, algorithms, and mathematical proofs, so no empirical datasets are used).

Key Insights and Ideas

  • Nondeterminism requires incentives: The "reward" concept is a brilliant workaround for dynamic nondeterminism. Without it, a prover could give useless proofs during NO-instances, leaving the verifier's data structure corrupted for future YES-instances. Maximizing a reward forces the prover to help the verifier maintain a valid underlying structure (like a spanning forest) at all times.
  • Dynamic OV is $\mathsf{NP}^{dy}$-complete: The dynamic Orthogonal Vectors (OV) problem is the bedrock of many fine-grained lower bounds. This paper proves it is actually $\mathsf{NP}^{dy}$-complete.
  • The "What If" Scenario: If dynamic OV admits a fast algorithm in the cell-probe model (meaning $\mathsf{P}^{dy} = \mathsf{NP}^{dy}$), the entire dynamic polynomial hierarchy collapses. This would mean dozens of notoriously hard dynamic problems (like $k$-edge connectivity and approximate matching) automatically have efficient algorithms.
  • Proving Non-Reducibility: The framework allows us to prove that certain reductions are impossible. If a problem is in $\mathsf{AM}^{dy} \cap \mathsf{coAM}^{dy}$, it cannot be $\mathsf{NP}^{dy}$-hard (unless the hierarchy collapses). This saves researchers from wasting time trying to find reductions that don't exist.

Key Results

  • Completeness: $\mathsf{DNF}^{dy}$ and dynamic OV are $\mathsf{NP}^{dy}$-complete.
  • Hardness: Many well-known dynamic problems (Subgraph connectivity, ST-reachability, Chan’s subset union) are $\mathsf{NP}^{dy}$-hard.
  • Hierarchy Collapse: If $\mathsf{P}^{dy} = \mathsf{NP}^{dy}$, then $\mathsf{PH}^{dy} = \mathsf{P}^{dy}$.
  • $k$-edge Connectivity is not $\mathsf{NP}^{dy}$-hard: The authors prove that dynamic $k$-edge connectivity is in $\mathsf{AM}^{dy} \cap \mathsf{coAM}^{dy}$. Assuming the dynamic hierarchy doesn't collapse, this strictly rules out any "efficient reduction" from dynamic OV to $k$-edge connectivity.

Limitations and Future Work

Limitations: * The framework strictly focuses on worst-case update times. It does not currently capture amortized update times, which are highly prevalent in dynamic graph algorithms. * To make the classes work in the word-RAM model (as opposed to the cell-probe model), the authors had to allow for quasi-polynomial preprocessing time and space, which is slightly non-standard.

Future Work: * Derandomization: Exploring whether randomized dynamic algorithms can always be made deterministic (analogous to the $\mathsf{P} = \mathsf{BPP}$ question in static complexity). * $\mathsf{NP}^{dy}$-Intermediate Problems: Investigating if there are dynamic problems that are neither in $\mathsf{P}^{dy}$ nor $\mathsf{NP}^{dy}$-complete (analogous to Ladner's theorem). * Search Problems: Extending the theory to dynamic search problems (e.g., maintaining the actual edges of a maximal matching, rather than just answering a YES/NO decision query about its size).

Summary updated

BibTeX
@inproceedings{bhattacharya2020coarse,
  author = {Sayan Bhattacharya and Danupon Nanongkai and Thatchaphol Saranurak},
  title = {{Coarse-Grained Complexity for Dynamic Algorithms}},
  booktitle = {SODA},
  year = {2020},
  url = {https://openreview.net/forum?id=IpbxN7Jh3j},
}

Loading related content...

Figure