English

Isometric-Universal Graphs for Trees

Data Structures and Algorithms 2025-06-17 v2

Abstract

We consider the problem of finding the smallest graph that contains two input trees each with at most nn vertices preserving their distances. In other words, we look for an isometric-universal graph with the minimum number of vertices for two given trees. We prove that this problem can be solved in time O(n5/2logn)O(n^{5/2}\log{n}). We extend this result to forests instead of trees, and propose an algorithm with running time O(n7/2logn)O(n^{7/2}\log{n}). As a key ingredient, we show that a smallest isometric-universal graph of two trees essentially is a tree. Furthermore, we prove that these results cannot be extended. Firstly, we show that deciding whether there exists an isometric-universal graph with tt vertices for three forests is NP-complete. Secondly, we show that any smallest isometric-universal graph cannot be a tree for some families of three trees. This latter result has implications for greedy strategies solving the smallest isometric-universal graph problem.

Keywords

Cite

@article{arxiv.2506.11704,
  title  = {Isometric-Universal Graphs for Trees},
  author = {Edgar Baucher and François Dross and Cyril Gavoille},
  journal= {arXiv preprint arXiv:2506.11704},
  year   = {2025}
}
R2 v1 2026-07-01T03:15:41.110Z