You 'll define an abstract DynamicProgramming class that contains code common to all the algorithms .
我们将定义一个抽象类DynamicProgramming,它包含所有算法的公共代码。