ArticleslgStudy

computer science

Coreset

Coreset is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Coreset rather than just read about it. In short: In computational geometry and approximation algorithms, a coreset is a small, possibly weighted subset of an input point set that approximately preserves the value of a specified optimization problem. Solving the problem on the coreset yields a solution whose cost is provably close to the optimal solution for the full dataset.

Key takeaways

  • Coreset belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Coreset to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Coreset from memory before moving on to harder problems.

Reference excerpt

In computational geometry and approximation algorithms, a coreset is a small, possibly weighted subset of an input point set that approximately preserves the value of a specified optimization problem. Solving the problem on the coreset yields a solution whose cost is provably close to the optimal solution for the full dataset. Coresets are widely used in geometric optimization, cluster analysis, data streams, and large-scale machine learning to reduce computational complexity while maintaining theoretical guarantees. Many geometric optimization problems admit coresets of size bounded by a function of the approximation parameter ε and the dimension, but independent of the input size. When such a coreset can be constructed in linear or near-linear time, it yields a polynomial-time approximation scheme (PTAS) or efficient approximation algorithm. The concept of coresets emerged in the late 1990s and early 2000s within computational geometry, as part of a broader effort to develop approximation schemes for high-dimensional geometric problems. Early work connected coresets to ε-approximations and ε-nets in range spaces and VC dimension theory. Subsequent research extended the framework to clustering, streaming models, and distributed computation. Over time, coresets became a central tool in large-scale data analysis, particularly for clustering and regression problems, where exact computation on massive datasets is computationally infeasible.

Definition Let P be a finite set of points and let f(P,x) denote the cost of a candidate solution x to an optimization problem defined on P. For example, in k-means clustering, x may represent a set of k centers and f(P,x) the sum of squared distances from points in P to their nearest center. A (strong) ε-coreset for P with respect to f is a (possibly weighted) subset S⊆P such that for all candidate solutions x,

(1−ε)f(P,x)≤f(S,x)≤(1+ε)f(P,x), where ε>0 is a user-defined approximation parameter. In many constructions, S is equipped with weights w(p) so that

f(S,x)=∑p∈Sw(p)c(p,x), where c(p,x) is the contribution of point p to the cost. Some literature distinguishes between:

Strong coresets: The approximation guarantee holds uniformly for all candidate solutions x. Weak coresets: The guarantee holds only for solutions near the optimum.

Construction techniques Coresets are typically constructed using one or more of the following techniques:

Importance sampling: Points are sampled with probability proportional to their sensitivity (their maximum relative influence on the objective function). Random sampling and ε-approximations: Techniques from VC theory are used to guarantee uniform convergence. Geometric partitioning: Space is partitioned and representative points are selected from each region. Merge-and-reduce frameworks: Used in streaming and distributed settings to maintain coresets over time. For many problems, the size of the coreset is O(g(ε,d)), where d is the dimension and the bound does not depend on the input size n.

Applications

Clustering Coresets are widely used in clustering problems such as k-means clustering, k-median, and metric k-center. For example, in k-means clustering in Euclidean space, one can construct a coreset of size O(k/ε2) (up to logarithmic factors in some settings), independent of n. Running an exact or heuristic clustering algorithm on the coreset yields a (1+ε)-approximation for the original dataset. This enables scalable clustering in large datasets and forms the basis of several practical machine learning systems.

Geometric optimization Coresets have been developed for problems including:

Minimum enclosing ball Facility location Projective clustering Shape fitting In low-dimensional settings, coresets often yield polynomial-time approximation schemes.

Regression and machine learning In regression problems such as least-squares fitting, coresets provide smaller weighted datasets that preserve the objective value. They are also used in:

Support vector machines Subspace approximation Hyperparameter optimization More recently, coresets have been explored for dataset summarization and acceleration of training in large-scale machine learning pipelines.

Streaming and distributed computation In streaming models, data points arrive sequentially and storage is limited. Merge-and-reduce techniques maintain a small coreset whose size depends only on ε and problem parameters. Similarly, in distributed systems, composable coresets allow each machine to compute a local coreset, which can then be combined centrally while preserving approximation guarantees.

Related concepts Coresets are related to:

ε-approximations and ε-nets in range spaces Randomized sketching techniques Dimensionality reduction Sublinear and streaming algorithms

References

Worked examples

Example 1 — a first encounter with Coreset

Start with the simplest possible case. Write down what Coreset claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Coreset before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Coreset ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Coreset

In research
Coreset appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Coreset in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Coreset is common in secondary-school and first-year university syllabi. It links to neighbouring topics Approximation algorithms, Computational geometry, so understanding it makes those chapters shorter.
In everyday life
Look for Coreset outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Coreset” →

How to study Coreset in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Coreset means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Coreset out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Coreset in simple terms?

In computational geometry and approximation algorithms, a coreset is a small, possibly weighted subset of an input point set that approximately preserves the value of a specified optimization problem. Solving the problem on the coreset yields a solution whose cost is provably close to the optimal s…

Why does Coreset matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Coreset?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Coreset.

Tags

  • Approximation algorithms
  • Computational geometry

Keep exploring