P or NP problem

简单介绍

Loosely speaking, the class P is the class of decision problems that can be solved by a deterministic Turing machine using a polynomial amount of computation time, or polynomial time.

NP (nondeterministic polynomial time) is the class of decision problems solvable in polynomial time by a nondeterministic Turing machine.

The P vs. NP problem is to determine whether every language accepted by some nondeterministic algorithm in polynomial time is also accepted by some (deterministic) algorithm in polynomial time.(是否所有能在多项式时间内验证得出正确解的问题,都是具有多项式时间算法的问题。)

P vs. NP: it is open if problems exist where finding a solution is harder than verifying it.

——即:

P问题:多项式时间算法有解(算法的时间复杂度可用多项式表示),可快速计算。(例:冒泡排序——O(n^{2}))

NP问题:多项式时间内不确定是否有解,但在多项式时间可验证解。(例:环路问题)

/*P问题是NP问题的子集*/

NPC问题(NP-complete问题):若此类问题有多项式解,则所有NP问题都有多项式解。

/*NPC问题由所有NP问题约化得到*/

NP-hard问题:可以不属于NP问题,但若NP-hard问题有多项式解,则NP问题都有多项式解。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值