Estimating the longest increasing sequence in polylogarithmic time

Michael E. Saks, C. Seshadhri

TL;DR

This paper introduces a polylogarithmic time randomized algorithm for estimating the length of the Longest Increasing Subsequence (LIS) of an array. It achieves an additive error of $\delta n$ with high probability, significantly improving upon previous algorithms that offered only a factor of 2 approximation for the related "distance to monotonicity" problem.

What Problem Does This Paper Address?

The Longest Increasing Subsequence (LIS) problem is a fundamental algorithmic challenge. While efficient $O(n \log n)$ algorithms exist for finding the exact LIS length, this paper focuses on the related problem of estimating the LIS length in sublinear time, specifically polylogarithmic time. This is crucial for handling massive datasets where processing the entire input is infeasible. The authors also consider the "distance to monotonicity," which is the minimum number of elements to change to make an array non-decreasing. Previous sublinear algorithms could only provide a 2-approximation for this distance, which translates to a weak additive approximation for LIS. The paper aims to bridge this gap by providing a much tighter additive approximation for LIS in polylogarithmic time.

Methods

The core of the paper's contribution lies in a novel randomized algorithm that employs a sophisticated divide-and-conquer strategy. Key techniques include:

  • Interactive Protocol Inspiration: The algorithm's design is inspired by interactive proof systems, where a prover tries to convince a verifier of a claim (e.g., LIS length is at least $bn$). This framework helps in understanding how to break down the problem into smaller, verifiable steps.
  • Splitters and Conservative Splitters: The algorithm uses "splitters" to divide boxes (representing subproblems) into smaller ones. A "conservative splitter" is a point that has few violations with other points in its vicinity, a property that can be checked probabilistically.
  • Dichotomy Lemma: A crucial technical lemma establishes a dichotomy: either there are many "good" splitters, allowing for efficient simulation of the interactive protocol, or the problem itself has a structure that limits the LIS length, providing an inherent bound.
  • Boosting Quality of Approximation: The algorithm recursively refines its estimates. By carefully managing additive and multiplicative errors, it can boost the quality of approximation over multiple recursive calls.
  • Terminal Boxes and Grid Chains: The algorithm decomposes the problem into "terminal boxes" and uses "grid chains" within these boxes to represent potential increasing subsequences.
  • Improved TerminalBox Procedure: A significant improvement over the basic algorithm is a modified TerminalBox procedure that uses phases and dynamically adjusts parameters to achieve better running times. This procedure is key to obtaining the polylogarithmic time complexity independent of the error parameter $\delta$.

Datasets

Not discussed in the paper. The algorithms are described for a general input array $f: [n] \to \mathbb{R}$.

Key Insights and Ideas

  • Polylogarithmic Time for Additive LIS Approximation: The most significant insight is that it's possible to estimate LIS length with a guaranteed additive error $\delta n$ in polylogarithmic time, a substantial improvement over previous methods.
  • Bridging the Gap Between LIS and Distance to Monotonicity: The paper demonstrates that a good approximation for LIS can be achieved even when previous methods struggled with the related distance to monotonicity problem.
  • The Power of Recursive Refinement: The algorithm's ability to recursively refine its estimates, carefully balancing different types of errors, is central to its success.
  • The Dichotomy Lemma's Role: This lemma provides a theoretical foundation for why the algorithm's approach is sound, connecting the availability of "good" splitters to the inherent difficulty of the problem.
  • Phased Approach in TerminalBox: The improved TerminalBox procedure's phased approach, where parameters are adjusted based on the success of finding splitters, is a clever way to optimize the algorithm's performance without sacrificing accuracy.

Key Results

  • Additive $\delta n$ Approximation in Polylogarithmic Time: The paper presents a randomized algorithm that estimates the LIS length within an additive error of $\delta n$ with high probability, running in time $(1/\delta)^{O(1/\delta)} (\log n)^c$ for some constant $c$.
  • Improved Multiplicative Approximation: The same algorithm can also provide a $(1+\tau)$-approximation to the distance to monotonicity (i.e., $loss_f/n$) in time $(1/(\epsilon_f \tau))^{O(1/\tau)} (\log n)^c$, where $\epsilon_f$ is the true distance to monotonicity. This improves upon previous $(2+\tau)$-approximations.
  • Error Probability Reduction: The error probability of $1/4$ can be reduced to any $\epsilon > 0$ by repeating the algorithm $O(\log(1/\epsilon))$ times and taking the median.

Limitations and Future Work

  • Randomized Algorithm: The algorithm is randomized, meaning there's a small probability of error. While this probability can be made arbitrarily small, it's not a deterministic guarantee.
  • Complexity of the Improved Algorithm: While the improved algorithm achieves polylogarithmic time independent of $\delta$, the exponents in the running time still depend on $\tau$ (for the basic algorithm) and $\delta$ (for the improved algorithm).
  • Informal Discussion of Intuition: The paper provides an informal discussion for the intuition behind the improved algorithm, suggesting that a more formal understanding could be beneficial.
  • Future Work: The authors mention that their results may be helpful in other problems, such as approximating the Ulam distance between strings. The paper also hints at further refinements to reduce the dependence on error parameters in the running time.

Summary updated

BibTeX
@article{saks2010estimating,
  author = {Michael E. Saks and C. Seshadhri},
  title = {{Estimating the longest increasing sequence in polylogarithmic time}},
  journal = {SIAM Journal on Computing},
  year = {2010},
}
Figure