Solving problems by search Flashcards
For episodic, single agent, fully observable, deterministic, static, discrete and known environments
What is meant by a problem solving agent?
An agent that considers a sequence of actions to reach a goal.
What is the purpose of a goal formulation?
Determining whether a problem solving agent has solved the problem.
What is a problem formulation?
A description of the states and actions necessary to reach the goal.
What is meant by search in the context of search problems?
The act of simulating sequences of actions to reach a goal.
What are the six parts of a search problem?
- State space (Set of possible states the environment can be in)
- Initial state
- Goal state(s)
- Actions from a given state.
- Transition model (RESULT): Describes what each action does.
- Action cost function. Used for comparing solutions.
What does the nodes of a search tree represent?
States.
What does the edges of a search tree represent?
Actions
What is the difference between a state space and a search tree.
In a search tree, each node has a unique path back to the root node.
The state space describes the set of states, and the actions that allow transitions between different states.
What is a frontier in the context of search problems?
The set of all unexpanded nodes.
List the different types of queues used in frontiers.
Priority queue: first pops node with minimum cost. Used in best-first search
FIFO: Pops the node that was added to the queue first (normal queue). Used in BFS.
LIFO (stack): pops first the most recently added node. Used in DFS.
List different ways to deal with redundant paths in search trees.
Remember previously reached states, allowing detected reudundant paths to be eliminated.
Don’t worry about them. Can in some cases save memory.
Check for cycles, but not redundant paths. This is done by following the chain of parent nodes, to check whether a node appears multiple times.
What is the difference between graph search and tree-like search
Graph search: Checks redundant paths.
Tree-Like search: Doesn’t check redundant paths.
List ways to measure problem-solving performance of search-algorithms
Completeness: Garanteed to find a solution.
Cost optimality: Finds a solution with lowest possible path cost.
Time complexity: Time it takes to find solution.
Space complexity: Memory used.