DP+DFS