The discrete Fourier transform comes to mind; if applied as follows, it would be non-monotonic (and intermittent):
if is_power_of_2(len(data)): return fft(data) return dft(data)
since dft works in O (N ** 2) and fft works in O (N log N).
By developing an algorithm, one could find a way to put input to remove non-monotonous behavior (i.e. speed up smaller inputs), as is usually done with fft.
source share