CS302 Unit1-III
CS302 Unit1-III
INTELLIGENCE
UNIT-1
Problem Solving and Search
Problem Solving Agent
• An agent that tries to come up with a sequence of actions that will
bring the environment into a desired state.
Search
• The process of looking for such a sequence, which leads to the
desired known state and found to be best sequence is called search.
DISADVANTAGES
• There is the possibility that many states keep re-occurring,
and there is no guarantee of finding the solution.
• And there is no guarantee to find a minimal solution, if more
than one solution exists.
• DFS algorithm goes for deep down searching and sometime it
may go to the infinite loop.
Uniformed Cost Search
• 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. Uniform-cost
search expands nodes according to their path costs form the
root node. It can be used to solve any graph/tree where the
optimal cost is in demand. A uniform-cost search algorithm is
implemented by the priority queue. It gives maximum priority
to the lowest cumulative cost. Uniform cost search is
equivalent to BFS algorithm if the path cost of all edges is the
same.
EXAMPLE
Uniformed Cost Search
Advantages:
Uniform cost search is optimal because at every state
the path with the least cost is chosen.
Disadvantages:
It does not care about the number of steps involve in
searching and only concerned about path cost. Due to
which this algorithm may be stuck in an infinite loop.
Thank you