A Proof of NP-Completeness for the K-Means Clustering Algorithm

The k-means clustering algorithm is one of the most widely used clustering techniques in data analysis and machine learning, yet its exact computational complexity remains subject to ongoing theoretical investiga- tion. This work establishes the NP-completeness of k-means by proving (1) it is NP-hard and (2) it lies in NP. To demonstrate NP-hardness, we construct a series of polynomial-time reductions from well-known NP-complete problems. Specifically, we reduce 3sat to Vertex Cover, and then reduce Vertex Cover to k-means, thereby establishing the computational hardness of the k-means clustering problem. We then prove k-means is in NP, and thus conclude it is NP-complete. Furthermore, this work discusses the inap- proximability of k-means, showing no efficient algorithm exists for approximating k-means even within small constant factors. These findings underscore the practical limitations of heuristic approaches and reinforce the theoretical intractability of the k-means clustering algorithm.

Publication Details

Journal
Scholarship @ Claremont (The Claremont Colleges)
Published
2025-01-01
Primary Topic
Advanced Clustering Algorithms Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Proof of NP-Completeness for the K-Means Clustering Algorithm

Scholarship @ Claremont (The Claremont Colleges)
Advanced Clustering Algorithms Research
article

A Proof of NP-Completeness for the K-Means Clustering Algorithm

article en

Abstract

The k-means clustering algorithm is one of the most widely used clustering techniques in data analysis and machine learning, yet its exact computational complexity remains subject to ongoing theoretical investiga- tion. This work establishes the NP-completeness of k-means by proving (1) it is NP-hard and (2) it lies in NP. To demonstrate NP-hardness, we construct a series of polynomial-time reductions from well-known NP-complete problems. Specifically, we reduce 3sat to Vertex Cover, and then reduce Vertex Cover to k-means, thereby establishing the computational hardness of the k-means clustering problem. We then prove k-means is in NP, and thus conclude it is NP-complete. Furthermore, this work discusses the inap- proximability of k-means, showing no efficient algorithm exists for approximating k-means even within small constant factors. These findings underscore the practical limitations of heuristic approaches and reinforce the theoretical intractability of the k-means clustering algorithm.

Scholarship @ Claremont (The Claremont Colleges)
Openalex Percentile: Top 72%
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.