Beating Rytter's Bound: All-Pairs CFL Reachability in $O(n^3(\log\log n)^2/(\log n)^2)$ Time
Rupak Majumdar
Key points
From the paper's conclusion- We give the first improvement to Rytter's algorithm.
Abstract
Context-free reachability and 2NPDA recognition are fundamental problems in program analysis and language theory. Despite years of effort, the best algorithms for these problems run in time $O(n^3/\log n)$ on a word RAM model; they are based on an observation of Rytter in 1985 for 2NPDA which was adapted for CFL reachability by Chaudhuri in 2008. No better algorithm has been designed since. We give the first improvement to Rytter's algorithm. For both all-pairs context-free reachability and 2NPDA recognition, we show a deterministic algorithm running in $O(n^3(\log\log n)^2/(\log n)^2)$ time and $O(n^{2+\epsilon})$ words of space for every fixed $0<\epsilon<1$ on a word RAM. Our improvement is based on a new data structure that reports set differences using batched maintenance of exact intersection counts, allowing saturation to skip regions that contain no new reachability information.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Pushdown Reachability Requires $N^{3/2}$ Time on Multitape Turing MachinesarXiv · 2026
- Faster Algorithms for Disjoint Paths in DAGs and Two Disjoint Shortest PathsarXiv · 2026
- H-BRICK: Hierarchical Boundary Reachability Index with Compressed Kleene Closure for Directed Grid GraphsarXiv · 2026
- Space Complexity of Reachability in Simple Path GraphsarXiv · 2026
- H-BRICK: Hierarchical Boundary Reachability Index with Compressed Kleene Closure for Directed Grid GraphsMathematics · 2026
- Solution to Bucher's density problem for context-free languagesarXiv · 2026