1/3
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
BFS Time Complexity
O(bd) where b is the maximum branching factor and d is the depth of the least-cost solution
BFS Space Complexity
O(bd) as every node is stored
DFS Time Complexity
O(bm) where b is the maximum branching factor and m is the maximum depth
DFS Space Complexity
O(bm)