English

Frontier Space-Time Algorithms Using Only Full Memory

Data Structures and Algorithms 2026-02-25 v1 Computational Complexity

Abstract

We develop catalytic algorithms for fundamental problems in algorithm design that run in polynomial time, use only O(log(n))\mathcal{O}(\log(n)) workspace, and use sublinear catalytic space matching the best-known space bounds of non-catalytic algorithms running in polynomial time. First, we design a polynomial time algorithm for directed ss-tt connectivity using n/2Θ(logn)n \big/ 2^{\Theta(\sqrt{\log n})} catalytic space, which matches the state-of-the-art time-space bounds in the non-catalytic setting [Barnes et al., 1998], and improves the catalytic space usage of the best known algorithm [Cook and Pyne, 2026]. Furthermore, using only O(log(n))\mathcal{O}(\log(n)) random bits we get a randomized algorithm whose running time nearly matches the fastest time bounds known for space-unrestricted algorithms. Second, we design polynomial time algorithms for the problems of computing Edit Distance, Longest Common Subsequence, and the Discrete Fr\'{e}chet Distance, again using n/2Θ(logn)n \big/ 2^{\Theta(\sqrt{\log n})} catalytic space. This again matches non-catalytic time-space frontier for Edit Distance and Least Common Subsequence [Kiyomi et al., 2021].

Keywords

Cite

@article{arxiv.2602.21089,
  title  = {Frontier Space-Time Algorithms Using Only Full Memory},
  author = {Petr Chmel and Aditi Dudeja and Michal Koucký and Ian Mertz and Ninad Rajgopal},
  journal= {arXiv preprint arXiv:2602.21089},
  year   = {2026}
}