[理工] NP 問題

看板Grad-ProbAsk作者 (Transfat)時間7年前 (2017/01/13 22:22), 7年前編輯推噓5(5017)
留言22則, 9人參與, 最新討論串2/2 (看更多)
Which of the following statements are correct. Justify your answers. (1) If A is an NP-hard problem that can be reduced in polynomial time to problem B, then B is NP-hard. (2) If A is an NP-hard problem that can be reduced in polynomial time to problem B, then B is NP-complete. (3) If A is an NP-complete problem that can be reduced in polynomial time from problem B, then B is in NP. (4) If A is an NP-hard problem that can be reduced in polynomial time from problem B, then B is in NP. 話說我看我之前上課的筆記,我抄到一個:If A is NP-complete, A reduce to B,then B is NP-complete 我現在看起來是對的,可是我那時候筆記寫不一定,例子是halting problem. 想問你們怎麼看 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.112.25.105 ※ 文章網址: https://www.ptt.cc/bbs/Grad-ProbAsk/M.1484317348.A.1FB.html

01/13 22:29, , 1F
If A is NP-complete, A reduce to B, then B is NP-hard.
01/13 22:29, 1F

01/13 22:29, , 2F
因為B不一定在NP裡
01/13 22:29, 2F
可是B比A更難,A已經是NP-complete,B可能只是NP-hard but not NP?

01/13 22:36, , 3F
Halting problem 是NP hard不是NP所以不對
01/13 22:36, 3F

01/13 23:00, , 4F
請問這題答案是? @@
01/13 23:00, 4F

01/13 23:22, , 5F
1吧
01/13 23:22, 5F

01/13 23:34, , 6F
1 3應該都對 np complete也是np
01/13 23:34, 6F

01/13 23:35, , 7F
抱歉應該是錯的
01/13 23:35, 7F

01/13 23:36, , 8F
只會限制下限
01/13 23:36, 8F

01/13 23:39, , 9F
NP要另外證 poly reduce只能證NP hard
01/13 23:39, 9F

01/14 07:18, , 10F
我會想選(1)(3)耶!(3)我是想說A可以reduced from B,
01/14 07:18, 10F

01/14 07:19, , 11F
代表B比A簡單,A都只有NP-complete,B應該也是NP-compl
01/14 07:19, 11F

01/14 07:19, , 12F
ete以下才對,所以也算NP?不知道觀念哪裡錯了
01/14 07:19, 12F

01/14 07:20, , 13F
看了這題才發現自己的觀念其實並不清楚...
01/14 07:20, 13F

01/14 09:52, , 14F
我也沒有這題的答案,這是我小考的題目,所以才跟大家
01/14 09:52, 14F

01/14 09:52, , 15F
討論一下
01/14 09:52, 15F
結論一下問題: (1)對的,因為B比A更難,如果A已經是NP-hard,B也會是NP-hard (2)錯的,B有可能只是NP-hard, 不是NP-complete (3)對的(?) (4)錯的,B可能是NP-hard,不是NP(?) ※ 編輯: Transfat (140.112.25.105), 01/14/2017 11:26:33

01/14 12:13, , 16F
If A is NP, B is reduced to A, then B is NP.
01/14 12:13, 16F

01/14 12:13, , 17F
這邊 reduction 是指 polynomial time karp reduction
01/14 12:13, 17F

01/14 12:36, , 18F
FRAXIS大真是演算法難題救贖者,難題都會出現
01/14 12:36, 18F

01/15 03:27, , 19F
3應該是對的, 如果A是NPC代表給一組解能在poly time驗證
01/15 03:27, 19F

01/15 03:28, , 20F
B能poly time內規約成A, 那B也能給解檢驗, 所以B is NP
01/15 03:28, 20F

01/15 03:30, , 21F
筆記的部分, A reduction 'to' B, 可能會讓B不屬於NP
01/15 03:30, 21F

01/15 03:31, , 22F
此時B為NP-hard
01/15 03:31, 22F
文章代碼(AID): #1OUEAa7x (Grad-ProbAsk)
討論串 (同標題文章)
文章代碼(AID): #1OUEAa7x (Grad-ProbAsk)