Binary search complexity

1.2k Views Asked by At

In sorted array of numbers binary search gives us comlexity of O(logN). How will the complexity change if we split array into 3 parts instead of 2 during search?

1

There are 1 best solutions below

3
On BEST ANSWER

Same. You will get a running time only differing by constant factor ($\log_2 3=\frac{\ln 3}{\ln 2}$).