DFS, Run algo iteration