English

Improved Approximation Algorithms for Relational Clustering

Databases 2026-02-19 v2 Data Structures and Algorithms

Abstract

Clustering plays a crucial role in computer science, facilitating data analysis and problem-solving across numerous fields. By partitioning large datasets into meaningful groups, clustering reveals hidden structures and relationships within the data, aiding tasks such as unsupervised learning, classification, anomaly detection, and recommendation systems. Particularly in relational databases, where data is distributed across multiple tables, efficient clustering is essential yet challenging due to the computational complexity of joining tables. This paper addresses this challenge by introducing efficient algorithms for kk-median and kk-means clustering on relational data without the need for pre-computing the join query results. For the relational kk-median clustering, we propose the first efficient relative approximation algorithm. For the relational kk-means clustering, our algorithm significantly improves both the approximation factor and the running time of the known relational kk-means clustering algorithms, which suffer either from large constant approximation factors, or expensive running time. Given a join query QQ and a database instance DD of O(N)O(N) tuples, for both kk-median and kk-means clustering on the results of QQ on DD, we propose randomized (1+ε)γ(1+\varepsilon)\gamma-approximation algorithms that run in roughly O(k2Nfhw)+Tγ(k2)O(k^2N^{\mathsf{fhw}})+T_\gamma(k^2) time, where ε(0,1)\varepsilon\in (0,1) is a constant parameter decided by the user, fhw\mathsf{fhw} is the fractional hyper-tree width of QQ, while γ\gamma and Tγ(x)T_\gamma(x) are respectively the approximation factor and the running time of a traditional clustering algorithm in the standard computational setting over xx points.

Keywords

Cite

@article{arxiv.2409.18498,
  title  = {Improved Approximation Algorithms for Relational Clustering},
  author = {Aryan Esmailpour and Stavros Sintos},
  journal= {arXiv preprint arXiv:2409.18498},
  year   = {2026}
}