Necessary steps of making mathematics model with dynamic programming are analyzed in detail as well as necessary elements of dynamic programming model. Then, two kinds of basal algorithms to solve dynamic programming model are analyzed. Finally, for several examples, the two kinds of basal algorithms are realized with...