Approximate Dynamic Programming And Stochastic Approximation Methods For Inventory Control And Revenue Management