English

A Space-space Trade-off for Directed st-Connectivity

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

Abstract

We prove a space-space trade-off for directed stst-connectivity in the catalytic space model. For any integer knk \leq n, we give an algorithm that decides directed stst-connectivity using O(lognlogk+logn)O(\log n \cdot \log k+\log n) regular workspace and O(nklog2n)O\left(\frac{n}{k} \cdot \log^2 n\right) bits of catalytic memory. This interpolates between the classical O(log2n)O(\log^2 n)-space bound from Savitch's algorithm and a catalytic endpoint with O(logn)O(\log n) workspace and O(nlog2n)O(n\cdot \log^2 n) catalytic memory. As a warm-up, we present a catalytic variant of Savitch's algorithm achieving the endpoint above. Up to logarithmic factors, this matches the smallest catalyst size currently known for catalytic logspace algorithms, due to Cook and Pyne (ITCS 2026). Our techniques also extend to counting the number of walks from ss to tt of a given length n\ell\leq n.

Cite

@article{arxiv.2602.21088,
  title  = {A Space-space Trade-off for Directed st-Connectivity},
  author = {Roman Edenhofer},
  journal= {arXiv preprint arXiv:2602.21088},
  year   = {2026}
}
R2 v1 2026-07-01T10:50:20.456Z