Presentation is loading. Please wait.

Presentation is loading. Please wait.

Artificial Intelligence By Mr. Ejaz https:-owaiscomsian.wordpress.com/ CIIT Sahiwal.

Similar presentations


Presentation on theme: "Artificial Intelligence By Mr. Ejaz https:-owaiscomsian.wordpress.com/ CIIT Sahiwal."— Presentation transcript:

1 Artificial Intelligence By Mr. Ejaz https:-owaiscomsian.wordpress.com/ CIIT Sahiwal

2 Different types and techniques for uninformed searching Lecture 4

3 Conversion from Graph to Tree

4 Tree Terminologies

5 The Two-One Problem

6 Solution space for two-one problem

7 Search Strategies Blind/Uninformed Informed/Heuristic Any path/Non-optimal Optimal Path search

8 Blind Search VS Heuristics

9 Simple Search Algorithm simple search algorithm that will try to give you an idea about the sort of data structures that will be used while searching, and the stop criteria for your search. Let S be the start state 1. Initialize Q with the start node Q=(S) as the only entry; set Visited=(S) 2. If Q is empty, fail. Else pick node X from Q 3. If X is a goal, return X, we’ve reached the goal 4. (Otherwise) Remove X from Q 5. Find all the children of state X not in Visited 6. Add these to Q; Add Children of X to Visited 7. Go to Step 2

10 Simple Search Algorithm Applied to Depth First Search Depth First Search dives into a tree deeper and deeper to fine the goal state. We will use the same Simple Search Algorithm to implement DFS by keeping our priority function as P(n)= 1/height(n) we will give priority to the element with minimum P(n), hence the node with the largest value of height will be at the maximum priority to be picked from Q.

11 Depth First Search

12 Applying simple search algorithm

13 Breadth First Algorithm Breadth First Search explores the breadth of the tree first and progresses downward level by level. Now, we will use the same Simple Search Algorithm to implement BFS by keeping our priority function as P(n) =height(n) We will give priority to the element with minimum P(n) hence the node with the smallest value of height will be at the maximum priority to be picked from Q.

14 Problems with DFS and BFS DFS can run forever in search spaces with infinite length paths. DFS does not guarantee finding the shallowest goal. BFS requires a great deal of space (exponential in depth)

15 Progressive Deepening Progressive deepening actually emulates BFS using DFS. The idea is to simply apply DFS to a specific level. If you find the goal, exit, other wise repeat DFS to the next lower level.


Download ppt "Artificial Intelligence By Mr. Ejaz https:-owaiscomsian.wordpress.com/ CIIT Sahiwal."

Similar presentations


Ads by Google