Recurrence relations based on minimization and maximization