Minimum Sum Partition Problem Dynamic Programming And Optimal Control