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 time for instances described in machine words ( 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 binary patterns of length each, and we prove that, unless these instances can be solved in 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 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 about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 7e5d83d8-8b4b-47d3-9728-46334801d397Cited by top-tier papers3
- Explaining the Inherent Tradeoffs for Suffix Array Functionality: Equivalences between String Problems and Prefix Range QueriesDominik Kempa, Tomasz KociumakaSODA 2026
- Tight Lower Bounds for Central String Queries in Compressed SpaceDominik Kempa, Tomasz KociumakaSODA 2026
- Optimal Random Access and Conditional Lower Bounds for 2D Compressed StringsRajat De, Dominik KempaSODA 2026
Builds on7
- Resolution of the Burrows-Wheeler Transform ConjectureDominik Kempa, Tomasz KociumakaFOCS 2020 · 32 citations
- Collapsing the Hierarchy of Compressed Data Structures: Suffix Arrays in Optimal Compressed SpaceDominik Kempa, Tomasz KociumakaFOCS 2023 · 20 citations
- Breaking the 𝒪(n)-Barrier in the Construction of Compressed Suffix Arrays and Suffix TreesDominik Kempa, Tomasz KociumakaSODA 2023 · 10 citations
- Near-Optimal Quantum Algorithms for Bounded Edit Distance and Lempel-Ziv FactorizationDaniel Gibney, Ce Jin, Tomasz Kociumaka, Sharma V. ThankachanSODA 2024 · 7 citations
- Optimal Square Detection Over General AlphabetsJonas Ellert, Pawel Gawrychowski, Garance GourdelSODA 2023 · 3 citations
Related papers
- Lempel-Ziv (LZ77) Factorization in Sublinear TimeDominik Kempa, Tomasz KociumakaFOCS 2024 · 2 citations
- Deterministic Sparse Pattern Matching via the Baur-Strassen TheoremNick FischerSODA 2024 · 2 citations
- Faster Algorithms for Text-to-Pattern Hamming DistancesTimothy M. Chan, Ce Jin, Virginia Vassilevska Williams, Yinzhan XuFOCS 2023 · 3 citations
- Hopcroft's Problem, Log-Star Shaving, 2D Fractional Cascading, and Decision TreesTimothy M. Chan, Da Wei ZhengSODA 2022 · 6 citations
- Approximate Orthogonal Vectors and Diameter via Regularity LemmaAlexandr Andoni, Shunhua Jiang, Stepan ZharkovSTOC 2026
