Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aditikhandalkar/249ee42832354396e6e37b49d9251623 to your computer and use it in GitHub Desktop.
Save aditikhandalkar/249ee42832354396e6e37b49d9251623 to your computer and use it in GitHub Desktop.
Understanding NP Hard and NP Complete
Polynomial Time Taking Algorithms
- Linear Search O(n)
- Binary Search O(logn)
- Matrix Mul O(n^x)
- Insertion Sort O(n^2)
- Merge Sort nlogn
Exponential Time Taking Algorithms {*=rough range }
- 0/1 Knapsack O(2^n)
- Travelling salesman O(2^n)
- Sum of Subsets O(2^n)
- Graph Coloring O(2^n)
- Hamilton Cycle O(2^n)
@aditikhandalkar
Copy link
Author

aditikhandalkar commented Aug 26, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment