It should be pointed out that the DP formulation presented above is nonserial
in nature: we express the solution to the subproblem of interest in terms
of two other problems. It should also be indicated that although the functional
equation does not include a min operation, the solution it generates is optimal:
it minimizes the number of moves.