Efficient computations of discrete cubical homology

Chris Kapulkin,Nathan Kershaw
2024-10-14
Abstract:We present a fast algorithm for computing discrete cubical homology of graphs over a field of characteristic zero. 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.
Computational Geometry,Algebraic Topology,Combinatorics
What problem does this paper attempt to address?
### Problems the paper attempts to solve This paper aims to solve the problem of efficient computation of discrete cubical homology. Specifically, the author proposes a fast algorithm for computing the discrete cubical homology of a graph over a field of characteristic zero. This algorithm has improvements in multiple computational steps compared to existing methods, and the key innovations include: 1. **Generate all singular cubes more quickly**: Generate all graph mappings inductively, avoiding the inefficient process of directly checking all set mappings. 2. **Reduce the dimension of vector spaces in the chain complex**: Reduce the dimension of the vector space by taking the quotient of the automorphism of the cube. 3. **Pre - process the graph**: Pre - process the graph using the axiomatic treatment method of discrete cubical homology to reduce the number of vertices. ### Background and motivation In topological data analysis, common tools need to compute the homology of some kind of graph. For example, persistence homology associates a graph to a clique complex and then computes its simplicial homology. Another method is magnitude homology, which generates a family of bi - graded groups based on the concept of the size of a graph. Path homology is recovered through the diagonal of this family of bi - graded groups. Discrete homology is a different invariant, which is introduced in the context of metric spaces and is mainly used to understand the shape of data. Different from the above homology theories, the computation of discrete homology is more complex because it involves non - degenerate mappings from the hypercube graph \(Q_n\) to the graph \(G\), which form the basis of free modules. Therefore, even for a relatively small \(n\), the dimension of these modules can be very large. ### Main contributions 1. **Mathematical improvements**: - Propose a new method for generating graph mappings. - Reduce the dimension of the module by taking the quotient of the action of the hyperoctahedral group. - Pre - process the graph using techniques from discrete homotopy theory to reduce the number of vertices. 2. **Programming improvements**: - Utilize different data storage methods. - Parallelize the algorithm to improve computational efficiency. ### Experimental results Through these improvements, the author significantly reduces the computation time. For example, the fourth homology group of the 5 - cycle graph, which was previously considered uncomputable, can now be computed in approximately 30 minutes. In addition, for other graphs (such as the 3 - torus \(T^3\) and the star - shaped 5 - cycle graph \(C^{\text{star}}_5\)), the computation time has also been significantly reduced. ### Conclusion The algorithm proposed in this paper not only improves the computational efficiency of discrete cubical homology but also provides new directions for future research. By combining mathematical and programming improvements, the author successfully solves the key bottleneck problems in the computation of discrete cubical homology.