Two Linear Passes Are Necessary for Sum-Exclude-Self Under Sublinear Space
Andrew Au

TL;DR
This paper proves that computing sum-exclude-self in sublinear space requires exactly two linear passes over the input, establishing a fundamental lower bound and demonstrating the choke-point technique.
Contribution
It establishes a tight lower bound of two linear passes for sum-exclude-self under sublinear space and introduces the choke-point technique for such proofs.
Findings
Any sublinear-space algorithm must perform two linear passes.
A simple two-pass algorithm achieves the proven lower bound.
The proof illustrates the choke-point technique for lower bounds.
Abstract
We prove that any algorithm computing the sum-exclude-self of an unsigned -bit integer array of length under sublinear space must perform two linear passes over the input. More precisely, the algorithm must read at least input elements before any output cell receives its final value, and at least additional elements thereafter, where bits is the working memory size. This gives a total of element reads. A trivial modification of the standard two-pass algorithm achieves this bound exactly for all practical input sizes. The proof uses this toy problem as a worked example to demonstrate the choke-point technique for proving sublinear-space lower bounds.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
