Computing p-Presentation Distances is Hard

Håvard Bakke Bjerkevik, Magnus Bakke Botnan

Abstract

Recently, $p$-presentation distances for $p \in [1, \infty]$ were introduced for merge trees and multiparameter persistence modules as more sensitive variations of the respective interleaving distances ($p = \infty$). It is well-known that computing the interleaving distance is NP-hard in both cases. We extend this result by showing that computing the $p$-presentation distance is NP-hard for all $p \in [1, \infty)$ for both merge trees and $t$-parameter persistence modules for any $t \ge 2$. Though the details differ, both proofs follow the same novel strategy, suggesting that our approach can be adapted to proving the NP-hardness of other distances based on sums or $p$-norms.

Introduction

In Topological Data Analysis (TDA), researchers utilize structures such as merge trees and persistence modules to summarize the "shape" of data across varying scales. To compare these summaries, distance metrics are essential. The most established metric is the interleaving distance ($p = \infty$), which measures the maximum discrepancy between two objects. While robust, it is often insensitive to small, cumulative differences because it focuses solely on the single largest discrepancy.

To address this limitation, $p$-presentation distances ($p \in [1, \infty)$) were recently introduced. These metrics utilize $p$-norms to aggregate all differences, providing a more sensitive and "universal" measure of distance. However, the computational complexity of these finite $p$ distances remained an open question. Given that computing the interleaving distance ($p = \infty$) is NP-hard, this paper investigates whether the problem becomes more tractable for finite $p$.

Theoretical Framework

Merge trees and persistence modules are fundamental tools in TDA. A merge tree tracks the connectivity of sub-level sets of a function, providing a hierarchical summary of its features.

Construction of a merge tree $M_f$ and its barcode $B(M_f)$ from a function $f$.

As illustrated in Figure 3, a function $f$ can be associated with an epigraph $E_f$, which is then represented by a merge tree $M_f$. This tree can be further simplified into a barcode $B(M_f)$. Multiparameter persistence modules extend these concepts to data that varies over multiple parameters simultaneously, offering a richer but more complex summary.

Complexity Analysis

The authors establish that computing $p$-presentation distances is NP-hard for all finite $p \ge 1$ for both merge trees and multiparameter persistence modules. The proofs employ a novel reduction strategy that serves as a blueprint for complexity analysis in TDA.

Reduction for Merge Trees

For merge trees, the authors reduce from the Balanced Partition (BAL-PART) problem, an NP-complete problem where one must determine if a multiset of integers can be partitioned into $k$ subsets with equal sums. They construct two merge trees such that a small $p$-presentation distance exists if and only if the BAL-PART instance has a solution.

Reduction for Persistence Modules

For multiparameter persistence modules, the reduction is from the Constrained Invertibility (CI) problem, which involves finding matrices that satisfy specific sparsity patterns and are inverses of each other.

Diagrammatic representation of generators in a persistence module.

The "Zigzag" Strategy

The $p$-presentation distance is defined as an infimum over sequences of intermediate objects, often referred to as a "zigzag" of presentations. The authors show that any such sequence must "move" certain generators or relations by a minimum total distance. If the underlying NP-complete problem has no solution, at least one object in the sequence must move significantly, causing the total $L_p$ cost to escalate. This strategy, illustrated conceptually in Figure 4, tracks the movement of generators across the parameter space.

Conclusion and Future Work

This research demonstrates that increasing the sensitivity of a metric by moving from $L_\infty$ to $L_p$ norms does not bypass the combinatorial explosion that makes the problem NP-hard. The unified framework developed in this paper provides a template for proving the hardness of other TDA distances involving sums or $p$-norms.

Significant questions remain, including whether these problems belong to the complexity class NP. Because the distance is defined as an infimum over potentially arbitrary sequences, a polynomial-sized certificate for verification is not yet known. Furthermore, while exact computation is hard, the results leave open the possibility of efficient approximation algorithms, potentially adapted from existing solutions for partition problems.

Summary updated

BibTeX
@inproceedings{bjerkevik2025computing,
  author = {Håvard Bakke Bjerkevik and Magnus Bakke Botnan},
  title = {{Computing p-Presentation Distances is Hard}},
  booktitle = {Discrete},
  year = {2025},
  doi = {10.1007/s00454-025-00744-3},
}
Figure