Aoa Viva
Aoa Viva
Time complexity represents the amount of time an algorithm takes to run as a function of the
input size, usually denoted as n. It helps in analyzing the efficiency of an algorithm.
NP-Hard: Problems for which no polynomial-time solution is known, and solving them would
solve all NP problems.
7. What is Big O?
Big O notation provides an upper bound on the time complexity — the worst-case scenario.
Rabin-Karp
Knuth-Morris-Pratt (KMP)
Boyer-Moore