Uninformed Search Flashcards
What is a problem-solving agent
an agent that considers a sequence of actions that form a path to a goal state
What is an atomic representation
When the states of the world are considered as wholes, with no internal structure visible to the problem-solving algorithms
In this representation, each state of the world is a black box that has no internal structure. E.g., finding each state is a city. AI algorithms: search, games, Markov decision processes, hidden Markov models, etc.
What is factored representation?
when each state has some attribute value properties. E.g., GPS location, amount of gas in the tank. AI algorithms: constraint satisfaction, and Bayesian networks.
What is structured representation?
When relationships between the objects of a state can be explicitly expressed. AI algorithms: first-order logic, knowledge-based learning, natural language understanding
What is an uninformed search?
A search where the agent can’t estimate how far from the goal it is
What is the state space?
a set of possible states an environment can be in
What is the initial state?
the state the agent starts in
What is a goal state?
The state that we want the agent to reach
An agent can have 1+ goal states
What is a transition model?
says what each action does
e.g. Result of (s, a), where s = state and a = action
returns the state that results from doing that action in state s
What is an action cost function?
Action-Cost(s, a, s’)
Gives the cost of applying an action a in state s to reach state s’
s = current state
a = action to be applied
s’ = the state we want to reach
T/F: a sequence of actions forms a path
True
T/F: a solution is a path from the initial state to a goal state
True
What is an optimal solution?
solution that has the lower path cost amongst all solutions
T/F: the state space cannot be represented as a graph
False, it can
vertices = states
edges = the actions
What is a model
an abstract mathematical description
What is abstraction?
the process of removing details form a representation
An abstraction is valid if we can elaborate any abstract solution into a solution in the more detailed world
an abstraction is useful if carrying out each of the actions in the solution is easier than the original problem
Good abstraction –> removing as much detail as possible while still having validity and ensuring the abstract actions are easy to carry out
What is a search algorithm?
takes a search problems as input and returns a solution or indication of failure
What is the difference between the state space and the search tree?
State space: all the possible set of states in the worlds, and the actions that allow transitions from one state to another
Search tree: describes paths between these states, reaching towards the goal
T/F: A search tree can have multiple paths to any given state?
True
Does each node in a search tree have a unique path back to the root?
Yes
What is best-first search?
Where you choose a node from the fringe with a minimum value of some evaluation function, f(n). You expand the node if it has the minimum value and return it if it’s the goal state. If it’s not the goal state, you expand on it’s children. Keep doing this until the goal is found or all nodes are expanded
What are the uninformed search algorithms?
BFS
DFS
Depth-limited search
Iterative deepening DFS
Uniform cost search
Bidirection Search
What is BFS?
Search the tree level by level before expanding and looking at the children
Uses a FIFO queue
What are the advantages of BFS?
Provides a solutions
Provides the shallowest solution (i.e. least number of steps)
What are the disadvantages of BFS?
Requires a lot of memory since each level of the tree must be saved in order to expand the next level
Takes a lot of time if the solution is far from the root node
What is DFS?
Recursive algorithm where you search from the root node to the deepest node (leaf) before back tracking and continuing down the next deepest path
Uses a Stack FILO