Year 2 Term 1 Exams Flashcards
What are the 3 problem types of blind search?
Single-state problem, Sensorless problem, Contingency problem
What are the characteristics of single-state problems?
Deterministic & fully observable: Agent will base decisions solely on its state and doesn’t consider the sequence
What are the characteristics of sensorless problems?
Non-observable: Innovative approaches required to compensate for lack of sensory input
What are the characteristics of contingency problems?
Non-deterministic &/or partially observable: Agent may adjust action according to new information about current state
What dimensions are search strategies evaluated on?
Completeness, Time Complexity, Space Complexity, Optimality
In BFS, are nodes added to the start or end of the queue?
The end
BFS completeness, time complexity, space complexity, and optimality
Complete: Yes - if b and d are finite
Time Complexity: O(b^(d+1))
Space: O(b^(d+1))
Optimality: Yes - if step costs don’t vary
Summarise the dimensions of BFS
Space complexity is terrible as every node is kept in memory
In DFS, are nodes added to the start or end of the queue?
The start
DFS completeness, time complexity, space complexity, and optimality
Complete: Yes - if b and d are finite
Time Complexity: O(b^m) - m is max depth
Space: O(bm)
Optimality: No
Summarise the dimensions of DFS
Good space complexity but not optimal
DLS completeness, time complexity, space complexity, and optimality
Complete: Maybe - if solution is shallower than n
Time Complexity: O(b^n)
Space: O(bn)
Optimality: No
Summarise the dimensions of DLS
Not complete or optimal
IDS completeness, time complexity, space complexity, and optimality
Complete: Yes
Time Complexity: O(b^d) - unexpectedly okay
Space: O(bd)
Optimality: Yes
Graph search’s use
Incorporated into BFS as it stores all searched nodes
Detects repeated states, preventing linear problems turning into exponential ones
What is bidirectional search?
Two BFS or IDS searches start from the initial state and goal state
Reduces time complexity from b^d to 2b^(d/2)
What do evaluation functions do in search?
Finds the most desirable node to expand
Greedy Best-First Search completeness, time complexity, space complexity, and optimality
Complete: No - only considers next nodes, so may prematurely conclude which path is best
Time Complexity: O(b^m)
Space: O(b^m)
Optimality: No
Summarise the dimensions of Greedy Best-First Search
Bad space complexity, and not complete or optimal as the greedy nature may see it take suboptimal paths
What makes a good heuristic?
Admissibility (validity), Consistency, Informative, Domain-Specific Knowledge, Simplicity & Efficiency
What’s an admissible heuristic?
One that never overestimates the cost to reach the goal state
What’s a consistent heuristic?
One that’s cost to neighbour state to goal state is not less than the cost to goal state
What’s an informative heuristic?
One that differentiates between promising and less promising paths
What’s a heuristic that has domain-specific knowledge?
One that considers processing time and the dependencies of tasks