Day 6 Flashcards
Problem formulation is the process of deciding what actions and states to consider, given a goal.
Goal formulation based on the current situation and the performance measure, is the first step in problem solving.
- We assume that the environment is observable , so the agent always knows the current state.
- We also assume the environment is discrete, so at any given state there are only finitely many actions to choose from.
- We will assume the environment is known, so the agent knows which states are reached by each action.
- Finally, we assume that the environment is deterministic, so each action has exactly one outcome.
Space complexity of BFS algorithm is given by the Memory size of frontier which is O(bd).
Completeness: BFS is complete, which means if the shallowest goal node is at some finite depth, then BFS will find a solution.
Completeness: BFS is complete, which means if the shallowest goal node is at some finite depth, then BFS will find a solution.
BFS is optimal if path cost is 1 per step.
Uniform-cost search is a searching algorithm used for traversing a weighted tree or graph. This algorithm comes into play when a different cost is available for each edge
The primary goal of the uniform-cost search is to find a path to the goal node which has the lowest cumulative cost. It can be used to solve any graph/tree where the optimal cost is in demand.
Uniform-cost search expands nodes according to their path costs form the root node
Uniform-cost search does not care about the number of steps a path has, but only about their total cost.
Uniform cost search is optimal because at every state the path with the least cost is chosen
It does not care about the number of steps involve in searching and only concerned about path cost.
A uniform-cost search algorithm is implemented by the priority queue
Uniform cost search is equivalent to BFS algorithm if the path cost of all edges is the same.
Completeness: Uniform-cost search is complete, such as if there is a solution, UCS will find it.
Completeness: Uniform-cost search is complete, such as if there is a solution, UCS will find it.