An Optimal Algorithm for Cardinality-Constrained Diameter Partitioning
Data Structures and Algorithms
2026-05-06 v1
Abstract
Cardinality-constrained diameter partitioning asks for a partition of items into two classes of prescribed sizes that minimizes the larger of the two class diameters. We give an algorithm and a matching lower bound if we can only query the weight between two elements. The algorithm computes the optimum for every cardinality simultaneously, improving Avis's . The reduction is to a bottleneck 2-coloring problem on the maximum spanning tree, solved by a standard tree DP. For a single cardinality with Euclidean weights, we obtain a subquadratic time algorithm in any fixed dimension.
Cite
@article{arxiv.2605.03431,
title = {An Optimal Algorithm for Cardinality-Constrained Diameter Partitioning},
author = {Chao Xu and Mingdong Yang},
journal= {arXiv preprint arXiv:2605.03431},
year = {2026}
}