CS Paper Radar

Breaking the Square-Root Space Barrier for Longest Increasing Subsequence

Naohito Matsumoto, Masashi Kiyomi

cs.DS cs.CC ·submitted 2026-11-24 02:28 UTC · v1

Abstract

For every fixed constant $\varepsilon>0$, we give deterministic algorithms for computing the length of a longest increasing subsequence (LIS) and for outputting an LIS in input order, both in $O(n^{2+\varepsilon})$ time and $O(\sqrt n/2^{δ\sqrt{\log n}})={\rm o}(\sqrt n)$ bits of working space for some constant $δ>0$. The input is read-only and the output is write-only. This answers an open question of Kiyomi et al. Our construction combines small-pile skipping with recursive blockwise computation of pile tops. Balanced reconstruction uses streaming intersections of forward and backward piles.

Comment
12 pages, 3 figures

Closest papers

Nearest neighbours by meaning across the whole index.

Optimal (Parallel) Spooky Pebbling on Binary Trees

cs.CC ·2026-10-07 ·Mingyu Lee, Sanghyun Lee, Kabgyun Jeong
similarity 0.58
Abstract · 21 pages, 1 figure

Pebble games model computations under a fixed space budget. Spooky pebbling allows quantum memory to be released by measurement, with the resulting phases corrected later. We study two-input computations with binary-tree dependencies and determine the optimal work and parallel depth for complete binary trees. Our key idea is to clean up the tree in blocks, reducing repeated recomputation of intermediate values. For the complete tree $B_h$ with $n=2^h-1$ vertices and every space budget $h+1\le s\le n$, we give an algorithm with asymptotically optimal work $Θ(nh/\log(s+1))$. At the minimum budget $s=h+1$, this improves the $O(n\log n)$ bound of Kornerup, Sadun, and Soloveichik to $Θ(n\log n/\log\log n)$, resolving their time-optimality question. We also construct a parallel schedule with optimal depth \[ Θ\!\left(h+\frac ns \max\!\left\{\frac{h}{\log(s+1)},\,1+\log^*h\right\}\right). \] Our lower bounds hold for every full binary tree. We also show that achieving optimal parallel depth can require asymptotically more work than minimizing work alone. Applying our schedule to the RNS point-addition trees in the public implementation of Chevignard, Fouque, and Schrottenloher reduces their Toffoli/AND gate count by $20.86\%$ for a P-224 instance and $22.66\%$ for a P-256 instance, using the same arithmetic circuits and peak workspace.

0.41

Sorting by block-reversals: closing the gap

cs.DS ·2026-11-19 ·László Kozma
similarity 0.58
Abstract

In block-reversal sorting an elementary operation is to reverse the order of a contiguous block in a sequence, at cost proportional to the length of the block. In SODA 2004, Bender, Ge, He, Hu, Pinter, Skiena, and Swidan showed that every sequence of length $n$ can be sorted at cost $O(n\log^2{n})$ and some sequences can only be sorted at cost $Ω(n\log{n})$. In block-partition sorting, an elementary operation is to partition the sequence into contiguous blocks, and simultaneously reverse all blocks. The model was introduced in SODA 2024 by Jelínek, Opler, and Pekárek, who showed that every sequence can be sorted in $O(\log^2{n})$ steps and some sequences require $Ω(\log{n})$ steps. We close both gaps, showing that the upper bounds are tight, and the $\log^2{n}$ factors are unavoidable.

0.44

Output-Sensitive Enumeration of Maximal Closed Substrings in Linear Space

cs.DS ·2026-10-28 ·Johannes Fischer, Dominik Köppl
similarity 0.56
Abstract

We revisit the output-sensitive enumeration of maximal closed substrings (MCSs). Given a string of length $n$ over an integer alphabet, let $k$ denote its number of MCS occurrences. We combine a right-to-left sweep on the string with range-successor queries to obtain all MCSs with two deterministic word-RAM bounds: for any fixed $\varepsilon>0$, we can report all MCSs in $O(n\sqrt{\log n}+k\log^\varepsilon n)$ time using $O(n)$ words of space, or in $O(n\sqrt{\log n}+k\log\log n)$ time using $O(n\log\log n)$ words. Both bounds include preprocessing and report occurrences by their endpoints. In particular, these algorithms improve the known $O(n\log n)$ worst-case time bound for sufficiently small output.

0.53

Near-Linear Preprocessing for Range Weighted Longest Increasing Subsequence Queries

cs.DS ·2026-10-14 ·Keisuke Korogi
similarity 0.56
Abstract · 8 pages, 1 figure

We give a deterministic data structure for range weighted longest increasing subsequence (LIS) queries on $n$ values with positive weights. Preprocessing takes $O(n\log^2 n)$ time and space. Value queries take $O(\log n)$ time, and an optimal subsequence of $k$ elements can be reported in $O(k + \log n)$ time. This resolves an open question on truly subquadratic preprocessing with polylogarithmic query time. The key is a single-crossing property of envelopes for value-separated endpoint sets, enabling $O(\log n)$-time persistent merges. The bounds assume constant-time exact addition and comparison of weights.

