How to prove that a problem is NP complete?

前端 未结 5 734
南方客
南方客 2021-01-29 18:23

I have problem with scheduling. I need to prove that the problem is NP complete. What can be the methods to prove it NP complete?

5条回答
  •  隐瞒了意图╮
    2021-01-29 18:42

    In order to prove that a problem L is NP-complete, we need to do the following steps:

    1. Prove your problem L belongs to NP (that is that given a solution you can verify it in polynomial time)
    2. Select a known NP-complete problem L'
    3. Describe an algorithm f that transforms L' into L
    4. Prove that your algorithm is correct (formally: x ∈ L' if and only if f(x) ∈ L )
    5. Prove that algo f runs in polynomial time

提交回复
热议问题