State-Based Models: MDPs & Games
- 31Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What is the key difference between reflex-based models and search-based models?
In reflex-based models, the output action does not influence future states; in search-based models, actions affect future states and require considering future consequences.
Or swipe the card
31 cards
What is the key difference between reflex-based models and search-based models?
In reflex-based models, the output action does not influence future states; in search-based models, actions affect future states and require considering future consequences.
What is a search problem?
A search problem involves finding a sequence of actions to achieve a goal from a start state, considering actions, costs, and transitions.
What are the components of a search problem?
Start state, actions(s), cost(s,a), successor(s,a), and isEnd(s).
In the farmer, cabbage, goat, and wolf problem, why is the state where the farmer takes the cabbage first a bad state?
Because the wolf and goat are left alone, and the wolf will eat the goat.
What is the correct solution for the farmer, cabbage, goat, and wolf problem? How many crossings?
7 crossings: 1) Farmer takes goat across, 2) farmer returns alone, 3) farmer takes wolf across, 4) farmer returns with goat, 5) farmer takes cabbage across, 6) farmer returns alone, 7) farmer takes goat across.
What is a search tree?
A tree that starts from an initial state and branches out with possible actions, showing all sequences of actions and resulting states.
What is branching factor (b) and depth (d) in a search tree?
Branching factor b is the number of actions possible from a state; depth d is the number of steps (levels) in the tree.
What is the formal definition of the transportation problem?
Given N blocks, start at block 1, goal at block N. Actions: walk (cost 1, go to s+1) or tram (cost 2, go to 2s). Cannot exceed N.
What is backtracking search?
An algorithm that recursively explores all possible sequences of actions from the start state, backtracking when a path fails or is fully explored, and returns the best solution found.
What is the time complexity of backtracking search?
O(b^d), where b is branching factor and d is depth.
What is the space complexity of backtracking search?
O(d), where d is depth.
What constraint does depth-first search (DFS) impose compared to backtracking search?
DFS requires costs to be zero (or equal) and stops as soon as it finds a solution.
What is the time complexity of depth-first search?
O(b^d) in the worst case, but in practice it may stop early if a solution is found.
What is the space complexity of depth-first search?
O(d), same as backtracking search.
What constraint does breadth-first search (BFS) require on costs?
All costs must be the same positive constant.
What is the time complexity of breadth-first search?
O(b^d), where d is the depth of the shallowest solution.
What is the space complexity of breadth-first search?
O(b^d), because it must store all nodes at the current depth level.
What is iterative deepening DFS?
A hybrid algorithm that performs depth-limited DFS for increasing depth limits until a solution is found.
What is the space complexity of iterative deepening DFS?
O(d), where d is the depth of the solution.
What is the time complexity of iterative deepening DFS?
O(b^d) in the worst case, but with a constant factor overhead from repeated searches.
What is the key insight of dynamic programming for search?
The future cost from a state depends only on the state itself, not on how you reached it.
What is the recurrence for dynamic programming in search?
FutureCost(s) = 0 if isEnd(s), else FutureCost(s) = min_{a} [cost(s,a) + FutureCost(successor(s,a))].
What is the time complexity of dynamic programming for search?
O(n), where n is the number of states, assuming each state is computed once.
What assumption does dynamic programming make about the graph?
The graph must be acyclic (no cycles).
Why is state representation important in dynamic programming?
The state must be a sufficient summary of all past actions to choose optimal future actions, and it should be as small as possible to keep the state space manageable.
In the city travel problem with the constraint 'cannot visit three odd cities in a row', what is a minimal state?
State = (previous_odd_flag, current_city), where previous_odd_flag is True if the previous city was odd, else False.
In the city travel problem with the constraint 'visit at least three odd cities', what is a minimal state?
State = (min(odd_count, 3), current_city), where odd_count is the number of odd cities visited so far, capped at 3.
What is uniform cost search?
An algorithm that enumerates states in order of increasing past cost, maintaining explored, frontier, and unexplored sets, and guarantees optimality when costs are non-negative.
What are the three sets in uniform cost search?
Explored (states with optimal path found), Frontier (states seen but not yet optimal), Unexplored (states not yet seen).
What assumption does uniform cost search make about costs?
All costs must be non-negative.
How does uniform cost search handle cycles?
It can handle cycles because it re-evaluates costs when a state is reached via a different path, updating the frontier if a better cost is found.

Ask anything
We've read this whole study set, so questions about it get the best answers.