How to prove that a problem is NP complete?

前端 未结 5 759
南方客
南方客 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:37

    You need to reduce an NP-Complete problem to the problem you have. If the reduction can be done in polynomial time then you have proven that your problem is NP-complete, if the problem is already in NP, because:

    It is not easier than the NP-complete problem, since it can be reduced to it in polynomial time which makes the problem NP-Hard.

    See the end of http://www.ics.uci.edu/~eppstein/161/960312.html for more.

提交回复
热议问题