Skip to content

Instantly share code, notes, and snippets.

@bomsy
Last active March 14, 2019 10:01
Show Gist options
  • Save bomsy/f0fa23c6e1838b92964e72f250df9d2a to your computer and use it in GitHub Desktop.
Save bomsy/f0fa23c6e1838b92964e72f250df9d2a to your computer and use it in GitHub Desktop.
Big O Notation
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