Content

  • P & NP

    source: wiki

  • Definition

    • P: Polynomial-time solvable, correspond to Deterministic Turing Machine
    • NP: Polynomial-time verifiable, correspond to Non-Deterministic Turing Machine.
    • NPC: Hardest problem in NP, we say a problem , we can verify a NPC problem is in NP by using a certificate(solution) whose size are polynomial to the problem instance can be verified in polynomial time.
  • Polynomial Time Reduction

    • For any instance of in , there is a polynomial time function that computes , and is true is true.
    • is equal or harder than , we can view as a black box.
  • Relation

    • If
    • if
      • if can be solved in polynomial time, then can be solved in polynomial time
      • if cannot be solved in polynomial time, then cannot be solved in polynomial time
      • if , and then
    • if

Reference