Adaptive curve fitting and suboptimization

Two closely related problems 1) adaptive curve fitting and 2) suboptimization can be solved by using the generalized maximum principle. A given curve is approximated by a sequence of arcs in such a way that the duration covered by an arc is automatically shortened at places where the curve is more curly. For the suboptimization problem, a discrete version of the Euler-Lagrange equation is obtained.