English

The Bichromatic Two-Center Problem on Graphs

Data Structures and Algorithms 2025-12-10 v1

Abstract

In this paper, we study the (weighted) bichromatic two-center problem on graphs. The input consists of a graph GG of nn (weighted) vertices and mm edges, and a set P\mathcal{P} of pairs of distinct vertices, where no vertex appears in more than one pair. The problem aims to find two points (i.e., centers) on GG by assigning vertices of each pair to different centers so as to minimize the maximum (weighted) distance of vertices to their assigned centers (so that the graph can be bi-colored with this goal). To the best of our knowledge, this problem has not been studied on graphs, including tree graphs. In this paper, we propose an O(m2nlognlogmn)O(m^2n\log n\log mn) algorithm for solving the problem on an undirected graph provided with the distance matrix, an O(nlogn)O(n\log n)-time algorithm for the problem on trees, and a linear-time approach for the unweighted tree version.

Keywords

Cite

@article{arxiv.2512.08111,
  title  = {The Bichromatic Two-Center Problem on Graphs},
  author = {Qi Sun and Jingru Zhang},
  journal= {arXiv preprint arXiv:2512.08111},
  year   = {2025}
}
R2 v1 2026-07-01T08:15:52.213Z