The theory of dynamic programming is based on the principle of optimality, which states that an optimal policy has the property that whatever the initial state and initial decision are, the remaining decisions must constitute an optimal policy with regard to the state resulting from the first decision.
动态规划理论基于最优性原理,该原理指出,无论初始状态和初始决策如何,剩余决策必须构成关于第一个决策所导致状态的最优策略。
I'm not afraid of death, I'm afraid of not trying.
仅仅活着是不够的,还需要有阳光、自由,和一点花的芬芳。
计算机科学的终极目标是创建既强大又可靠的系统。