In 37th International Symposium on Algorithms and Computation (ISAAC, to appear), Dec, 2026
We study the ultrametric violation distance problem with upper and lower bounds. In this problem, the input consists of a set of points together with a distance, an upper bound, and a lower bound for each pair of points. The goal is to find an ultrametric that satisfies all bounds and minimizes the violation distance, defined as the number of pairs whose output distance differs from the input.
Previously, approximation algorithms for this problem were known only for special cases, such as the unconstrained version and the version with only lower bounds. When both upper and lower bounds are present, however, no algorithmic results were known beyond feasibility testing. In this paper, we give the first approximation algorithm for the general problem, achieving an approximation ratio of 4. This immediately improves the best approximation ratio of 5 previously known for the unconstrained version, first obtained by Charikar and Gao (SODA 2024) and subsequently by An, Kao, Lee, and Lee (FOCS 2025). Our result also improves the best approximation ratio of 62 previously known for the version with lower bounds, due to Das, Kipouridis, and Spoerhase (SOSA 2026). As a further consequence, via Das et al.’s reduction, our result yields 20-approximation algorithms for the unconstrained tree metric violation distance problem and its lower-bounded version, improving the previous ratios 30 and 310, respectively.