Questions tagged [reductions]

In computability and complexity, finding mappings between problems that allow solving one problem using a solution of another one. For reduction in programming language theory (e.g. beta-reduction), see [lambda-calculus] or [term-rewriting].

Reduction in computability and in computational complexity is the process of solving one problem using a solution of another one.

Popular examples include:

  • Proving of $P$ by reducing the halting (or any undecidable) problem $\mathrm{HP}$ to $P$. This entails finding a computable function $f$ with $\mathrm{HP}(I) = \mathrm{true} \Longleftrightarrow P(f(I)) = \mathrm{true}$ to use in a proof by contradiction.
  • Proving that a (decision) problem $P$ is by reducing an NP-hard problem $P'$ (for instance ) to $P$, i.e. finding a function $f$ with polynomial runtime and $P'(I) = \mathrm{true} \Longleftrightarrow P(f(I)) = \mathrm{true}$.
  • Many optimisation problems can be solved by reducing them to , a well studied class of problems, i.e. you solve problem $P$ by formulating a linear program $\mathrm{LP}_P$ so that $\operatorname{opt}(P) = \operatorname{opt}(\mathrm{LP}_P)$ and solve $\mathrm{LP}_P$ with one of the canonical algorithms. are classical examples.

As you can see, the basic scheme is always the same.

Note that you can have several layers of reduction. For instance in the NP-hardness proof, we reduce the problem of proving that $P$ is NP-hard to the problem of proving that $P'$ is NP-hard (which we have previously solved). We do this by reducing $P'$ to $P$. Note that the reductions have opposite directions; therefore you have to be very clear about which reduction you are talking about.


Two types of "reduction"

In theory of computability, there are two main types of reductions. The more powerful one is Turing reduction. The other more restricted one is called many-one reduction. Depending on the situation, each of these may be more useful than the other.


Other meanings of “reduction”

  • For beta-reduction, eta-reduction and other rules of programming calculi, use tags corresponding to the calculus, e.g. .
  • For the general concept of reduction rules and reduction strategies in term rewriting, see .
1281 questions
8
votes
3 answers

SAT not reducible to 2SAT

Why is the reduction $\textbf{SAT} \leq_P \textbf{3SAT}$ possible, but $\textbf{SAT} \leq_P \textbf{2SAT}$ not possible, given, that $\textbf{SAT}$ is $\textbf{NP}$-complete, $\textbf{2SAT} \in \textbf{NP}$ and $\textbf{3SAT} \in \textbf{NP}$?
Anderson
  • 211
  • 2
  • 6
6
votes
1 answer

How to partition a set into disjoints subsets each of given size?

The input: Given a set $U=\{1, \ldots, k\}$ called the universe. Let $C=\{S_1, \ldots, S_n\}$ be a collection of subsets of $U$ and let $ s_j$ be a nonnegative integer for all $j=1,\ldots,n$ such that $\sum_{j=1}^{n} s_j=k$. The question: Are there…
drzbir
  • 990
  • 9
  • 22
6
votes
2 answers

Is finding a set cover of size $k$ NP-complete?

I know that set cover problem is NP-complete. We are given a universe $U$ (a set) of $n$ elements and a collection $S$ of $m$ sets whose union equals the universe and an integer $k$. The set cover problem is to identify a sub-collection of $S$ of…
Ribz
  • 693
  • 4
  • 16
6
votes
2 answers

How to reduce MAX-2SAT problem to finding a cut in a graph

I'm trying to reduce the MAX-2SAT problem to finding a cut in a graph, with no luck so far. Let me first show a description of the problem: 2SAT: Given a boolean formula $\varphi$ in a CNF form, where every clause has 2 literals (a variable or its…
so.very.tired
  • 1,219
  • 1
  • 15
  • 20
3
votes
1 answer

examples for: A is mapping reducible to B but B is not mapping reducible to A