0.32

Tree Edit Distance: Near-Linear-Time Approximate, Sublinear, and Dynamic

cs.DS ·2026-10-15 ·Bingbing Hu, Tomasz Kociumaka, Jakob Nogler, Barna Saha
published similarity 0.55
Abstract · SODA 2027

Tree edit distance (TED), the analog of string edit distance (ED) for hierarchical data, is the minimum number of node insertions, deletions, and substitutions transforming one labeled rooted ordered tree into another. We narrow polynomial gaps between TED and ED in near-linear-time approximation, sublinear algorithms, and dynamic algorithms. We give an $n^{o(1)}$-approximation in $O(n)$ time and, for every $0<δ<1$, a $(\log n)^{O(1/δ)}$-approximation in $O(n^{1+δ})$ time. This improves the previous near-linear-time $O(\sqrt n)$-approximation [Boroujeni et al., STOC'19] and brings TED to parity with ED in this regime up to polylogarithmic factors. With query access to the balanced-parentheses (Euler-tour) representation of the input trees, we give the first sublinear-time TED algorithm: for every $τ\in[1,n]$, it computes a $τn^{o(1)}$-approximation of $1+\mathrm{ted}$ in $O(n/τ)$ time. For dynamic TED, we give an exact algorithm with amortized update time $\tilde{O}(k^7)$ and a $(1+\varepsilon)$-approximation with amortized update time $\tilde{O}_{\varepsilon}(k)$, where $k$ caps the distance that must be reported. The exact algorithm is the first to beat recomputation in a nontrivial parameter regime. The approximation improves prior dynamic guarantees [Das et al., FOCS'25] and cannot be significantly improved in any parameter regime without a breakthrough for static $(1+\varepsilon)$-approximation of ED. All results use dynamic programming on a new hierarchical tree decomposition, analogous to partitioning strings into blocks of geometrically decreasing sizes. It combines structural properties previously achieved only in isolation, providing a framework for transferring algorithmic ideas from ED to TED, with additional ingredients addressing the obstacles in each computational setting.

0.34

Compressed Subsequence Checking is PSPACE-complete

cs.FL ·2026-09-13 ·Markus Lohrey
theory similarity 0.55
Abstract

It is shown that the (scattered) subsequence problem for two words represented by straight-line programs is $\mathsf{PSPACE}$-complete, even over a binary alphabet. The lower bound is obtained by a polynomial-time reduction from quantified subset sum. If the two words are given explicitly, i.e., uncompressed, then the subsequence problem is hard for uniform $\mathsf{NC}^1$ and in deterministic logspace.

0.24

Faster Treasure Hunt via Strongly Universal Exploration with Polylogarithmic Overhead

cs.CC ·2026-11-05 ·Qin Xin
similarity 0.55
Abstract · 27 pages

We study deterministic exploration and delayed-activation treasure hunt in anonymous undirected port-labeled graphs with incoming-port information. From polynomial-time constructible ordinary universal exploration sequences of length \(O(n^c)\) for a fixed regular degree, we construct a single infinite strongly universal exploration sequence with cover time \(O(n^c\log^2n)\). Summable dyadic insertion schedules yield the sharper bound \(O_\eps(n^c\log n(\log\log n)^{1+\eps})\) for every fixed \(\eps>0\), together with refinements at every fixed iterated-logarithm depth. The proof combines reversible excursions, neutral guards and an arbitrary-window argument that treats both orientations simultaneously. For this recurrence, uniform linear expansion is equivalent to convergence of the normalized period sum. Exact counting identities also permit direct instruction access. With a logspace ordinary generator, table-free enumeration of decreasing scale paths computes instruction \(t\) using \(O(\log(t+2))\) working bits and time polynomial in \(t\). The earlier polynomial-slack bounds follow as corollaries. A local cubic simulation extends the treasure-hunt application to arbitrary-degree graphs, with the \(2m\)-vertex replacement size included explicitly in the bound.

0.36

Avoiding squares over words with lists of size three

cs.DM math.CO ·2026-11-19 ·Matthieu Rosenfeld
theory similarity 0.54
Abstract

We prove that every sequence of lists of size three admits an infinite square-free word, establishing that the Thue choice number of the path is three. More precisely, the number of compatible square-free words of length $n$ is at least $c(5/4)^n$, where $c>0$ is an absolute constant. The proof combines a computer-assisted construction of weights with the weighted counting method previously introduced by the author. We first consider words avoiding only squares of bounded period and use a finite state model to certify a uniform lower bound on their growth. The counting argument then controls the loss caused by excluding longer squares. The main new ingredient is a coarser description of the states, which makes the computation feasible without restricting the union of the lists. The same computation yields a deterministic polynomial-time strategy for constructing an infinite square-free word when each list is chosen adversarially after the preceding letters have been fixed.

0.42