TL;DR
Computing the Gromov-Hausdorff distance between metric trees is notoriously hard—even approximating it within a factor of 3 is NP-hard. This paper introduces the first fixed-parameter tractable (FPT) algorithm to compute the exact interleaving distance between merge trees, which in turn yields the first constant-factor (14-approximation) FPT algorithm for the Gromov-Hausdorff distance between metric trees.
What Problem Does This Paper Address?
The Gromov-Hausdorff (GH) distance quantifies how far two metric spaces are from being isometric by measuring the minimum additive metric distortion needed to align them. While foundational in geometry and shape analysis, algorithmic progress has been sparse. For metric trees (spaces equipped with tree shortest-path metrics), Agarwal et al. proved that approximating the GH distance within a factor of 3 is NP-hard, and the prior best polynomial-time approximation achieved an $O(\sqrt{n})$ factor.
A related concept in topological data analysis is the merge tree, which tracks connected components as a height function varies (common in hierarchical clustering and Reeb graph analysis). Comparing merge trees relies on the interleaving distance, which is also NP-hard to approximate within a factor of 3.
Because an algorithm for the interleaving distance on merge trees can approximate the GH distance on metric trees, solving the interleaving distance effectively unlocks the GH tree problem.
Methods
The authors design an FPT algorithmic pipeline by rethinking how merge trees are compared:
- One-Way Formulation ($\varepsilon$-Good Maps): Standard interleaving distance requires finding two mutually compatible, height-respecting continuous maps ($\alpha: T_1 \to T_2$ and $\beta: T_2 \to T_1$). The authors prove that this bidirectional condition is mathematically equivalent to finding a single $\varepsilon$-good map $\alpha$, dramatically simplifying search and alignment.
- Augmented Discrete Trees: Continuous merge trees are discretized into "super-levels" induced by critical heights (vertices) from both trees and their $\delta$-shifts, creating augmented trees of size $O(n^2)$.
- Dynamic Programming on Sensible Pairs: A bottom-up dynamic program checks whether a valid partial $\delta$-good map exists. The authors bound the search space to "sensible pairs"—subsets of nodes rooted at the same level whose ancestral structures align—parameterized by the $\delta$-degree-bound $\tau_\delta$ (the maximum sum of node degrees inside any $\delta$-ball).
- Optimization via Double-Binary Search: Using the fact that the optimal distance $\delta^*$ belongs to a discrete candidate set $\Pi$ of size $O(n^2)$, they employ a double-binary search procedure (suggested by Kyle Fox) to pinpoint $\delta^*$ efficiently without testing every candidate linearly.
Datasets
Not discussed in the paper. The paper is purely theoretical and does not perform empirical evaluations on real or synthetic datasets.
Key Insights and Ideas
- Decoupling the Interleaving Loop: The biggest theoretical roadblock to dynamic programming for interleaving distance was the cyclical dependency $\beta(\alpha(u)) = u^{2\varepsilon}$. Proving that a single continuous map satisfying three local ancestor/descendant constraints ($\varepsilon$-good map) guarantees the existence of a full interleaving pair makes a bottom-up DP formulation possible.
- Topological Bridge to GH Distance: Taking the negative geodesic distance from an optimal root turns a metric tree into a merge tree. Evaluating the interleaving distance over pairs of base roots allows approximating the continuous GH distance within a multiplicative factor of 14.
- Tractability in Low-Branching Regions: The computational parameter $\tau$ depends on the local degree density within a ball of radius $\delta$. For trees with bounded local branching (even if overall tree size $n$ is very large), the parameter remains small, making the algorithms run in polynomial time ($O(n^2 \log n)$ for constant $\tau$).
Key Results
- Decision Algorithm for Interleaving Distance: Determines whether $d_I(T_1^f, T_2^g) \le \delta$ in $O(n^2 2^\tau \tau^{\tau+2} \log n)$ time, where $\tau = \tau_\delta$ is the $\delta$-degree-bound.
- Exact Interleaving Distance: Computes the exact optimal interleaving distance $\delta^*$ in $O(n^2 2^{2\tau^*} (2\tau^*)^{2\tau^*+2} \log^3 n)$ time, improving upon earlier $O(n^4)$ brute-force candidate sweeps.
- 14-Approximation for Gromov-Hausdorff Distance: Delivers a 14-approximation of $\delta_{GH}(T_1, T_2)$ in $O(n^4 \log n + n^2 2^{\hat{\tau}} \hat{\tau}^{\hat{\tau}+2} \log^3 n)$ time, where $\hat{\tau} = 2\hat{\tau}_{28\hat{\delta}^*}(T_1, T_2)$.
Limitations and Future Work
- Exponential Parameter Dependency: While the complexity is fixed-parameter tractable w.r.t. the degree bound $\tau$, the dependence is $2^{O(\tau)} \tau^{O(\tau)}$, meaning dense "star-like" hubs with large local degrees quickly cause a combinatorial blow-up.
- Approximation Factor: The multiplicative approximation ratio of 14 leaves room for improvement toward the theoretical lower bound of 3.
- Beyond Trees: The approach hinges on the loop-free structure of trees. Extending these interleaving-to-GH techniques to general metric graphs would require handling Reeb graphs with cycles, which presents substantial topological and algorithmic challenges.
Summary updated