arXiv:2610.41723cs.CCOct 2026

Manuscript Offprint

arXiv:2610.41723

Catalytic space-efficient algorithms for Distance and Determinant

Srijan Chakraborty, Samir Datta, Kushagra Shandilya

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Catalytic computation reuses potentially large but in-use space (or catalytic space) which must be restored to its initial contents while the clean space is small. This allows all problems in NL and even larger classes to be in catalytic logspace [Buhrman et al, STOC2014]. In [Chmel et al, CCC2026] the catalytic space for reachability was restricted to sublinear space (specifically, n2Θ(log⁡n)\frac{n}{2^{\Theta(\sqrt{\log n})}} space) while remaining in polynomial time. This matches the non-catalytic bounds from [Barnes et al, SICOMP1998].

We extend the reachability bound to shortest distance, proving a simultaneous sublinear catalytic space and polynomial time bound (henceforth called, sublinear CLP). This is the first simultaneous sublinear space and polynomial time bound for distance even without the catalytic discipline. Moreover, our bound works even for polynomially weighted graphs.

Along the way we prove simultaneous near linear catalytic space (O(nlog⁡O(1)n)\mathcal{O}(n \log^{O(1)} n)) and polynomial time bounds for the determinant. We also show some applications to planar matching problems.

Our starting point was catalytic computation of reachability in directed graphs by [Cook-Pyne, ITCS2026]. [Edenhofer, arXiv:2602.21088] used it to give a tradeoff between catalytic and non-catalytic space, while [Chmel et al, CCC2026] compress the graph to a smaller graph preserving s,ts, t-reachability to achieve a smaller space bound. All three can be modified to yield an algorithm for unweighted distance.

Our contribution is to define an approximation to the walk polynomial in weighted graphs that allows us to infer weighted s,ts, t-distance in sublinear CLP. We do so by non-trivially combining elements from each of the above three papers.

1 Introduction

Achieving a logspace bound for various problems is the gold standard in space bounded computation – achieved in particular for (undirected) connectivity by Reingold's breakthrough result [Rei08]. From a reduction to connectivity, this carried over to a plethora of problems like planarity testing [AM04, DP11], bounded treewidth decomposition and MSO evaluation therein [EJT10], planar, bounded genus and bounded treewidth isomorphism [DLN⁺²², EK14, ES17]. However for problems that were not provably or even believably in Logspace such as reachability, the problem of giving a good deterministic space bounded characterization persisted.

Of course, Savitch's theorem could squeeze reachability into polylogarithmic space but at the expense of quasipolynomial running time. Rather than compromise on polynomial time, there were attempts to limit the non-determinism by considering unambiguous computation and Reinhardt-Allender [RA00] were able to prove that Reachability is in fact in unambiguous logspace if only at the expense of non-uniformity. Bourke et al [BTV09] were even able to get rid of the non-uniformity for planar reachability. However non-deterministic computation even if unambiguous is not quite deterministic.

This clarified what was required: a polynomial time, deterministic algorithm that worked in low space. Barnes et al [BBRS98] achieved a deterministic sublinear space algorithm for reachability, that was simultaneously polynomial time bounded. Here the matters rested for a long time.

Then in a master stroke, building upon an old idea of Ben-Or & Cleve [BC92], Buhrman et al [BCK⁺¹⁴] introduced the class CL. The idea was to catalyse Logspace with the use of a large filled space that had to be restored to its original contents before the algorithm terminated. Suddenly we were back in the domain of deterministic space computation, more so when Koucký et al. [KMPS25] proved that adding non-determinism or randomization to this model does not make it more powerful. In the original paper itself it was shown that not only reachability but a significant part of linear algebra and in fact, all of TC¹ are in CL.

The one flip side of the great power of the class CL is that it isn't even known to be polynomially bounded on all inputs i.e. inside P. However Buhrman et al [BCK⁺¹⁴] were able to prove a ZPP bound by viewing CL as a probabilistic class which is polynomial time bounded in the expectation.

Soon catalytic logspace was populated with problems that had long defied being classified as deterministically parallelisable – the prominent examples being bipartite matching, linear matroid intersection¹ and even general matching [AM25, AAV26, CDK⁺²⁶a]. Surprisingly these bound were simultaneously polynomially bounded i.e. in CLP.

Having achieved CLP, a sceptic would tend to believe that this was where the story ended. However, soon enough, contrary to this scepticism the efforts to save catalytic space for CLP problems emerged. A prominent example is the O(log⁡2n)O(\log^2 n) bound on catalytic space simultaneous with logarithmic workspace and polynomial time, for BPL given by Pyne in [Pyn24]. Notice that this catalytically achieved the upper bound of SC2SC^2 proved by Nisan on BPL [Nis94].

A similar bound on reachability would be the natural next step. Preliminary efforts mimicking Pyne [Pyn24] were made in Arvind et al [ACD26] using unambiguity to give a tradeoff between space and catalytic space, which was catalytically retracing the footsteps of Reinhardt-Allender [RA00]. In the deterministic setting, this effort is stymied at the outset by the difficulty in improving the space bound of reachability beyond the Barnes et al [BBRS98]

¹The recent breakthrough of Chatterjee et al [CGG⁺²⁶] puts Bipartite Matching and Linear matroid intersection in NC.

bound of slightly sublinear, n2Θ(log⁡n)\frac{n}{2\Theta(\sqrt{\log n})}, along with simultaneous polynomial time even in the non-catalytic setting. Yet, after initial catalytic space versus time tradeoff results by Cook & Pyne [CP26] and space versus catalytic space tradeoff results by Edenhofer [Ede26] the effort culminates in the frontier paper of Chmel et al [CDK +^+26b] that achieves the Barnes et al [BBRS98] space versus time tradeoff catalytically i.e. works in sublinear catalytic space while simultaneously using logarithmic workspace and polynomial time.

This is where our results enter the fray. We show that not only reachability but also iterated matrix product of nn matrices each of dimension nn (this was implicit in [BCK +^+14]), directed distance in nn vertex graphs and even the determinant of an n×nn \times n matrix can be computed in near linear CLP i.e. catalytic logspace using O(nlog⁡O(1)n)O(n \log^{O(1)} n) space and simultaneous polynomial time – in fact we show a trade off result between workspace and catalytic space, similar to [Ede26].

We then go on to show that distance in nn vertex, polynomially bounded edge weighted graphs can be computed in sublinear CLP i.e. n/2log⁡nn/2^{\sqrt{\log n}} catalytic space with simultaneous logarithmic workspace and polynomial time. Even without catalytic space, as far as we are aware this is the first sublinear space bound for weighted distance while staying in polynomial time. Any improvements to this bound on distance would naturally yield corresponding improvements for reachability.

For the determinant result our techniques build on Cook-Pyne [CP26] along with an identity that relates the generating function of elementary symmetric polynomials to the power polynomials along with polynomial interpolation from Hesse et al [HAB02]. For the distance result we build on the frontiers paper Chmel et al [CDK +^+26b] and combine it with an IMM n_n tradeoff a la Edenhofer [Ede26].

We also exhibit two matching applications of our results. The first is search and decision for planar perfect matchings in near linear CLP, as a consequence of being able to compute the Pfaffian (analogous to determinant computation) in near linear CLP. The applications combine our main results with techniques from various sources [Kas67, MSV04, ACD26]. The second is for the restriction to planar bipartite graphs, we can further improve the decision and search for perfect matching to sub linear CLP which uses a technique from Miller-Naor [MN95].