1/52
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
What is breadth-first search (BFS)?
BFS is a search strategy that expands the shallowest unexpanded node first. It explores nodes level by level.
What is the time and space complexity of BFS?
Both time and space complexity are O(b^d), where b is the branching factor and d is the depth of the shallowest solution.
Is BFS complete and optimal?
BFS is complete if b is finite. It is optimal if all step costs are equal, but not optimal in general.
What is uniform-cost search?
Uniform-cost search expands the node with the lowest path cost first, using a priority queue ordered by path cost.
What is the time and space complexity of uniform-cost search?
Both are proportional to the number of nodes with path cost less than or equal to the optimal solution cost, i.e., O(b^C/ε), where C is the cost of the optimal solution and ε is the minimum action cost.
Is uniform-cost search complete and optimal?
Yes, it is complete if step costs are greater than zero and is always optimal.
What is depth-first search (DFS)?
DFS is a search strategy that expands the deepest unexpanded node first, using a LIFO stack structure.
What is the time and space complexity of DFS?
Time complexity is O(b^m), where m is the maximum depth of the search tree. Space complexity is O(bm).
Is DFS complete and optimal?
DFS is not complete in infinite-depth spaces or with loops. It is not optimal.
What is depth-limited search (DLS)?
DLS is a variant of DFS with a depth limit l, preventing the search from going deeper than l levels.
What are the completeness and optimality properties of DLS?
DLS is complete if the solution is within the depth limit. It is not optimal.
What is iterative deepening search (IDS)?
IDS performs a series of depth-limited searches, increasing the depth limit with each iteration until a solution is found.
What is the time and space complexity of IDS?
Time complexity is O(b^d), and space complexity is O(bd), combining DFS’s space efficiency with BFS’s completeness.
Is IDS complete and optimal?
Yes, IDS is complete and optimal if step cost = 1. It can be modified for uniform-cost problems.
What is bidirectional search?
Bidirectional search runs two simultaneous searches—from start and from goal—hoping to meet in the middle.
What is the time and space complexity of bidirectional search?
Both time and space complexity are O(b^(d/2)), significantly better than unidirectional strategies.
Is bidirectional search complete and optimal?
It is complete and optimal if BFS is used in both directions. Requires reversible actions and efficient overlap detection.