Exercises Videos Notes Multiple-choice questions

Related books

Introduction to Theory of Computation Theory of Computation Computational Complexity Computers and Intractability: A Guide to the Theory of NP-Completeness Computational Complexity: A Modern Approach Suggest a Book
0

Primality is in NP $\cap$ co-NP

Level: unknown
 

posted Jun 19 '12

kintali gravatar image Shiva Kintali flag of United States
691 1 6 22
http://www.cs.princeton.e...

Primality is the following problem :

Given a positive integer $n$, is $n$ prime ?

Note that the size of the input is the number of bits used to represent $n$.

  • Easy : Show that Primality is in co-NP

  • Show that Primality is in NP

  • Hence conclude that Primality is in NP $\cap$ co-NP.

Do not use the Primality is in P theorem.

Printable version LaTeX source
delete flag offensive retag edit

Stats

Posted: Jun 19 '12

Seen: 76 times

Last updated: Jun 19 '12