Big O Notation

What is?

The Basic Idea

Example

Notes on Big O

In conclusion, in order to determine the performance of an algorithm with Big O notation, you need to analyze how the running time of the algorithm changes as the input size increases. The goal is to find the simplest function that describes the upper bound on the running time.



Logarithmic Functions

Logarithmic Function Example

In conclusion, Logarithmic functions are very powerful for describing the performance of algorithms that involve dividing a problem into smaller subproblems or using data structures that are balanced, such as balanced binary search trees or hash tables. An algorithm that has a logarithmic running time is considered to be very efficient, especially for large input sizes