Efficient Algorithms for Computing a Minimal Homology Basis

Tamal K. Dey, Tianqi Li, Yusu Wang

Abstract

This paper introduces the first $O(n^3)$ worst-case algorithm for computing a minimal 1-dimensional homology basis in general simplicial complexes. By integrating a divide-and-conquer strategy with "annotations"—a linear algebra technique for tracking homology classes—the authors improve upon previous $O(n^4)$ or $O(n^{1+\omega})$ complexity bounds. Additionally, the work provides a faster 2-approximation algorithm and a generalized framework for various size measures.

Introduction

In computational topology, identifying "features" such as holes or tunnels in a shape is a fundamental task, formally captured by homology groups. While any basis for a homology group indicates the number of holes (the Betti number), researchers typically seek a minimal homology basis—a set of representative cycles that are as "short" or "small" as possible according to a metric like the sum of edge weights.

While this problem is well-understood for simple graphs, it becomes significantly more challenging for simplicial complexes (structures composed of vertices, edges, and triangles). The presence of triangles means that some cycles are "boundaries" of surfaces and are thus topologically trivial. Distinguishing between cycles that encircle actual holes versus those that merely enclose a patch of triangles requires sophisticated machinery. Previous algorithms were either restricted to 2-manifolds or had high computational complexity, limiting their practical use.

Methods

The authors propose a new algorithmic framework that merges two powerful concepts:

  1. Annotations: This technique assigns a $g$-bit vector (where $g$ is the Betti number) to each simplex. The sum of annotations along a cycle provides a unique "signature" for its homology class, effectively turning topological independence into linear independence over $\mathbb{Z}_2$.
  2. Divide and Conquer: The algorithm adapts a recursive approach originally designed for graphs. It maintains "support vectors" to ensure that as the shortest cycles are selected, each new cycle is homologically independent of those already chosen.
Algorithm 1: The CycleBasis procedure for computing a minimal homology basis.

The exact algorithm runs in $O(n^\omega + n^2g)$ time, where $\omega \approx 2.37$ is the matrix multiplication exponent. For general complexes where $g = \Theta(n)$, this results in an $O(n^3)$ complexity.

Key Insights and Results

A major contribution of this work is the realization that divide-and-conquer strategies for graphs can be seamlessly integrated with annotation techniques for complexes. By using annotations, the algorithm avoids expensive global topological checks, relying instead on fast bitwise XOR operations and inner products.

Comparison of a simplicial complex K, its minimal cycle basis, and a 2-approximate minimal cycle basis.

For scenarios requiring even greater efficiency, the authors developed a 2-approximation algorithm. Instead of searching all $O(n^2)$ candidate cycles, it utilizes a smaller candidate set and an "earliest basis" approach on the annotation matrix to select representatives quickly. This approximation runs in $O(n^\omega \sqrt{n \log n})$ expected time.

Furthermore, the authors prove that their algorithm supports generalized geometry, including tight-size functions and path-dominated distances. This allows for finding minimal bases based on varied measures, such as the "radius" of a cycle or external sensor data.

Conclusion and Future Work

By achieving $O(n^3)$ complexity, this research provides a significant improvement over the previous best of $O(n^{3.37})$. While the 1-dimensional case is now solved efficiently, computing minimal bases for higher-dimensional homology under standard "volume" measures remains NP-hard. Future work may explore more tractable measures for high-dimensional features and further refine the trade-offs between approximation factors and practical performance on real-world datasets like 3D meshes.

Summary updated

BibTeX
@inproceedings{dey2018efficient,
  author = {Tamal K. Dey and Tianqi Li and Yusu Wang},
  title = {{Efficient Algorithms for Computing a Minimal Homology Basis}},
  booktitle = {LATIN},
  year = {2018},
  url = {https://openreview.net/forum?id=3fQzRGmw8WC},
}
Figure