Last active
March 14, 2019 10:01
-
-
Save bomsy/f0fa23c6e1838b92964e72f250df9d2a to your computer and use it in GitHub Desktop.
Big O Notation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a way to measure the complexity of an algorithim (i.e the runtime). These measurement is usually done based on Space and Time. | |
O(1) - Constant | | |
O(n) - Linear | | |
O(log n) - Logrithmic | Best to Worst | |
O(n log n) - Linearithmic | | |
O(n ^ 2) - Exponential | | |
O(n!) - Factorial V | |
Op | |
| | |
| O(1) | |
|---------------------------------------------- | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
============================================== | |
El | |
Op - Operations | |
El - Elements | |
Rules when calculating the Big O (runtime) of an algorithim | |
============================================ | |
- Drop constants |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment