2076 12

CSC325 ยท 2076 ยท 5 marks

Explain in brief about the classes P, NP, and NP complete with examples.

Explain in brief about the classes P, NP, and NP complete with examples. [5]

Design and Analysis of AlgorithmsChapter 8: NP CompletenessComplexity Classes

--- Definition: P is the class of decision problems that can be solved by a deterministic algorithm in polynomial time, i.e., in O(n^k) for some constant k. - These are considered tractable (efficiently solvable) problems. Examples: - Sorting (Merge Sort: O(n log n)) - Searching (Binary Search: O...