Imagine you need to cluster a billion GPS traces, fit a regression to a terabyte of sensor readings, or train a model on every photo ever taken. Running the algorithm on the full data would take forever — but throwing away most of it would destroy the answer.
Coresets offer a third path. A coreset is a small weighted subset of the original data such that any algorithm you run on it produces an answer that is nearly as good as running on the full dataset. Each surviving point gets a weight that compensates for the points that were removed, so the geometry of the data is preserved in miniature.
The key guarantee is formal: for a given error tolerance and a class of queries (say, k-means cost), a coreset satisfies
where is the original point set. The coreset can be orders of magnitude smaller than , yet any optimizer that works on finds a solution that is nearly optimal for too.
This idea underpins fast streaming algorithms, distributed machine learning, and any problem where data arrives faster than you can store it.
Comments
Loading comments...