結果 : which algorithm is based on dynamic programming