Time Complexity
Time Complexity is a measure of the amount of time an algorithm takes to solve a problem as a function of the size of the input to the problem. It is commonly estimated by counting the number of elementary operations performed by the algorithm, where an elementary operation takes a fixed amount of time to perform.
Why is Time Complexity Important?
Time Complexity is important because it helps us understand the efficiency of an algorithm. It allows us to compare different algorithms and choose the most efficient one for a given problem. It also helps us analyze the performance of an algorithm as the size of the input grows.
Video Explanation

Common Notations for Time Complexity
The most common notations used to represent the time complexity of an algorithm are:
- Big O Notation (O): It represents the upper bound of the time complexity of an algorithm. It gives the worst-case time complexity of an algorithm.
- Omega Notation (Ω): It represents the lower bound of the time complexity of an algorithm. It gives the best-case time complexity of an algorithm.
- Theta Notation (Θ): It represents the average-case time complexity of an algorithm. It gives the tight bound of the time complexity of an algorithm.