DP, DFS