Reducibility [00WC]

Suppose we have an algorithm to solve problem B, which we can think of as a black box that takes some inputs describing a problem instance and yields an appropriate output:

We can then think of our algorithm as a “subroutine” to turn it into a solution to another problem:

  • The function f translates inputs for problem A into inputs for problem B.
  • The function g translates outputs for problem B into outputs for problem A.
  • Note we can even allow multiple “calls” to B.

Of course, this is only useful if this really does solve problem A. That is, we need the property that if y is a solution of problem B for input f(x), then g(y) is a solution of problem A for input x. In this case we write A \leq B (“A is reducible to B”). Note we can prove such a reduction without having an actual algorithm to solve problem B: we just show that if we had an algorithm to solve B then we could also use it to solve A.