Está en la página 1de 12

4TH WEEK

BLIND SEARCH METHODS


ARTIFICIAL INTELLIGENCE
2011-1
Group 1
BLIND SEARCHES
INTRODUCTION
 A blind search (also called an uninformed

search) is a search that has no information


about its domain. The only thing that a blind
search can do is distinguish a non-goal state
from a goal state.
BLIND SEARCHES METHODS
 Breadth-First Search
It goes through the tree level by level, visiting
all of the nodes on the top level first, then all
the nodes on the second level, and so on. This
strategy has the benefit of being complete (if
there's a solution, it will be found), and optimal
as long as the shallowest solution is the best
solution.
Breadth-First Search
 Algorythm

 1. QUEUE <-- path only containing the root;

 2. WHILE QUEUE is not empty


 AND goal is not reached

 DO remove the first path from the QUEUE;


 create new paths (to all children);
 reject the new paths with loops;
 add the new paths to back of QUEUE;

 3. IF goal reached
 THEN success;
 ELSE failure;
Breadth-First Search


EXAMPLE:

In this example, we

can notice the level-by- 5º

level search to find the 1º

word “search” 6º

3º 7º
BLIND SEARCHES METHODS
 Depth-First Search
It goes through the tree branch by branch,
going all the way down to the leaf nodes at the
bottom of the tree before trying the next branch
over. This strategy requires much less memory
than breadth-first search, since it only needs to
store a single path from the root of the tree
down to the leaf node.
Depth-First Search
 Algorythm

 1. QUEUE <-- path only containing the root;

 2. WHILE QUEUE is not empty


 AND goal is not reached

 DO remove the first path from the QUEUE;


 create new paths (to all children);
 reject the new paths with loops;
 add the new paths to front of QUEUE;

 3. IF goal reached
 THEN success;
 ELSE failure;
Depth-First Search
16º
EXAMPLE:
12º
In this example, we 17º

can notice the level-by- 13º


15º

level search to find the 1º 14º


word “search” 9º
11º

10º






4º 5º
BLIND SEARCHES METHODS
 Non Deterministic Search
Form a one element queue consisting of a zero-
length path that only contains root
Until the first path in the queue terminates at the
goal node or the queue is empty
 Remove the first path from the queue; create new
paths by extending the first path to all neighbors of
the terminal node
 Reject all new paths with loops
 Add the new paths at RANDOM places in the queue

If the goal node is foundsuccess; else failure


Non Deterministic Search
 Algorythm:

 1. QUEUE <-- path only containing the root;

 2. WHILE QUEUE is not empty


 AND goal is not reached

 DO remove the first path from the QUEUE;


 create new paths (to all children);
 reject the new paths with loops;
 add the new paths in random places in QUEUE;

 3. IF goal reached
 THEN success;
 ELSE failure;
Bibliography
 http://www.cs.nott.ac.uk/~gxk/courses/g5ai
ai/003blindsearches/blind_searches.htm
 http://www.cse.unl.edu/~choueiry/S03-476-8
76/searchapplet/index.html
 www.cse.unr.edu/~sushil/class/ps/notes/wk
2.2.
ppt
 www.cs.kuleuven.ac.be/~dannyd/AI_Chap3_
Blind.ppt

También podría gustarte