What is log(8) to base 2
its 3log(8) base 2 = 3 as 2^3 = 8log2(value) = exponent then 2^exponent = value
Binary search runtime
O(log n)
Quick sort runtime
O(n log n)
Selection sort and few other sorts runtime
O(n^2)
Runtime of Complex full search, recursive algorithms that solves a problem of size N
O(2^n)
O(n!) runtime example
you are adding a loop for every element like travelling salesman, permutations
4 BigOh rules
What are 7 steps for problem solving
Complete version
Coding skills