Why are NP problems called that way (and NP-hard and NP-complete)?

前端 未结 5 1151
遥遥无期
遥遥无期 2020-12-15 06:09

Really.. I\'m having the last test for graduation this Tuesday, and that\'s one of the things I just never could understand. I realize that a solution for NP problem can be

5条回答
  •  孤街浪徒
    2020-12-15 06:48

    P

    Class of all problems which can be solved by a deterministic Turing machine in polynomial time.

    NP

    Class of all problems which can be solved by a non-deterministic Turing machine in polynomial time (they can also be verified by a deterministic Turing machine in polynomial time.)

    NP-Hard

    A class of problems which are "at least as hard as the hardest problems in NP". Formally, a problem is in NP-Hard iff there is an NP-complete problem that is polynomial time Turing-reducible to it; (also: iff it can be solved in polynomial time by an oracle machine with an oracle for the problem). It is pretty obvious where the name comes from.

    NPC

    The class of problems which are both NP as well as NP-Hard. Regarding the naming, even wikipedia is not sure why it's named as it is.

提交回复
热议问题