Discrete Morse Sandwich: Fast Computation of Persistence Diagrams for Scalar Data -- An Algorithm and A Benchmark

Pierre Guillou, Jules Vidal, Julien Tierny
6/27/2022
26 citations
cs.LGcs.CGcs.CV
benchmark-dataset

Official code: topology-tool-kit/ttk (482 stars, C++, BSD-3-Clause, last commit 2026-10-25). 1 more implementation below.

Abstract

This paper introduces an efficient algorithm for persistence diagram computation, given an input piecewise linear scalar field $f$ defined on a $d$-dimensional simplicial complex $K$, with $d \leq 3$. Our work revisits the seminal algorithm "PairSimplices" [31], [103] with discrete Morse theory (DMT) [34], [80], which greatly reduces the number of input simplices to consider.

Show full abstract

Further, we also extend to DMT and accelerate the stratification strategy described in "PairSimplices" for the fast computation of the $0^{th}$ and $(d - 1)^{th}$ diagrams, noted $D_0(f)$ and $D_{d-1}(f)$. Minima-saddle persistence pairs ($D_0(f)$) and saddle-maximum persistence pairs ($D_{d-1}(f)$) are efficiently computed by processing, with a Union-Find, the unstable sets of $1$-saddles and the stable sets of $(d - 1)$-saddles. This fast pre-computation for the dimensions $0$ and $(d - 1)$ enables an aggressive specialization of [4] to the 3D case, which results in a drastic reduction of the number of input simplices for the computation of $D_1(f)$, the intermediate layer of the sandwich. Finally, we document several performance improvements via shared-memory parallelism. We provide an open-source implementation of our algorithm for reproducibility purposes. We also contribute a reproducible benchmark package, which exploits three-dimensional data from a public repository and compares our algorithm to a variety of publicly available implementations. Extensive experiments indicate that our algorithm improves by two orders of magnitude the time performance of the seminal "PairSimplices" algorithm it extends. Moreover, it also improves memory footprint and time performance over a selection of 14 competing approaches, with a substantial gain over the fastest available approaches, while producing a strictly identical output.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
topology-tool-kit/ttkOfficial482C++BSD-3-Clause2026-10-25
pierre-guillou/pdiags_benchOfficial5Python–2024-07-08
BSD-3-Clause

TTK - Topological Data Analysis and Visualization - Source Code

482131C++, CMakeMar 5, 20171 months agoBSD-3-Clause
c-plus-pluscontour-treediscrete-morse-theorymerge-treemorse-smale-complex+7 more
52Python, JavaNov 5, 20202 years ago

Similar Papers

Cite this paper

@article{guillou2022discrete,
  title  = {Discrete Morse Sandwich: Fast Computation of Persistence Diagrams for Scalar Data -- An Algorithm and A Benchmark},
  author = {Pierre Guillou and Jules Vidal and Julien Tierny},
  year   = {2022},
  eprint = {2206.13932},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.13932}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2206.13932.svg)](https://codeofpaper.com/paper/2206.13932)

Discussion