Noniterative solution of the minimum regulator and minimum time problems