以前常听老师讲NP问题,但一直不太理解,最近看了一点这方面的书籍,下面记录几个概念。
P类问题(polynomial):一类能够用确定性算法在多项式时间内求解的判断问题。
NP类问题(Nondeterministic Polynomial):对于某问题,很难找到其多项式时间的算法(或许根本不存在),但是如果给了该问题的一个答案,则可以在多项式时间内判断或验证这个答案是否正确。这种可以在多项式时间内验证一个解是否正确的问题称为NP问题。
非决定的计算机:人们在研究可计算性理论时引入的一种假想计算机,这种计算机具有同时处理无数个并行的,相互独立的计算序列的能力。现实世界的计算机都是决定的计算机。
不可判定问题:该类问题是不能解问题,不存在能求解他们的人和算法,如著名的图灵机停机问题。
非决定的难处理问题:这类问题是可解的,但是即使使用非决定的计算机也不能在多项式时间内求解他们。
NP问题
最新推荐文章于 2017-12-06 19:08:51 发布