P & NP, NP-complete

  1. 3-SAT, independent set, vertex cover, set cover.

  2. Polynomial-Time Algorithm; Certificate t; Efficient(Polynomial) Certifier;
    P; NP; NP-Completeness;

    Algorithm "A" has polynomial running time: if for every input str "s", "A(s)" terminates in at most "O(p(|s|))" steps. where "p(~)" is some polynomial functions.

    P problem : all problems "X", for which there exists an polynomial algorithm "A", that solves "X".

B is a efficient (polynomial-time) certifier for problem "X": if (1)B is a polynomial time algorithms that takes two arguments as input, input string "s" and certificate string "t". (2) There exists a polynomial function p so that for every string "s", we have "s in X" iff there exists a string "t", that "|t|<=p(|s|)" (which means not too long), and "B(s,t) == yes".

NP problem : all problem "X", for which there exists an efficient (polynomial) certifier.

**NP-Completeness: ** if all NP problem "Y" can be reduced to an NP problem "X", "X" is NP-Complete.

Suppose X is NP-Complete, X is solvable in polynomial time, if and only if "P = NP".

**How to establish NP-completeness of problem "Y". **:
step1: Show that "Y" is in NP.
step2: Choose an NP-complete problem X.
step3: Prove that "X" can be reduced to "Y".

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯(lián)系作者
【社區(qū)內容提示】社區(qū)部分內容疑似由AI輔助生成,瀏覽時請結合常識與多方信息審慎甄別。
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發(fā)布,文章內容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關閱讀更多精彩內容

  • 1、 |淡藍色的小心思| 姐姐為妹妹定制了一個禮物,希望這個禮物可以表達妹妹一些小小的情愫; 妹妹最近認識了一個男...
    Y小姐的空氣生活閱讀 306評論 0 0
  • 其實有一個去想挺好的,有一種思念存在著,可以讓自己覺得自己還活著!去想一個已經死去的人,一個在記憶里死去的人。想你了
    魚湯閱讀 238評論 0 1
  • 泥娃娃泥娃娃 一個泥娃娃 也有那眉毛 也有那眼睛 眼睛不會眨 泥娃娃泥娃娃 一個泥娃娃 也有那鼻子 也有那嘴巴 嘴...
    解語之歡閱讀 637評論 0 0
  • 小屋是被遺棄了的 荒廢了很多年 破舊的老墻上長滿了青苔 墻頭上長了些許雜草 任憑風兒把它們吹得亂七八糟墻 墻腳下有...
    天真的橡皮哈閱讀 667評論 11 6
  • 這是秋葉《如何高效讀懂一本書》書中我最受益的部分,寫出來和大家分享。 一、通讀法 培養(yǎng)思考框架 進行批判性思維訓練...
    亭主閱讀 1,068評論 0 8

友情鏈接更多精彩內容