The algorithm is as follows:
- Let $v$ be the root.
- If $v$ is a local minimum, output $v$.
- Otherwise, update $v$ to be a child that has a smaller value, and go to step (b).
Since, the algorithm moves to a child in each step, the running time is at most the depth of the tree, which is $O(\log n)$.