I find it hard to find reductions that only work on one side: A is mapping reducible to B, but B is not mapping reducible to A. what could be an easy way to find such two languages A,B ? I tried Atm,Htm,EQtm,Etm,RegTm, and many others, and whenever…
3
votes
1 answer

Is it true that independent set is $Ω(n^{1−\epsilon})$-inapproximable unless P=NP?

I was reading a paper and I came to the following : "Since independent set is $Ω(n^{1−\epsilon})$-inapproximable unless P=NP (see [19]) for any fixed $\epsilon> 0$, the ..." where [19] is the following article : D. Zuckerman. Linear degree…
drzbir
  • 990
  • 9
  • 22
3
votes
1 answer

Reductions to and from PRIME

I think PRIME (is the given number a prime number?) is a good example a decision problem. Therefore, when I'm trying to explain reduction, I'd like to give an example of a problem that is related to PRIME. What are decision problems that can be…
wannik
  • 133
  • 5
3
votes
1 answer

Reducing Exact Cover to Subset Sum in practise!

The reduction of Exact Cover to Subset Sum has previously been discussed at this forum. What I'm interested in is the practicality of this reduction, which I will discuss in section 2 of this post. For you who are not familiar with these problems I…
Turbotanten
  • 133
  • 4
2
votes
2 answers

Reducing optimization problem to decision problem

I'm trying to reduce an optimization problem to a decision problem, more specifically, consider the Max-Cut problem in its decision version: Given $(G=(V,E),k)$ as input, where $G$ is an undirected weighted graph (all weights are positive integers,…
so.very.tired
  • 1,219
  • 1
  • 15
  • 20
2
votes
1 answer

Reduction between $\Sigma^*$ and $\emptyset$

Throughout the subject of reductions, I was wondering: If we take $L_1 = \Sigma^* $ and $L_2 = \emptyset$, is $L_1 \leq L_2$? is $L_2 \leq L_1$? What I mean is, Is there some sort of reduction between any of the two with the other one? I tried…
TheNotMe
  • 571
  • 1
  • 6
  • 18
2
votes
0 answers

Why can the construction of a polynomial-sized structure be done in logspace?

In paper http://www.iro.umontreal.ca/~mckenzie/Recherche/homc10fun.pdf the authors prove their problem is NL-complete. At some point in their proof however, they construct a polynomial-sized graph, and state this can clearly be done in logspace,…
J. Schmidt
  • 807
  • 4
  • 17
1
vote
1 answer

How can I understand if reduction is Karp reduction?

I have a reduction and can't understand if it is Karp reduction. I want understand if my reduction is Karp reduction as well as understand how to determine which one is so. Let I have formula $\Phi = (l_{1,1}\lor l_{1,2}\lor...\lor…
rus9384
  • 1,632
  • 9
  • 17
1
vote
1 answer

Does a reduction with $\infty$ work?

Lately, I saw an NP-complete proof that involves creating an instance of a problem using $\infty$. Is this a polynomial-time reduction? More precisely, let a problem $\Pi$ has an instance $I=(n, A, v)$ where $A$ is a matrix of size $n\times n$,…
drzbir
  • 990
  • 9
  • 22
1
vote
1 answer

Reduction from Partition problem to 3-Partition problem

I'm trying to show how to reduce the Partition problem to the 3-Partition problem. I'll first describe the problem using the definitions and notations I'm familiar with (I hope they're legit), and will then ask my question. So, the Partition problem…
so.very.tired
  • 1,219
  • 1
  • 15
  • 20
1
vote
1 answer

show for any Languages $L_1$ and $L_2$ exists a Language $L$ with $L_1 \leq_{log} L$ and $L_2 \leq_{log} L$

This is an old exam question, but I never found a solution or somebody who could explain it to me. Here is the problem statement: Let $\Sigma$ be an alphabet with |$\Sigma$| $\geq 2$. Show that for any Languages $L_1 \subseteq \Sigma^*$ and $L_2…
456c526f
  • 23
  • 2
1
2