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

Dynamic Maintenance of Monotone Dynamic Programs and Applications

Monika Henzinger, Stefan Neumann, Harald Räcke, Stefan Schmid

Introduction

Dynamic Programming (DP) is a fundamental algorithmic technique, yet its traditional implementations often suffer from high time and space complexity, typically $O(n^2)$. While specific optimizations like the Monge property have improved static DP performance, maintaining solutions in dynamic environments—where inputs change over time—remains a significant challenge. This paper introduces a general framework for the dynamic maintenance of DP solutions by leveraging monotonicity and piecewise constant function approximations.

The Monotone DP Framework

The authors define a class of (h, α, p)-well-behaved DPs. This framework relies on two primary structural properties:

  1. Monotonicity: Each row or state in the DP table must represent a monotone function.
  2. Bounded Dependency DAG: The dependencies between subproblems must form a Directed Acyclic Graph (DAG) with a limited height $h$, ensuring that updates do not propagate indefinitely.

Function Compression via Piecewise Approximation

The core innovation lies in representing DP rows as monotone piecewise constant functions rather than dense arrays. In a standard DP, a row might contain $n$ values. However, if the function is monotone and we accept a $(1+ε)$ approximation, the number of "steps" or value changes required to represent the function becomes polylogarithmic relative to the value range $[0, W]$.

To support this representation, the paper develops a comprehensive toolkit for performing standard DP operations directly on these compressed functions. These operations include:

  • (min, +)-convolution
  • Rounding and Shifting
  • Pointwise Minimums

By performing these operations in polylogarithmic time, the framework allows for rapid updates to the DP state when underlying data changes.

Applications and Theoretical Results

The framework is applied to several classic problems, providing significant improvements over existing state-of-the-art algorithms.

Fully Dynamic 0-1 Knapsack

For the 0-1 Knapsack problem, the framework achieves a $(1+ε)$-approximation with an update time of approximately $O(ε^{-2} \log^2(nW))$. This represents the fastest known algorithm for the dynamic version of this problem, where items can be added or removed from the set.

k-Balanced Graph Partitioning

The paper provides the first dynamic algorithm for $k$-balanced partitioning with subpolynomial update times. Previously, any modification to the graph necessitated a full re-computation of the DP table. The framework allows the solution to evolve alongside the graph structure efficiently.

Static Improvements

Beyond dynamic maintenance, the framework also yields near-linear time and space complexity for static versions of these problems. This is a substantial improvement over the quadratic costs associated with traditional DP approaches, making the algorithms viable for much larger datasets.

Discussion and Limitations

While the framework offers a powerful tool for algorithmic efficiency, it has specific constraints:

  • Approximation Bound: The efficiency gains are predicated on $(1+ε)$ approximations. The rounding techniques used to maintain small data structures are incompatible with exact solution requirements.
  • Monotonicity Requirement: The problem must be expressible through monotone dependencies. While the authors demonstrate techniques to "monotonize" certain non-monotone problems (e.g., by considering function inverses), not all DP structures are amenable to this transformation.

Future research may explore the use of higher-degree piecewise approximations, such as piecewise linear or spline functions, to extend the framework's applicability to more complex, non-monotone DP structures.

Summary updated

BibTeX
@inproceedings{henzinger2023dynamic,
  author = {Monika Henzinger and Stefan Neumann and Harald Räcke and Stefan Schmid},
  title = {{Dynamic Maintenance of Monotone Dynamic Programs and Applications}},
  booktitle = {STACS},
  year = {2023},
  url = {https://openreview.net/forum?id=7j_QhOFLzwF},
}
Figure