NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Efficient Catalytic Graph Algorithms

James Cook, Edward Pyne · DOI

Abstract

Catalytic Logspace (CL) is a computational model where an algorithm has limited clean memory but access to a large, pre-filled "catalytic" tape that must be restored to its original state. While fundamental problems like $s \to t$ connectivity were known to be in CL, previous algorithms suffered from high polynomial runtimes. This paper introduces the first efficient, randomized algorithms for graph connectivity and random walk simulation in CL. By leveraging "locally revertible" operations and randomization, these algorithms achieve runtimes near-linear in the number of edges, significantly improving the practical utility of catalytic computing.

Introduction

In the Catalytic Logspace (CL) model, an algorithm operates with $O(\log n)$ bits of clean working memory and a $poly(n)$-sized catalytic tape. The tape contains arbitrary, unknown data that can be used for computation, provided it is restored bit-for-bit to its initial state upon completion. This model captures scenarios where a primary process "borrows" memory from another without permanently altering it.

Historically, CL algorithms for graph problems like connectivity were theoretical constructs with runtimes as high as $n^8$. This work addresses the efficiency gap, providing frameworks for connectivity and random walk simulation that are both fast and "locally revertible"—allowing the original data to be recovered quickly even during mid-computation.

Connectivity via Edge Pushes

The authors propose a connectivity algorithm based on "edge pushes." The graph is lifted into layers representing time steps, and each vertex is assigned a register on the catalytic tape. To determine if a path exists from $s$ to $t$, the algorithm propagates values from the source register to its neighbors' registers across successive layers.

Edge push mechanism for catalytic connectivity

Randomization and Revertibility

To maintain small registers ($O(\log n)$ bits), calculations are performed modulo a random prime $q$. This randomization provides a significant speedup over previous deterministic methods. The "locally revertible" property ensures that if an external process needs to read the original catalytic data, the algorithm can undo local changes in polylogarithmic time. Restoration is guaranteed by the linearity of addition: a sequence of "pushes" (additions) is simply followed by a sequence of "reverse pushes" (subtractions) to return the tape to its original state.

Random Walk Simulation

For simulating random walks, the algorithm employs a "one bit per node" strategy. Each node on the catalytic tape holds a single toggle bit. When a walk visits a node, it follows the edge indicated by the current bit and then flips the bit. This simple alternating mechanism ensures that repeated visits are distributed across outgoing edges, effectively approximating a true random walk distribution with minimal state overhead.

Random walk simulation using toggle bits

This approach is particularly effective for Directed Acyclic Graphs (DAGs), where it provides the first practical catalytic method for simulating stochastic processes.

Key Results

The proposed algorithms achieve substantial improvements in efficiency:

  • Randomized Connectivity: Runs in $\tilde{O}(nm)$ time using $O(n)$ catalytic space, approaching the efficiency of standard Breadth-First Search (BFS).
  • Deterministic Connectivity: Runs in $\tilde{O}(n^3m)$ time using $O(n^2)$ catalytic space.
  • Random Walk Simulation: Estimates a $T$-step walk in $\tilde{O}(mT^2/\epsilon)$ time for DAGs.

Conclusion and Future Work

This work moves catalytic computing from a theoretical curiosity toward algorithmic utility. The introduction of "locally revertible" algorithms suggests that catalytic memory can be shared dynamically rather than locked. Future research aims to extend the efficiency of random walk simulations to general graphs without the "layering penalty" and to develop algorithms that are simultaneously fast, deterministic, and locally revertible.

Summary updated

BibTeX
@inproceedings{cook2026efficient,
  author = {James Cook and Edward Pyne},
  title = {{Efficient Catalytic Graph Algorithms}},
  booktitle = {ITCS},
  year = {2026},
  doi = {10.4230/lipics.itcs.2026.43},
}
Figure