P vs NP

P VERSUS NP
Note, however, that many solvable problems are believed to have the property
that no algorithm with polynomial worst-case time complexity solves them, but that a solution, if known, can be checked in polynomial time. Problems for which a solution can be checked in polynomial time are said to belong to the class NP (tractable problems are said to belong to class P). The abbreviation NP stands for nondeterministic polynomial time. The satisfiability problem, is an example of an NP problem—we can quickly verify that an assignment of truth values to the variables of a compound proposition makes it true, but no polynomial time algorithm has been discovered for finding such an assignment of truth values.
(For example, an exhaustive search of all possible truth values requires 2n bit operations where n is the number of variables in the compound proposition.)
There is also an important class of problems, called NP-complete problems, with the property that if any of these problems can be solved by a polynomial worst-case time algorithm, then all problems in the class NP can be solved by polynomial worst-case time algorithms.
The satisfiability problem, is also an example of an NP-complete problem. It is an NP problem and if a polynomial time algorithm for solving it were known, there would be polynomial time algorithms for all problems known to be in this class of problems (and there are many important problems in this class). This last statement follows from the fact that every problem in NP can be reduced in polynomial time to the satisfiability problem. Although more than 3000 NP complete problems are now known, the satisfiability problem was the first problem shown to be NP-complete. The theorem that asserts this is known as the Cook-Levin theorem after Stephen Cook and Leonid Levin, who independently proved it in the early 1970s.
The P versus NP problem asks whether NP, the class of problems for which it is possible to check solutions in polynomial time, equals P, the class of tractable problems. If P=NP, there would be some problems that cannot be solved in polynomial time, but whose solutions could be verified in polynomial time. The concept of NP-completeness is helpful in research aimed
at solving the P versus NP problem, because NP-complete problems are the problems in NP considered most likely not to be in P, as every problem in NP can be reduced to an NP-complete problem in polynomial time. A large majority of theoretical computer scientists believe that P=NP, which would mean that no NP-complete problem can be solved in polynomial time.
One reason for this belief is that despite extensive research, no one has succeeded in showing that P = NP. In particular, no one has been able to find an algorithm with worst-case polynomial time complexity that solves any NP-complete problem. The P versus NP problem is one of the most famous unsolved problems in the mathematical sciences (which include theoretical computer science). It is one of the seven famous Millennium Prize Problems, of which six remain unsolved.
A prize of $1,000,000 is offered by the Clay Mathematics Institute for its solution.

所有能用多項式時間算法計算得到結(jié)果的問題宿礁,稱為多項式問題茬贵,也就是P湾揽,所有絕對不可能用多項式時間求解的問題晓猛,稱為指數(shù)型問題德绿。

有這樣一類問題忱叭,假使你得到了問題的解碉考,我要驗證你的解是否正確,驗證所花的時間是多項式袒哥,至于求解本身所花的時間是否是多項式我不管缩筛,可能有多項式算法,可能沒有堡称,也可能是不知道瞎抛,這類問題稱為NP問題。

NP概念的奧妙在于却紧,它躲開了求解到底需要多少時間這樣的問題桐臊,而僅僅只是強調(diào)驗證需要多少時間,從而為P與NP這一千年難題的產(chǎn)生埋下了伏筆晓殊。顯然断凶,P肯定是NP,因為你既然能用多項式求解巫俺,就肯定能用多項式驗證(大不了我再算一遍H纤浮),但NP是否是P誰也確定不了介汹。另外却嗡,目前已經(jīng)很明確的指數(shù)型問題也肯定不是NP。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末痴昧,一起剝皮案震驚了整個濱河市稽穆,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌赶撰,老刑警劉巖舌镶,帶你破解...
    沈念sama閱讀 221,695評論 6 515
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異豪娜,居然都是意外死亡餐胀,警方通過查閱死者的電腦和手機,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 94,569評論 3 399
  • 文/潘曉璐 我一進店門瘤载,熙熙樓的掌柜王于貴愁眉苦臉地迎上來否灾,“玉大人,你說我怎么就攤上這事鸣奔∧迹” “怎么了?”我有些...
    開封第一講書人閱讀 168,130評論 0 360
  • 文/不壞的土叔 我叫張陵挎狸,是天一觀的道長扣汪。 經(jīng)常有香客問我,道長锨匆,這世上最難降的妖魔是什么崭别? 我笑而不...
    開封第一講書人閱讀 59,648評論 1 297
  • 正文 為了忘掉前任,我火速辦了婚禮,結(jié)果婚禮上茅主,老公的妹妹穿的比我還像新娘舞痰。我一直安慰自己,他們只是感情好诀姚,可當我...
    茶點故事閱讀 68,655評論 6 397
  • 文/花漫 我一把揭開白布响牛。 她就那樣靜靜地躺著,像睡著了一般赫段。 火紅的嫁衣襯著肌膚如雪娃善。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 52,268評論 1 309
  • 那天瑞佩,我揣著相機與錄音,去河邊找鬼坯台。 笑死炬丸,一個胖子當著我的面吹牛,可吹牛的內(nèi)容都是我干的蜒蕾。 我是一名探鬼主播稠炬,決...
    沈念sama閱讀 40,835評論 3 421
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼咪啡!你這毒婦竟也來了首启?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 39,740評論 0 276
  • 序言:老撾萬榮一對情侶失蹤撤摸,失蹤者是張志新(化名)和其女友劉穎毅桃,沒想到半個月后,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體准夷,經(jīng)...
    沈念sama閱讀 46,286評論 1 318
  • 正文 獨居荒郊野嶺守林人離奇死亡钥飞,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 38,375評論 3 340
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發(fā)現(xiàn)自己被綠了衫嵌。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片读宙。...
    茶點故事閱讀 40,505評論 1 352
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖楔绞,靈堂內(nèi)的尸體忽然破棺而出结闸,到底是詐尸還是另有隱情,我是刑警寧澤酒朵,帶...
    沈念sama閱讀 36,185評論 5 350
  • 正文 年R本政府宣布桦锄,位于F島的核電站,受9級特大地震影響耻讽,放射性物質(zhì)發(fā)生泄漏察纯。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點故事閱讀 41,873評論 3 333
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望饼记。 院中可真熱鬧香伴,春花似錦、人聲如沸具则。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,357評論 0 24
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽博肋。三九已至低斋,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間匪凡,已是汗流浹背膊畴。 一陣腳步聲響...
    開封第一講書人閱讀 33,466評論 1 272
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留病游,地道東北人唇跨。 一個月前我還...
    沈念sama閱讀 48,921評論 3 376
  • 正文 我出身青樓,卻偏偏與公主長得像衬衬,于是被迫代替她去往敵國和親买猖。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當晚...
    茶點故事閱讀 45,515評論 2 359

推薦閱讀更多精彩內(nèi)容

  • 林文月的書高诺,經(jīng)人介紹,得知有本《京都一年》讽挟。慢慢的長句構(gòu)成的懒叛。久經(jīng)網(wǎng)絡流竄的我們,已經(jīng)消化不得耽梅。 但因為自己也曾在...
    一坪海岸線閱讀 246評論 0 1
  • 欣逢馮主席生日宴賦 二馬奔騰一朝賀薛窥,今夕森林眾樂樂。 國根雄略涵古今眼姐,氣宇軒昂蓋項劉诅迷。 燭秉丹心許千鶴,愛盈花尖遞...
    黃磊的簡書閱讀 611評論 0 3