Code Fellows courses Notes
This project is maintained by QamarAlkhatib
Big O notation is used to describe the performance or complexity of an algorithm Also to describe the execution time required or the space used such as in memory or on desk by an algorithm.
We have these types of notation of Big O:
O(1): it describes the algorithm that will always be executed in the same time or space regard to the size of the input data.
O(N): it describes the algorithm whose performance will grow linearly and in direct proportion to the size of the input data.
O(N^2): it describes the algorithm whose performance is directly proportioning to the squared size of the input data. it is common with the nested iterations over data.
O(2^N): It describes the algorithm whose growth doubles with each addition to the input data.