AI Unit I
AI Unit I
AI Unit I
UNIT I
Overview & Search Techniques
Introduction to AI
• Artificial Intelligence is concerned with the design of
intelligence in an artificial device.
Step 7: D is expanded,
B and F are put in OPEN.
Breadth First Search: Example
Step 8:
G is selected for expansion.
Step 1:
Initially
fringe contains
only the node A.
Depth First Search: Example
Step 2: A is removed from fringe. A is expanded and its
children B and C are put in front of fringe.
Depth First Search: Example
Step 3: Node B is removed from fringe, and its children
D and E are pushed in front of fringe.
Depth First Search: Example
Step 4: Node D is removed from fringe. C and F are
pushed in front of fringe.
Depth First Search: Example
Step 5: Node C is removed from fringe. Its child G is
pushed in front of fringe.
Depth First Search: Example
Step 6: Node G is expanded and found to be a goal
node. The solution path A-B-D-C-G is returned and the
algorithm terminates.
Informed Search
We have seen that uninformed search methods that
systematically explore the state space and find the goal.
The first picture shows the current state n, and the second
picture the goal state.
This heuristic sums the distance that the tiles are out
of place. The distance of a tile is measured by the sum
of the differences in the x-positions and the y-positions.
Step 5: Exit.
Best first search
Uniform Cost Search is a special case of the best first
search algorithm.
Path- A → F
A* search: Example
Step-02:
Node G and Node H can be reached from node F.
Path- A → F → G
A* search: Example
Step-03:
Node I can be reached from node G.
Path- A → F → G → I
A* search: Example
Step-04:
Node E, Node H and Node J can be reached from node I.