NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Fast Minimum Degree Algorithm and Matching Lower Bound

Robert Cummings, Matthew Fahrbach, Animesh FatehpuriaSODA 2019 · DOI

Abstract

The minimum degree algorithm (MDA) is a cornerstone of sparse matrix computation, used for decades to minimize fill-in during Cholesky decomposition. Despite its ubiquity, its exact time complexity remained an open question. This paper presents a novel combinatorial algorithm that computes an exact minimum degree ordering in $O(nm)$ time, improving upon the long-standing $O(n^3)$ bound. Furthermore, we establish a matching lower bound based on the Strong Exponential Time Hypothesis (SETH), demonstrating that $O(nm)$ is essentially optimal.

Introduction

Solving large, sparse systems of linear equations ($Ax = b$) is a fundamental task in scientific computing. When applying direct solvers like Cholesky decomposition, the process often introduces "fill-in"—new non-zero entries in the factorized matrix that were not present in the original. This increases both memory requirements and computational overhead.

To mitigate this, researchers employ reordering heuristics. The Minimum Degree Algorithm (MDA) is perhaps the most widely used heuristic. It operates greedily: at each step, it selects the vertex with the minimum degree in the current elimination graph, removes it, and adds edges between all its neighbors to form a clique. While "Approximate Minimum Degree" (AMD) variants are common in modern libraries due to their speed, they do not guarantee the exact greedy choice. This research finally characterizes the complexity of the exact MDA, bridging a gap that has existed for nearly half a century.

The FastMinimumDegree Algorithm

The primary challenge in implementing MDA efficiently is the dynamic nature of the elimination graph. As vertices are removed, new edges (fill-in) are added, and vertex degrees must be updated. A naive implementation requires $O(n^3)$ time.

The proposed FastMinimumDegree algorithm achieves $O(nm)$ time by utilizing a hybrid data structure approach:

  1. Implicit Hypergraph Representation: Instead of explicitly materializing every fill-in edge, the algorithm represents the graph as a collection of cliques (hyperedges). This captures the structure of the evolving graph without the $O(n^2)$ cost of explicit edge insertion.
  2. Dual Representation: It maintains an explicit adjacency representation alongside the hypergraph to facilitate rapid degree queries.
  3. Amortized Analysis: The efficiency is guaranteed through a careful accounting of "edge insertion attempts." By analyzing the frequency with which the algorithm encounters existing edges during the clique-forming process, the authors prove an $O(nm)$ bound.

The algorithm is also "output-sensitive." Its performance scales with the actual fill-in produced ($m^+$). Specifically, the authors derive a bound of $O(\min\{m\sqrt{m^+}, \Delta m^+\} \log n)$, where $\Delta$ is the maximum degree. This ensures that if the heuristic successfully maintains sparsity, the algorithm runs even faster.

Hardness and the $U$-filler Construction

To prove that $O(nm)$ is the best possible complexity, the authors turn to fine-grained complexity theory. They demonstrate a reduction from the Orthogonal Vectors (OV) problem, a standard benchmark in the field.

A key innovation in this proof is the construction of $U$-fillers. These are specific, low-degree graph structures designed to act as pathological inputs. $U$-fillers force any minimum degree algorithm to perform a near-maximum amount of work, effectively "trapping" the greedy heuristic into a worst-case $O(n^2)$ fill-in scenario. By linking the performance of MDA on these structures to the Strong Exponential Time Hypothesis (SETH), the paper shows that an algorithm running in $O(nm^{1-\varepsilon})$ time would imply a breakthrough in solving the Satisfiability (SAT) problem—an outcome considered unlikely by the theoretical computer science community.

Conclusion and Impact

This work provides a definitive theoretical characterization of the Minimum Degree Algorithm. By "sandwiching" the problem between an $O(nm)$ upper bound and a SETH-based lower bound, the authors have resolved a long-standing question in combinatorial optimization and scientific computing.

While practitioners may continue to use approximate versions (AMD) for their empirical speed, the FastMinimumDegree algorithm provides a new standard for exact computation. Furthermore, the $U$-filler construction offers a new tool for proving lower bounds in other greedy graph algorithms, potentially leading to further discoveries in the fine-grained complexity of sparse matrix heuristics.

Summary updated

BibTeX
@inproceedings{cummings2019fast,
  author = {Robert Cummings and Matthew Fahrbach and Animesh Fatehpuria},
  title = {{A Fast Minimum Degree Algorithm and Matching Lower Bound}},
  booktitle = {SODA},
  year = {2019},
  doi = {10.1137/1.9781611976465.45},
}
Figure