Skip to content

Deterministic algorithms for range LIS and its relatives

Filippo di Gravina, Francesco Damiano Di Gregorio

cs.DS

Abstract

We give deterministic algorithms for range longest increasing subsequence (LIS) on a sequence of length n and a batch of Q queries. Write N = n + Q and let K denote the total output size. Two-dimensional range LIS admits reporting in O((N + K) log^3(2 + n)) time by composing earliest-endpoint frontiers using totally monotone matrix search. For colored one-dimensional range LIS, compressed hitting sets and monotone min-plus multiplication give N5−13+o(1)N^{5-\sqrt{13}+o(1)} time for the score and attaining color, and N18/13+o(1)+O~(K)N^{18/13+o(1)} + \tilde{O}(K) time for reporting. A persistent range oracle gives exact colored and weighted rectangle queries in O~(nQ+Q)+O(K)\tilde{O}(n\sqrt{Q} + Q) + O(K) time. We also obtain a weighted approximation algorithm, algorithms for ordered fragments and tree paths, and reductions relating colored LIS to sparse triangle and masked max-plus problems.

Create a lesson

Metadata

Comments
17 pages, 0 figures