We investigate the effects of precision on the efficiency of various local search algorithms on 1‐D unimodal functions. We present a (1+1)‐EA with adaptive step size which finds the optimum in O(logn) steps, where n is the number of points used. We then consider binary (base‐2) and reflected Gray code representations with single bit mutations. The standard binary method does not guarantee locating the optimum, whereas using the reflected Gray code does so in Θ((logn)2) steps. A(1+1)‐EA with a fixed mutation probability distribution is then presented which also runs in O((logn)2). Moreover, a recent result shows that this is optimal (up to some constant scaling factor), in that there exist unimodal functions for which a lower bound of Ω((logn)2) holds regardless of the choice of mutation distribution. For continuous multimodal functions, the algorithm also locates the global optimum in O((logn)2). Finally, we show that it is not possible for a black box algorithm to efficiently optimise unimodal functions for two or more dimensions (in terms of the precision used).