I am totally new in this area.
Lets say we have a list of random numbers and we have to find one peak value (only one is fine), and a peak is if $a \geq$ than its both neighbours (or one if it is in on the edge). For example:
So here, 4 is a peak, so is 5, 8, 5 and 7. But our algorithm has to find only 1 peak, not all.
So if we use the binary search (which is optimal here, I think):
For a 1D binary search, the complexity is:
$$\mathcal O=log_2(n)$$
For a 2D matrix m x n, I heard that the complexity is:
$$\mathcal O=mlog_2(n)$$
I am interested what is the complexity for 3D, 4D and so on for binary search.
What is the complexity of this algorithm in arbitrary N dimensions. Is there a function of complexity as a function of numbers of dimensions we are in?

[0,1,2,3,...,n]. $\endgroup$