Decrease And Conquer Topological Sort Bfs And Dfs In Artificial Intelligence