Lune

STOC2025Top-tier venue

On the Hardness Hierarchy for the O(n√log n) Complexity in the Word RAM

Dominik Kempa, Tomasz Kociumaka

Abstract

In this work, we study the relative hardness of fundamental problems with state-of-the-art word RAM algorithms that take O(nlog⁡n)O(n\sqrt{\log n}) time for instances described in Θ(n)Θ(n) machine words (Θ(nlog⁡n)Θ(n\log n) bits). This complexity class, one of six hardness levels identified by Chan and Pătraşcu [SODA 2010], includes diverse problems from several domains: Counting Inversions, string processing problems (BWT Construction, LZ77 Factorization, Longest Common Substring, Batched Longest Previous Factor Queries, Batched Inverse Suffix Array Queries), and computational geometry tasks (Orthogonal Range Counting, Orthogonal Segment Intersection). We offer two main contributions: We establish new links between the above string problems and Dictionary Matching, a classic task solvable using the Aho-Corasick automaton. We restrict Dictionary Matching to instances with O(n)O(n) binary patterns of length m=O(log⁡n)m = O(\log n) each, and we prove that, unless these instances can be solved in o(nlog⁡n)o(n\sqrt{\log n}) time, the aforementioned string problems cannot be solved faster either. Via further reductions, we extend this hardness to Counting Inversions (a fundamental component in geometric algorithms) and thus to Orthogonal Range Counting and Orthogonal Segment Intersection. This hinges on String Nesting, a new problem which is equivalent to Dictionary Matching and can be reduced to Counting Inversions in three steps. Together, our results unveil a single problem, with two equivalent formulations, that underlies the hardness of nearly all major problems currently occupying the O(nlog⁡n)O(n\sqrt{\log n}) level of hardness. These results drastically funnel further efforts to improve the complexity of near-linear problems. As an auxiliary outcome of our framework, we also prove that the alphabet in several central string problems can be efficiently reduced to binary.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Collapsing the Hierarchy of Compressed Data Structures: Suffix Arrays in Optimal Compressed Space cites Resolution of the Burrows-Wheeler Transform Conjecture
  • Collapsing the Hierarchy of Compressed Data Structures: Suffix Arrays in Optimal Compressed Space cites Breaking the 𝒪(n)-Barrier in the Construction of Compressed Suffix Arrays and Suffix Trees
  • Explaining the Inherent Tradeoffs for Suffix Array Functionality: Equivalences between String Problems and Prefix Range Queries cites Collapsing the Hierarchy of Compressed Data Structures: Suffix Arrays in Optimal Compressed Space
  • Explaining the Inherent Tradeoffs for Suffix Array Functionality: Equivalences between String Problems and Prefix Range Queries cites Breaking the 𝒪(n)-Barrier in the Construction of Compressed Suffix Arrays and Suffix Trees
  • Explaining the Inherent Tradeoffs for Suffix Array Functionality: Equivalences between String Problems and Prefix Range Queries cites Tight Lower Bounds for Central String Queries in Compressed Space
  • Tight Lower Bounds for Central String Queries in Compressed Space cites Explaining the Inherent Tradeoffs for Suffix Array Functionality: Equivalences between String Problems and Prefix Range Queries
  • Near-Optimal Quantum Algorithms for Bounded Edit Distance and Lempel-Ziv Factorization cites Resolution of the Burrows-Wheeler Transform Conjecture
  • Breaking the 𝒪(n)-Barrier in the Construction of Compressed Suffix Arrays and Suffix Trees cites Resolution of the Burrows-Wheeler Transform Conjecture
  • Tight Lower Bounds for Central String Queries in Compressed Space cites Collapsing the Hierarchy of Compressed Data Structures: Suffix Arrays in Optimal Compressed Space
  • Tight Lower Bounds for Central String Queries in Compressed Space cites Resolution of the Burrows-Wheeler Transform Conjecture
  • Tight Lower Bounds for Central String Queries in Compressed Space cites Breaking the 𝒪(n)-Barrier in the Construction of Compressed Suffix Arrays and Suffix Trees
  • Optimal Random Access and Conditional Lower Bounds for 2D Compressed Strings cites Collapsing the Hierarchy of Compressed Data Structures: Suffix Arrays in Optimal Compressed Space
  • Optimal Random Access and Conditional Lower Bounds for 2D Compressed Strings cites Explaining the Inherent Tradeoffs for Suffix Array Functionality: Equivalences between String Problems and Prefix Range Queries
  • Optimal Random Access and Conditional Lower Bounds for 2D Compressed Strings cites Resolution of the Burrows-Wheeler Transform Conjecture
  • Optimal Random Access and Conditional Lower Bounds for 2D Compressed Strings cites Breaking the 𝒪(n)-Barrier in the Construction of Compressed Suffix Arrays and Suffix Trees
  • Optimal Random Access and Conditional Lower Bounds for 2D Compressed Strings cites Tight Lower Bounds for Central String Queries in Compressed Space
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. Explaining the Inherent Tradeoffs for Suffix Array Functionality: Equivalences between String Problems and Prefix Range QueriesDominik Kempa, Tomasz KociumakaSODA 2026
  2. Tight Lower Bounds for Central String Queries in Compressed SpaceDominik Kempa, Tomasz KociumakaSODA 2026
  3. Optimal Random Access and Conditional Lower Bounds for 2D Compressed StringsRajat De, Dominik KempaSODA 2026

Builds on7

  1. Resolution of the Burrows-Wheeler Transform ConjectureDominik Kempa, Tomasz KociumakaFOCS 2020 · 32 citations
  2. Collapsing the Hierarchy of Compressed Data Structures: Suffix Arrays in Optimal Compressed SpaceDominik Kempa, Tomasz KociumakaFOCS 2023 · 20 citations
  3. Breaking the 𝒪(n)-Barrier in the Construction of Compressed Suffix Arrays and Suffix TreesDominik Kempa, Tomasz KociumakaSODA 2023 · 10 citations
  4. Near-Optimal Quantum Algorithms for Bounded Edit Distance and Lempel-Ziv FactorizationDaniel Gibney, Ce Jin, Tomasz Kociumaka, Sharma V. ThankachanSODA 2024 · 7 citations
  5. Optimal Square Detection Over General AlphabetsJonas Ellert, Pawel Gawrychowski, Garance GourdelSODA 2023 · 3 citations

Related papers

  1. Lempel-Ziv (LZ77) Factorization in Sublinear TimeDominik Kempa, Tomasz KociumakaFOCS 2024 · 2 citations
  2. Deterministic Sparse Pattern Matching via the Baur-Strassen TheoremNick FischerSODA 2024 · 2 citations
  3. Faster Algorithms for Text-to-Pattern Hamming DistancesTimothy M. Chan, Ce Jin, Virginia Vassilevska Williams, Yinzhan XuFOCS 2023 · 3 citations
  4. Hopcroft's Problem, Log-Star Shaving, 2D Fractional Cascading, and Decision TreesTimothy M. Chan, Da Wei ZhengSODA 2022 · 6 citations
  5. Approximate Orthogonal Vectors and Diameter via Regularity LemmaAlexandr Andoni, Shunhua Jiang, Stepan ZharkovSTOC 2026
Dusk over the sea between two cliffs drawn in fine vertical lines