I came from here : Peak finding algorithm
I also watched the youtube video from the MIT OCW channel.
As per my understanding, the algorithm is to find a LOCAL peak.
The top comment on the post says a peak is not necessarily a global maximum...but isn't global maximum a peak? Is this converse not true?
If I start by this algorithm then the INITIAL middle element decides which way the peak will be found. Any peak on the other side(LOCAL or GLOBAL) will be ignored.
Also in the lecture says, "IF IT EXISTS". What does that mean? How does it depend on the >= sign?
P.S: Point out wherever I am wrong.