arXiv · 2612.05325
Exact polynomial-time algorithms for weighted partial K-means with individual exclusion costs
Abstract
Dupin and Nielsen (2023) established polynomial-time solvability for one-dimensional unweighted partial k-means, but left the computational complexity of the weighted case as an open problem. We resolve this question by developing exact polynomial-time algorithms for a more general weighted clustering problem, in which each observation is either assigned to one of at most K centers or excluded at an individual cost, subject to prescribed lower and upper bounds on the number of retained observations. This framework also captures weighted least-squares projection onto vectors with bounded support and a bounded number of distinct nonzero entries, a formulation motivated by categorical regression with unequal category frequencies. Although the ordering property established by Dupin and Nielsen enables an interval dynamic program, the computation of optimal single-center interval costs remains combinatorially nontrivial under unequal weights. We overcome this difficulty by expressing retention gains as quadratic functions of the center and developing a direct scan based on their pairwise intersections. We further accelerate this algorithm through adjacent exchanges and a shared global intersection list, reducing the cost of computing all interval costs to $O(p^4)$ operations, where p is the number of observations. Combined with the interval dynamic program, the resulting algorithm solves the overall problem in $O(p^4+Kp^2U^2)$ operations, where U is the upper bound on the number of retained observations. For rational input data, we further establish polynomial bit-time solvability.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Jiayi Yu, Baisuo Jin. 2026-12-03. Exact polynomial-time algorithms for weighted partial K-means with individual exclusion costs. https://searcharxiv.org/abs/2612.05325
Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.