Time and Space Complexity
8 flashcards · Computer Science · by J M COOPER
Best First space and time complexity
time: O(bd) space: O(bd)
Depth First space and time complexity
time: O(bd) space: O(bd)
Breadth First space and time complexity
time: O(bd) space: O(bd)
A* space and time complexity
time: O(bd) space: O(bd)
What does space complexity mean in terms of search
The number of things we have to store - e.g. the length of the frontier
What does time complexity mean in terms of search
If you can access a node in O(1), the number of node visits
How many rows does a CPT for boolean Xi with k boolean parents have?
2k
If each boolean variable has no more than k boolean parents, how many numbers does the entire network require?
O(n · 2k)