Efficient computations of discrete cubical homology
Chris Kapulkin, Nathan Kershaw
TL;DR
This work tackles the computational intractability of discrete cubical homology for graphs by combining mathematical and programming advances. The authors introduce a faster graph-map generation technique, leverage a quotient by the hyperoctahedral group to reduce module dimensions, and apply discrete-homotopy preprocessing to shrink graphs before computation. They also optimize matrix construction via degeneracy tracking, precomputed faces, and coordinate dictionaries, and demonstrate substantial speedups—enabling previously intractable cases such as high-dimensional homology and larger graphs, especially with parallelization. The result is the fastest known algorithm for discrete cubical homology on graphs, with publicly available Julia code and clear directions for further improvements.
Abstract
We present a fast algorithm for computing discrete cubical homology of graphs over finite fields with an appropriate characteristic. This algorithm improves on several computational steps compared to constructions in the existing literature, with the key insights including: a faster way to generate all singular cubes, reducing the dimensions of vector spaces in the chain complex by taking a quotient over automorphisms of the cube, and preprocessing graphs using the axiomatic treatment of discrete cubical homology.
