开发者

Algorithm reductions

If I have a algorithm A that i have proven belongs to P can this algorit开发者_如何学Pythonhm also belong to the NPC class or is it strictly P? What about NP? P Belongs to NP right?

Thx for any help!

/Marthin


If P!= NP then P is not a subset of NPC, in fact they don't intersect. If P=NP, then P and NPC are the same. All P algorithms are part of NP though. Check the Wikipedia page for more information, and a diagram that explains exactly what you're asking.

If you can prove that P=NP, you will be very famous.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