Adaptive Algorithms and Stochastic Approximations