結果 : which algorithm is not dynamic programming based