DFS: some applications