ArticleslgStudy

computer science

Kernelization

Kernelization 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 Kernelization rather than just read about it. In short: In computer science, a kernelization is a technique for designing efficient algorithms that achieve their efficiency by a preprocessing stage in which inputs to the algorithm are replaced by a smaller input, called a "kernel". The result of solving the problem on the kernel should either be the same as on the original input, or it should be easy to transform the output on the kernel to the desired output for the ori…

Key takeaways

  • Kernelization 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 Kernelization to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Kernelization from memory before moving on to harder problems.

Reference excerpt

In computer science, a kernelization is a technique for designing efficient algorithms that achieve their efficiency by a preprocessing stage in which inputs to the algorithm are replaced by a smaller input, called a "kernel". The result of solving the problem on the kernel should either be the same as on the original input, or it should be easy to transform the output on the kernel to the desired output for the original problem. Kernelization is often achieved by applying a set of reduction rules that cut away parts of the instance that are easy to handle. In parameterized complexity theory, it is often possible to prove that a kernel with guaranteed bounds on the size of a kernel (as a function of some parameter associated to the problem) can be found in polynomial time. When this is possible, it results in a fixed-parameter tractable algorithm whose running time is the sum of the (polynomial time) kernelization step and the (non-polynomial but bounded by the parameter) time to solve the kernel. Indeed, every problem that can be solved by a fixed-parameter tractable algorithm can be solved by a kernelization algorithm of this type. This is also true for approximate kernelization.

Example: vertex cover A standard example for a kernelization algorithm is the kernelization of the vertex cover problem by S. Buss. In this problem, the input is an undirected graph G together with a number k. The output is a set of at most k vertices that includes an endpoint of every edge in the graph, if such a set exists, or a failure exception if no such set exists. This problem is NP-hard. However, the following reduction rules may be used to kernelize it:

If k>0 and v is a vertex of degree greater than k, remove v from the graph and decrease k by one. Every vertex cover of size k must contain v since otherwise too many of its neighbors would have to be picked to cover the incident edges. Thus, an optimal vertex cover for the original graph may be formed from a cover of the reduced problem by adding v back to the cover. If v is an isolated vertex, remove it. An isolated vertex cannot cover any edges, so in this case v cannot be part of any minimal cover. If more than k2 edges remain in the graph, and neither of the previous two rules can be applied, then the graph cannot contain a vertex cover of size k. For, after eliminating all vertices of degree greater than k, each remaining vertex can only cover at most k edges and a set of k vertices could only cover at most k2 edges. In this case, the instance may be replaced by an instance with two vertices, one edge, and k=0 , which also has no solution. An algorithm that applies these rules repeatedly until no more reductions can be made necessarily terminates with a kernel that has at most k2 edges and (because each edge has at most two endpoints and there are no isolated vertices) at most 2k2 vertices. This kernelization may be implemented in linear time. Once the kernel has been constructed, the vertex cover problem may be solved by a brute force search algorithm that tests whether each subset of the kernel is a cover of the kernel. Thus, the vertex cover problem can be solved in time O(22k2+n+m) for a graph with n vertices and m edges, allowing it to be solved efficiently when k is small even if n and m are both large. Although this bound is fixed-parameter tractable, its dependence on the parameter is higher than might be desired. More complex kernelization procedures can improve this bound, by finding smaller kernels, at the expense of greater running time in the kernelization step. In the vertex cover example, kernelization algorithms are known that produce kernels with at most 2k vertices. One algorithm that achieves this improved bound exploits the half-integrality of the linear program relaxation of vertex cover due to Nemhauser and Trotter. Another kernelization algorithm achieving that bound is based on what is known as the crown reduction rule and uses alternating path arguments. The currently best known kernelization algorithm in terms of the number of vertices is due to Lampis (2011) and achieves 2k−clog⁡k vertices for any fixed constant c. It is not possible, in this problem, to find a kernel of size O(log⁡k), unless P = NP, for such a kernel would lead to a polynomial-time algorithm for the NP-hard vertex cover problem. However, much stronger bounds on the kernel size can be proven in this case: unless coNP ⊆ NP/poly (believed unlikely by complexity theorists), for every ϵ>0 it is impossible in polynomial time to find kernels with O(k2−ϵ) edges. It is unknown for vertex cover whether kernels with (2−ϵ)k vertices for some ϵ>0 would have any unlikely complexity-theoretic consequences.

Definition In the literature, there is no clear consensus on how kernelization should be formally defined and there are subtle differences in the uses of that expression.

Downey–Fellows notation In the notation of Downey & Fellows (1999), a parameterized problem is a subset L⊆Σ∗×ℕ describing a decision problem. A kernelization for a parameterized problem L is an algorithm that takes an instance (x,k) and maps it in time polynomial in |x| and k to an instance (x′,k′) such that

(x,k) is in L if and only if (x′,k′) is in L, the size of x′ is bounded by a computable function f in k, and k′ is bounded by a function in k. The output (x′,k′) of kernelization is called a kernel. In this general context, the size of the string x′ just refers to its length. Some authors prefer to use the number of vertices or the number of edges as the size measure in the context of graph problems.

Flum–Grohe notation In the notation of Flum & Grohe (2006, p. 4), a parameterized problem consists of a decision problem L⊆Σ∗ and a function κ:Σ∗→ℕ, the parameterization. The parameter of an instance x is the number κ(x). A kernelization for a parameterized problem L is an algorithm that takes an instance x with parameter k and maps it in polynomial time to an instance y such that

x is in L if and only if y is in L and the size of y is bounded by a computable function f in k. Note that in this notation, the bound on the size of y implies that the parameter of y is also bounded by a function in k. The function f is often referred to as the size of the kernel. If f=kO(1), it is said that L admits a polynomial kernel. Similarly, for f=O(k), the problem admits linear kernel.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Kernelization

Start with the simplest possible case. Write down what Kernelization 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 Kernelization 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 Kernelization 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 Kernelization

In research
Kernelization 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 Kernelization 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
Kernelization is common in secondary-school and first-year university syllabi. It links to neighbouring topics Analysis of algorithms, Parameterized complexity, so understanding it makes those chapters shorter.
In everyday life
Look for Kernelization 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 “Kernelization” →

How to study Kernelization in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Kernelization 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 Kernelization out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Kernelization in simple terms?

In computer science, a kernelization is a technique for designing efficient algorithms that achieve their efficiency by a preprocessing stage in which inputs to the algorithm are replaced by a smaller input, called a "kernel". The result of solving the problem on the kernel should either be the sam…

Why does Kernelization 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 Kernelization?

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 Kernelization.

Tags

  • Analysis of algorithms
  • Parameterized complexity

Keep exploring