Big O Notation are used to describe the performance of an algorithm and Scalability of the algorithm.
means does the algorithm is going to scale well as the input grows really large like billions - trillions paramaters
note : if more then 2 or more loops (nested) are there then it wil increment to (n ^ number of loops)note : So if any alogo runs in logarthmic time that means that algorithm is more scalablenote : So if any alogo runs in logarthmic time that means that algorithm is more scalable
Space complexity, similar to Big O Notation for runtime complexity,Space Complexity describes the memory usage of an algorithm in relation to its input size.
It essentially tells you how well the algorithm scales in terms of memory requirements as the input data grows massive billions or trillions of parameters.
NOTE :The notations above is also used for Space Complexity also.