TY - GEN
T1 - Dynamic Maintenance of Monotone Dynamic Programs and Applications
AU - Henzinger, Monika
AU - Neumann, Stefan
AU - Räcke, Harald
AU - Schmid, Stefan
N1 - Publisher Copyright:
© Monika Henzinger, Stefan Neumann, Harald Räcke, and Stefan Schmid.
PY - 2023/3/1
Y1 - 2023/3/1
N2 - 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 + ϵ)-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.
AB - 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 + ϵ)-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.
KW - Dynamic programming
KW - data structures
KW - dynamic algorithms
UR - http://www.scopus.com/inward/record.url?scp=85149867993&partnerID=8YFLogxK
U2 - 10.4230/LIPIcs.STACS.2023.36
DO - 10.4230/LIPIcs.STACS.2023.36
M3 - Conference contribution
AN - SCOPUS:85149867993
T3 - Leibniz International Proceedings in Informatics, LIPIcs
BT - 40th International Symposium on Theoretical Aspects of Computer Science, STACS 2023
A2 - Berenbrink, Petra
A2 - Bouyer, Patricia
A2 - Dawar, Anuj
A2 - Kante, Mamadou Moustapha
PB - Schloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing
T2 - 40th International Symposium on Theoretical Aspects of Computer Science, STACS 2023
Y2 - 7 March 2023 through 9 March 2023
ER -