English

Fine-Grained Computation in 3-Space: Matrix Multiplication and Graph Problems

Data Structures and Algorithms 2024-12-20 v1

Abstract

Obeying constraints imposed by classical physics, we give optimal fine-grained algorithms for matrix multiplication and problems involving graphs and mazes, where all calculations are done in 3-dimensional space. We assume that whatever the technology is, a bit requires a minimum volume and communication travels at a bounded speed. These imply that multiplying n×nn \times n matrices takes Ω(n2/3)\Omega(n^{2/3}) time, and we show that this can be achieved by a fine-grained 3-d mesh of n2n^2 processors. While the constants are impractically large, this is asymptotically faster than parallel implementations of Strassen's algorithm, while the lower bound shows that some claims about parallelizing faster serial algorithms are impossible in 3-space. If the matrices are not over a ring then multiplication can be done in Θ(n3/4)\Theta(n^{3/4}) time by expanding to a mesh larger than the input. In 2-d (such as the surface of a chip) this approach is useless and Θ(n)\Theta(n) systolic algorithms are optimal even when the matrices are over a ring. Similarly, for path and maze problems there are approaches useful in 3-d but not 2-d.

Keywords

Cite

@article{arxiv.2412.14441,
  title  = {Fine-Grained Computation in 3-Space: Matrix Multiplication and Graph Problems},
  author = {Quentin F. Stout},
  journal= {arXiv preprint arXiv:2412.14441},
  year   = {2024}
}

Comments

13 pages

R2 v1 2026-06-28T20:41:30.476Z