Dynamic Maintenance of Monotone Dynamic Programs and Applications

01/04/2023
by   Monika Henzinger, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
02/23/2020

Speeding up the AIFV-2 dynamic programs by two orders of magnitude using Range Minimum Queries

AIFV-2 codes are a new method for constructing lossless codes for memory...
research
12/23/2020

Sorting Can Exponentially Speed Up Pure Dynamic Programming

Many discrete minimization problems, including various versions of the s...
research
03/14/2018

Greedy can also beat pure dynamic programming

Many dynamic programming algorithms are "pure" in that they only use min...
research
07/20/2023

Efficient algorithms for enumerating maximal common subsequences of two strings

We propose efficient algorithms for enumerating maximal common subsequen...
research
03/14/2018

Greedy can beat pure dynamic programming

Many dynamic programming algorithms for discrete 0-1 optimizationproblem...
research
06/20/2012

Bayesian structure learning using dynamic programming and MCMC

MCMC methods for sampling from the space of DAGs can mix poorly due to t...
research
06/18/2021

Dependency Structure Misspecification in Multi-Source Weak Supervision Models

Data programming (DP) has proven to be an attractive alternative to cost...

Please sign up or login with your details

Forgot password? Click here to reset