1: Finite size scaling approach to dynamic storage allocation problem 2: Optimal Adaptive Algorithms for Finding the Nearest and Farthest Point on a Parametric Black-Box Curve