0% found this document useful (0 votes)
94 views13 pages

Minorppt PDF

Artificial intelligence (AI) is the study of how to make computers behave intelligently like humans. AI systems are symbolic and use heuristic search techniques and large knowledge bases to make inferences. They are applied in areas like game playing, expert systems, fuzzy logic, and speech recognition. Breadth-first search (BFS) explores all nodes at each depth level before moving to the next, while depth-first search (DFS) goes as deep as possible first along each branch before backtracking. BFS guarantees to find the shortest solution but uses more memory, while DFS uses less memory but may explore more nodes before finding a solution.

Uploaded by

Sanjay Jain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
94 views13 pages

Minorppt PDF

Artificial intelligence (AI) is the study of how to make computers behave intelligently like humans. AI systems are symbolic and use heuristic search techniques and large knowledge bases to make inferences. They are applied in areas like game playing, expert systems, fuzzy logic, and speech recognition. Breadth-first search (BFS) explores all nodes at each depth level before moving to the next, while depth-first search (DFS) goes as deep as possible first along each branch before backtracking. BFS guarantees to find the shortest solution but uses more memory, while DFS uses less memory but may explore more nodes before finding a solution.

Uploaded by

Sanjay Jain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Artificial Intelligence

DEPARTMENT OF INFORMATION TECHNOLOGY

Topic :
Explain artificial intelligence . Also discuss the areas where
it can be used ? Compare Breadth first search and Depth
first search algorithm ?

SUBMITTED BY : Isha Jain SUBMITTED TO : Prof. Akshita Sharma


Artificial Intelligence -

"Artificial Intelligence is the study of how to make computers do thing which , at the
moment people do better ."
Artificial Intelligence is concerned with intelligent behaviour
in artifacts . Intelligent behaviour in turn involves perception , reasoning , learning ,
communicating and acting in complex enviroment . Artificial Intelligence (AI) has one of its
long term goal the development of machines that can do these things as well as human
can or possibly even better .
To make intelligent system a lot of knowledge is required .
So AI systems need a lot of knowledge base . This knowledge base is stored in the form
of some symbols. To became enough smart AI system it is necessary to update
knowledge frequently. A problem may be solved by using huerestic search techniques. It
process the knowledge and reach on some best suit result depends on search algorithm .
So An AI systems feature are :-

1) Its processing type is symbolic.


2) It uses huerestic search techniques to make some interference on knowledge to
make some inferences on knowledge available .
3)It involves a large knowledge base to make system smart.
4)Its process is based on inference.
5)Modification in knowledge has been done frequently .
Applications

There are some applications of the Ai systems :-

1) Game Playing : Shannon's paper on chess playing program and chockers area considered as
landmarks in the area of computer game playing . Now a days a lot of automated games are there
.
2) Expert systems : A "knowledge engine " interviews experts in a certain domain and tries to
ebody their knowledge in a computer program for carrying out some tasks .

3) Fuzzy Logic : We take a different approach and briefly consider what happens if we make
fundamental changes to our idea of set membership and corresponding changes to our definations
of logical operations .
The motivation for fuzzy set is provided by the need to represent such is
provided by the need to represent such prepositions as :-
cont...

1) John is good boy .


2) John is very good boy .

Now above 2 statements represent the different levels of goodness of boy.

4) Speech Recognition : In the 1990s , a comp[uter speech recognition reached a practical level
for limited purposes .
Breadth First Search

Breadth first search is performed by exploring all nodes at a given depth before processing to
all next level . It means that all immediate children of nodes are explored before any of the
children's children are considered . Search tree generated by a BFS is given below :-

A
/\
B C
/ /\
D E F
Output : A, B, C, D, E, F
Algorithm for BFS -

1. Create a variable called NODE - LIST and set it to the initial state .
2. Loop until the goal state is found or NODE-LIST is empty.
1. Remove the first element,say E , from the NODE-LIST .If NODE-LIST
was empty then quite.
2. For each way that each rule can match the state described in E do:
3. i) Apply the rule to generate a new state.
ii) If the new state is the goal state, quit and return this state.
iii) Otherwise add this state to the end of NODE-LIST
Advantages of BFS

1) BFS will not get trapped exploring the blindally . This contrasts with depth first
searching , which may follow a single , unfruitful path for a very long time , perhaps
forever , before the path actually terminates in a state that has no successor .

2) If there is a solution , then BFS is guarantees to find it . Further more, if there are
multiple solutions , then a minimal solution will be found . This is guaranteed by the
fact that longer paths are never explored and it all shorter ones have already been
examined .
Depth First Search

DFS is performed by going downward into a tree as quickly as possible. It does this by always
generating a child node from the most recently explored node, this generating that child's children ,
and so on , until a goal is not found when a leaf node is reached or at the act off point , the
program backtracks to the most recently expended node and generates another of its children .
This process continues until a goal is found or failure occur .

A
/\
B C
/ /\
D E F
Output : A, B, C, D, E, F
Algorithm for DFS

1.If the initial state is a goal state , quit and return success.
2. Otherwise , loop until success or failure is signaled.
a) Generate a state , say E , and let it be the successor of the initial state.
If there is no successor , signal failure .
b) Call Depth-First Search with E as the initial state.
c) If the success is returned , signal success . Otherwise countinue in this
loop.
Advantages of DFS

1) It requires less memory because it stores the nodes on the current path only.

2) By chance , depth first search may find a solution without examining much of the
search space at all. This contrasts with BFS in which all parts of the tree must be
examined to level n before any nodes on level n+1 can be examined . This is particularly
significant if many acceptable solutions exist . Depth first search can stop when one of
them is found .
Difference between BFS and DFS :-

no. BFS DFS

1. BFS(Breadth First Search) uses Queue data structure for finding the shortest DFS(Depth First Search) uses Stack data structure.
path.

BFS can be used to find single source shortest path in an unweighted graph, In DFS, we might traverse through more edges to reach a destination vertex
2.
because in BFS, we reach a vertex with minimum number of edges from a from a source.
source vertex.

3. BFS is more suitable for searching verteces which are closer to the given DFS is more suitable when there are solutions away from source.
source.
4.
BFS considers all neighbors first and therefore not suitable for decision DFS is more suitable for game or puzzle problems. We make a decision, then
making trees used in games or puzzles. explore all paths through this decision. And if this decision leads to win situation,
we stop.

5.
The Time complexity of BFS is O(V + E), where V stands for vertices and E The Time complexity of DFS is also O(V + E), where V stands for vertices and E
stands for edges. stands for edges.
Thank You

You might also like