InterviewSolution
Saved Bookmarks
| 1. |
In a computational complexity theory, a problem with decision making is said to be NP-complete when it is both in NP and NP-hard. What does NP mean?(a) Non Polynomial time(b) Non-deterministic Probabilistic(c) Non-deterministic Polynomial time(d) Non Probabilistic timeI have been asked this question in examination.Query is from Pancake Sort in chapter Sorting of Data Structures & Algorithms II |
|
Answer» RIGHT choice is (C) Non-deterministic POLYNOMIAL time The best explanation: Although any given solution to an NP-complete problem can be validated quickly in polynomial time; there is no way to efficiently LOCATE a solution to begin with. The UNIQUE characteristic of NP-complete problems is that no fast solution to them is known and hence NP-complete problems are said to be non-deterministic polynomial time. |
|