paper

Range Longest Increasing Subsequence and its Relatives

arXiv:2404.04795

Abstract

In this work, we present a plethora of results for the range longest increasing subsequence problem (Range-LIS) and its variants. The input to RLIS is a sequence of real numbers and a collection of query ranges, and for each query in , the goal is to report the LIS of the sequence restricted to that query. Our two main results are for the following generalizations of the RLIS problem. 2D range queries: In this variant of the RLIS problem, each query is a pair of ranges, one of indices and the other of values, and we provide a randomized algorithm with running time , where is the cumulative length of the output subsequences. This improves on the elementary -time algorithm when is at least . Previously, the only known result breaking the quadratic barrier was due to Tiskin [SODA'10], which could only handle 1D range queries (i.e., each query was a range of indices) and also just outputted the length of the LIS (instead of reporting the subsequence achieving that length). Colored sequences: In this variant of the RLIS problem, each element in is colored, and for each query in , the goal is to report a monochromatic LIS contained in the sequence restricted to that query. For 2D queries, we provide a randomized algorithm for this colored version with running time . Moreover, for 1D queries, we provide an improved algorithm with running time . Thus, we again improve on the elementary -time algorithm. Additionally, assuming the well-known Combinatorial Boolean Matrix Multiplication Hypothesis, we prove that the running time for 1D queries is essentially tight for combinatorial algorithms.

Abstract shortened to meet Arxiv requirements

Range Longest Increasing Subsequence and its Relatives · wovepaper