An Optimal Algorithm for Cardinality-Constrained Diameter Partitioning

Abstract

Cardinality-constrained diameter partitioning asks for a partition of n items into two classes of prescribed sizes that minimizes the larger of the two class diameters. We give an O(n2) algorithm and a matching (n2) lower bound if we can only query the weight between two elements. The algorithm computes the optimum for every cardinality simultaneously, improving Avis's O(n2 n). 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.

0

Turn this paper into a full lesson

ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…