Exact polynomial-time algorithms for weighted partial K-means with individual exclusion costs

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.

Authors

Institutions

Publication Details

Journal
arXiv
Published
2026-12-03
Primary Topic
Advanced Clustering Algorithms Research
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Exact polynomial-time algorithms for weighted partial K-means with individual exclusion costs

Baisuo Jin, Jiayi Yu
arXiv
Advanced Clustering Algorithms Research
preprint

Exact polynomial-time algorithms for weighted partial K-means with individual exclusion costs

Baisuo Jin, Jiayi Yu
preprint en

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.

arXiv
University of Science and Technology of China (CN), Hefei University of Technology (CN)
Advanced Clustering Algorithms Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon