Big O notation is used to calculate the complexity of an algorithm.It defines that a function f(n) is equal to O(g(n)) if it is always less than c * g(n).Reducing f(n) to g(n) helps in understanding the rate of growth of the function.Examples of functions and their corresponding Big O notations are provided.