Linear Search Big O time complexity
BEST CASE - O(1) AVERAGE CASE - O(n) WORST CASE- O(n)
Binary Search Array
BEST CASE - O(1)
AVERAGE CASE- O(log n)
WORST CASE-
O(log n)
Binary Search Tree
BEST CASE - O(1)
AVERAGE CASE-O(log n)
WORST CASE- O(n)
Binary Search array
BEST CASE- O(n)
AVERAGE CASE-O(log n)
WORST CASE-
O(log n)
Name and notation
O(1) = Constant O(log n) = Logarithmic O(n) = Linear O(n log N) = Linearithmic O(n^2) = Polynomial O(2^n) = Exponential O(n!) = Factorial