Dynamic Longest Increasing Subsequence and the Erdös-Szekeres Partitioning Problem

Michael Mitzenmacher, Saeed SeddighinarXiv 2021

Introduction

Finding the Longest Increasing Subsequence (LIS) of an array is a fundamental problem in computer science, typically solved in $O(n \log n)$ time. However, modern applications often require solutions in a dynamic setting, where elements are frequently inserted, deleted, or substituted. Recomputing the LIS from scratch after every update is computationally prohibitive. This paper introduces novel dynamic approximation algorithms for LIS and the related Distance to Monotonicity (DTM) problem, achieving sublinear update times. Furthermore, these advancements are applied to nearly optimally solve the 85-year-old Erdös-Szekeres partitioning problem.

Problem Statement

The authors address two primary dynamic challenges:

  1. Dynamic LIS: Maintaining an approximation of the LIS as the array undergoes modifications.
  2. Dynamic DTM: Maintaining the minimum number of elements to remove to render the remaining array monotonic.

Beyond these, the paper targets the Erdös-Szekeres partitioning problem. A classic 1935 theorem states that any sequence of length $n$ can be decomposed into $O(\sqrt{n})$ monotone subsequences. Efficiently computing this partition has been a bottleneck, with complexity stuck at $O(n^{1.5})$ since the late 1990s.

Methodology

The core of the paper's contribution lies in several theoretical innovations:

Grid Packing

The standout technique is "Grid Packing." The authors map the 1D array onto a 2D plane, where the x-axis represents the array index and the y-axis represents the element's value. This plane is divided into an $m \times m$ grid. Instead of a global LIS computation, the algorithm defines horizontal and vertical segments across the grid, computes local LIS for these segments, and uses Dynamic Programming to stitch them into a global approximation.

The Grid Packing technique: mapping sequences to a 2D grid and stitching local LIS segments.

Block-Based Algorithm Reduction

To handle update times, the authors developed a meta-framework to convert algorithms with good amortized update times into those with good worst-case update times. This is achieved by running parallel instances of an algorithm; while one instance handles active updates, a background instance performs heavy preprocessing to take over seamlessly.

Inversion Graphs for DTM

For the DTM problem, the array is modeled as a graph where edges represent inversions. Finding the DTM is equivalent to finding a minimum vertex cover. The authors maintain a maximal set of disjoint inversions for a 2-approximation, which is then refined into a $(1+\epsilon)$-approximation.

Key Results

The proposed algorithms achieve significant improvements in update efficiency and approximation quality.

Summary of approximation factors and update times for dynamic LIS and DTM problems.
  • Dynamic LIS: Achieved a constant factor approximation of $O((1/\epsilon)^{O(1/\epsilon)})$ with a worst-case update time of $\tilde{O}(n^\epsilon)$.
  • Dynamic DTM: Achieved a $(1+\epsilon)$-approximation with a worst-case update time of $O(\log^2 n)$.
  • Erdös-Szekeres Partitioning: By leveraging the dynamic LIS algorithm, the partitioning problem was solved in $\tilde{O}_\epsilon(n^{1+\epsilon})$ time, breaking the long-standing $O(n^{1.5})$ barrier.

Limitations and Future Work

While the results are groundbreaking, some limitations remain. The LIS approximation factor scales exponentially with $1/\epsilon$, and the constant factor in the Erdös-Szekeres partition count is not strictly optimal. Notably, this work has already catalyzed further research, with subsequent papers building on these techniques to achieve even tighter approximation gaps and faster update times.

Summary updated

BibTeX
@misc{mitzenmacher2021dynamic,
  author = {Michael Mitzenmacher and Saeed Seddighin},
  title = {{Dynamic Longest Increasing Subsequence and the Erdös-Szekeres Partitioning Problem}},
  year = {2021},
  eprint = {2101.07360},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2101.07360},
}
Figure