140 likes | 510 Views
P, NP, NP-hard. P, NP, NP-hard diagram. NP. NP-hard. P. NP-complete. P, NP problems definitions. P = {L І з p(n), M (deterministic) solves L in p(n) time} NP = {L І з p(n), M (non-deterministic) solves L in p(n) time}. NP-hard, NP-complete problems definitions.
E N D
P, NP, NP-hard diagram NP NP-hard P NP-complete
P, NP problems definitions • P = {L Ізp(n), M (deterministic) solves L in p(n) time} • NP = {L Ізp(n), M (non-deterministic) solves L in p(n) time}
NP-hard, NP-complete problems definitions • L is NP-hard iffV Lx € NP: Lx ≤p L • L is NP-complete iff is NP-hard AND L € NP
Demonstration • L1 ≤p L2 • L2 € NP • L1 is NP-hard => V Lx € NP: Lx ≤p L1 => Lx ≤p L2 => L2 is NP-hard NP-hard NP L1 P L2 NP-complete