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 operations, where p is the number of observations. Combined with the interval dynamic program, the resulting algorithm solves the overall problem in operations, where U is the upper bound on the number of retained observations. For rational input data, we further establish polynomial bit-time solvability.
Create a lesson
Metadata
- Categories
- math.OC, cs.DS
Related papers
Exact transformation of uncertainty sets for minmax regret robust optimization
Shared title terminologymath.OCYannick Becker, Pascal Halffmann, Anita Schöbel
CGMD-IP: Masked Discrete Diffusion over Partial Assignments for Integer Programming
Shared title terminologymath.OCZiyi Zhang, Yorie Nakahira, Guannan Qu
Optimal Quantization for the Cost-Optimal Control of a Photovoltaic-Based Microgrid under Uncertainty
Shared title terminologymath.OCPaul Honore Takam, Kessel Wilson Mbouche Nzali
A Combinatorial Branch-and-Bound Algorithm for Bilevel Mixed-Integer Packing Problems with Interdiction Constraints and Nonlinear Objectives
Shared title terminologymath.OCKobe Grobben, Phablo F. S. Moura, Hande Yaman
Contractibility of Pareto and Weak Pareto Solution Sets in Convex Polynomial Optimization
Shared title terminologymath.OCTran Nam Trung, Truong Minh Tuyen
On Moment-SOS Disjunctive Cuts for Integer Polynomial Bilevel Optimization
Shared title terminologymath.OCVíctor Blanco, Diego Laborda-Gutiérrez, Justo Puerto