Lably
Skip to content

Co-NP

Complexity class

  • 3 min read
  • 3 chapters

Related on Lably

Through Turing machine, Propositional logic and Integer factorization

That is, co-NP is the set of decision problems where there exists a polynomial ⁠p(n)⁠ and a polynomial-time bounded Turing machine M such that for every instance x, x is a no-instance if and only if: for some possible certificate c of length bounded by ⁠p(n)⁠, the Turing machine M accepts the pair (x, c).

Complementary problems

While an NP problem asks whether a given instance is a yes-instance, its complement asks whether an instance is a no-instance, which means the complement is in co-NP. Any yes-instance for the original NP problem becomes a no-instance for its complement, and vice versa.

Unsatisfiability

An example of an NP-complete problem is the Boolean satisfiability problem: given a Boolean formula, is it satisfiable (is there a possible input for which the formula outputs true)? The complementary problem asks: "given a Boolean formula, is it unsatisfiable (do all possible inputs to the formula output false)?". Since this is the complement of the satisfiability problem, a certificate for a no-instance is the same as for a yes-instance from the original NP problem: a set of Boolean variable assignments which make the formula true. On the other hand, a certificate of a yes-instance for the complementary problem (whatever form it might take) would be equally as complex as for the no-instance of the original NP satisfiability problem.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Topics in mathematics