BFS,AC