Adaptiveness in monotone pseudo-boolean optimization and stochastic neural computation