You'll define an abstract DynamicProgramming class that contains code common to all the algorithms.
我们将定义一个抽象类dynamicprogramming,它包含所有算法的公共代码。
What you set the initial scores and Pointers to differs from algorithm to algorithm, which is why the DynamicProgramming class, as shown in Listing 4, defines two abstract methods!
设置的初始值和指针因算法不同而不同。
应用推荐