Artificial Intelligence Flashcards
(78 cards)
What is a Search Problem?
The task of getting from an initial state to a specified goal state by means of executing a sequence of actions available to and chosen by the agent.
Attributes of a Search Problem
State space, Initial state, Goal state, Actions (a function of current state), Transition model (a function of current state and performed action), Action cost function (optional).
Define Uninformed Search
No prior information except that in the state space graph of the problem; solution based on the information in the state space only, including action costs.
Define Informed Search
Algorithms that make use of a heuristic function β.
What is a heuristic β?
An estimate of the lowest cost from the current state π to the goal state. The estimate must be optimistic (not overestimate).
BFS (Breadth-First Search) Properties
Complete: Yes, Optimal: Yes, Time Complexity: π^d, Space Complexity: π^d.
DFS (Depth-First Search) Properties
Complete: Yes, Optimal: No, Time Complexity: π^m, Space Complexity: π*m.
IDS (Iterative Deepening Search) Main Idea
Combining BFS and DFS by limiting the depth of search (limit l), exploring to the limit in a DFS manner, and then progressing to the next sequential limit + 1 if no goal state is found.
IDS (Iterative Deepening Search) Properties
Complete: Yes, Optimal: Yes, Time Complexity: π^d, Space Complexity: π*d. Very memory efficient.
UCS (Uniform-Cost Search) Main Idea
Utilises action costs to make decisions; the lowest g(n) node generated is chosen for expansion. Goal state tested upon node expansion.
Why is UCS uninformed?
Action costs (e.g., road distances) are not directly indicative of which path brings one closer to the destination.
Greedy (Best-First) Search Main Idea
Choosing the nodes with the lowest heuristic value β(n), meaning closest to the goal state.
Greedy Search Properties
Quick with a good heuristic function. Not optimal as it cannot backtrack after generating the goal state.
A* Search Main Idea
Uses both the action costs accumulated in the path cost function g(n) and heuristic β(n) (βbackwardβ and βforwardβ costs).
When is A* search optimal?
If heuristic β(n) is admissible.
Define an admissible heuristic
A heuristic is admissible if it never overestimates the cost (e.g., straight-line distance).
Define a consistent heuristic
A heuristic is consistent if it satisfies the triangle inequality. Every consistent heuristic is admissible.
Characteristics of Local Search algorithms
Very memory efficient, not systematic (may leave parts of search space unexplored), highly initialisation dependent.
When are Local Search algorithms useful?
For finding reasonable/good solutions in infinite search spaces, which are unsuitable for systematic search.
Hill Climbing Algorithm
Initialise state randomly; consider all neighbours and choose the one with the highest objective function value; continue until no better neighbour found.
Problems with Hill Climbing
Local maxima and plateaus. Solution: iterative (random-restart) hill climbing.
What is a Constraint Satisfaction Problem (CSP)?
State representation is factored into a set of variables, each with its own domain.
Components of a CSP
Variables {π1, β¦, ππ}, Domains {π·1, β¦, π·π} specifying possible values for each variable, Constraints (C) rules that apply to variables and are used to update domains.
Define a consistent assignment in CSP
If all constraints are satisfied.