[Paper Review] Dynamic Maintenance of Monotone Dynamic Programs and Applications
This paper introduces a novel data structure for dynamic programming (DP) that exploits monotonicity in DP table rows to achieve near-linear time and space complexity for static DP and polylogarithmic update times in dynamic settings. By representing rows as monotone piecewise constant functions, the method enables efficient (min, +)-convolution and rounding operations, leading to the first dynamic algorithms with subpolynomial update times for k-balanced graph partitioning and simultaneous source location, and the fastest fully dynamic knapsack algorithm to date.
Dynamic programming (DP) is one of the fundamental paradigms in algorithm design. However, many DP algorithms have to fill in large DP tables, represented by two-dimensional arrays, which causes at least quadratic running times and space usages. This has led to the development of improved algorithms for special cases when the DPs satisfy additional properties like, e.g., the Monge property or total monotonicity. In this paper, we consider a new condition which assumes (among some other technical assumptions) that the rows of the DP table are monotone. Under this assumption, we introduce a novel data structure for computing $(1+\varepsilon)$-approximate DP solutions in near-linear time and space in the static setting, and with polylogarithmic update times when the DP entries change dynamically. To the best of our knowledge, our new condition is incomparable to previous conditions and is the first which allows to derive dynamic algorithms based on existing DPs. Instead of using two-dimensional arrays to store the DP tables, we store the rows of the DP tables using monotone piecewise constant functions. This allows us to store length-$n$ DP table rows with entries in $[0,W]$ using only polylog$(n,W)$ bits, and to perform operations, such as $(\min,+)$-convolution or rounding, on these functions in polylogarithmic time. We further present several applications of our data structure. For bicriteria versions of $k$-balanced graph partitioning and simultaneous source location, we obtain the first dynamic algorithms with subpolynomial update times, as well as the first static algorithms using only near-linear time and space. Additionally, we obtain the currently fastest algorithm for fully dynamic knapsack.
Motivation & Objective
- Address the high time and space complexity of traditional dynamic programming, which relies on quadratic-sized tables.
- Develop a dynamic algorithm for DP that supports efficient updates when entries change, without recomputing from scratch.
- Introduce a new structural condition—monotonicity of DP table rows—that enables efficient data structures and algorithms.
- Achieve subpolynomial update times for key NP-hard problems like k-balanced partitioning and simultaneous source location.
- Provide the first fully dynamic knapsack algorithm with improved update time over prior work.
Proposed method
- Represent each row of the DP table as a monotone piecewise constant function, reducing space usage to polylog(n, W) bits per row.
- Use a data structure that supports (min, +)-convolution and rounding operations on these functions in polylogarithmic time.
- Leverage Räcke trees to maintain approximate cut sparsifiers for dynamic graph problems.
- Apply a technique of monotonizing existing non-monotone DPs by redefining the state space to enforce monotonicity.
- Invert the DP formulation in some cases (e.g., simultaneous source location) to work with the inverse function, enabling monotonicity.
- Use a topological ordering and incremental recomputation for dynamic updates, limited to vertices on paths from changed entries.
Experimental results
Research questions
- RQ1Can monotonicity in DP table rows be exploited to design dynamic algorithms with subpolynomial update times?
- RQ2Is there a new structural condition for dynamic programming that is incomparable to existing ones like Monge or total monotonicity?
- RQ3Can existing non-monotone DPs be transformed into monotone forms to enable dynamic maintenance?
- RQ4Can the inverse of a DP function be used to achieve monotonicity and enable efficient dynamic updates?
- RQ5What are the practical implications of this approach for fundamental problems like knapsack, graph partitioning, and source location?
Key findings
- The proposed data structure supports (1 + ϵ)-approximate DP solutions in near-linear time and space in the static setting.
- For dynamic updates, the method achieves polylogarithmic update times per entry change, significantly improving upon previous approaches.
- The first dynamic algorithms with subpolynomial update times are achieved for bicriteria k-balanced graph partitioning and simultaneous source location.
- The first static algorithm using only near-linear time and space is presented for these problems, improving over prior quadratic-space methods.
- An improved fully dynamic knapsack algorithm is obtained, outperforming the recent FSTTCS’21 result by Eberle et al.
- The technique of monotonizing the Feldmann and Foschini DP for k-balanced partitioning enables dynamic maintenance, previously not possible.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.