# An Algebraic Approach to Constrained K-means Clustering

arXiv: https://arxiv.org/abs/2610.14932 · HTML: https://mlsanity.com/paper/2610.14932/

## Key facts

- No citing papers in the map yet (data through 26 Nov 2026).
- Builds on 3 of its 30 references that are in the map.
- Submitted 10 Oct 2026.

## Builds on (most cited first, 3 of 3)

- [An Exact Algorithm for Semi-supervised Minimum Sum-of-Squares Clustering](https://mlsanity.com/paper/2111.15571/) (2021)
- [Semi-Supervised Constrained Clustering: An In-Depth Overview, Ranked Taxonomy and Future Research Directions](https://mlsanity.com/paper/2303.00522/) (2023)
- [Constrained Clustering: General Pairwise and Cardinality Constraints](https://mlsanity.com/paper/1907.10410/) (2019)

## Abstract (arXiv)

Clustering is typically performed using only object features, although additional information about relationships between objects may be available and can be incorporated through constraints. Among these, pairwise constraints require two objects to belong to the same cluster or to different clusters. Several extensions of the k-means algorithm accommodate such constraints, but they sometimes fail to find a feasible assignment or incur high computational cost. Motivated by these limitations, we propose an algebraic approach to k-means clustering with pairwise constraints. The algorithm simplifies the constraints using Gr"obner bases before optimization, improving the efficiency of cluster assignment. It can also detect whether the constraint set has a feasible assignment before optimization. Comparative experiments with existing algorithms showed that the proposed algorithm achieved comparable or better clustering quality at a lower computational cost, particularly when the numbers of constraints and clusters were small.
