Update dynamicprogramming