Questions: Algorithm Analysis and Complexity Classes

3 questions to test your understanding

Score: 0 / 3
Question 1 Multiple Choice

What does 'NP' stand for in the complexity class NP?

ANot Polynomial
BNon-deterministic Polynomial
CNearly Polynomial
DNondeterministic Provable
Question 2 True / False

For large input sizes, an O(n²) algorithm is generally slower than an O(n log n) algorithm.

TTrue
FFalse
Question 3 Short Answer

Explain in your own words why binary search runs in O(log n) time.

Think about your answer, then reveal below.