Cs AI
Cs AI
UNIT 1
S.PADMAVATHI
Asst.Prof in CS
Auxilium college,Regunathapuram
Definition of Artificial Intelligence:
A machine with the ability to perform cognitive functions such as perceiving,
learning, reasoning and solve problems are deemed to hold an artificial
intelligence.
For example,
o A spying aeroplane takes photographs, which are used to figure out
spatial information or map of the areas.
o Doctors use clinical expert system to diagnose the patient.
o Police use computer software that can recognize the face of criminal
with the stored portrait made by forensic artist.
Speech Recognition: Some intelligent systems are capable
of hearing and comprehending the language in terms of
sentences and their meanings while a human talks to it. It can
handle different accents, slang words, noise in the
background, change in human’s noise due to cold, etc.
Proving a theorem
Playing chess
Plan some surgical operation
Driving a car in traffic
Creating some system which can exhibit intelligent behavior, learn new
things by itself, demonstrate, explain, and can advise to its user.
Advantages of Artificial Intelligence
Following are some main advantages of Artificial Intelligence:
High Accuracy with less errors: AI machines or systems are prone to less errors and high
accuracy as it takes decisions as per pre-experience or information.
High-Speed: AI systems can be of very high-speed and fast-decision making, because of
that AI systems can beat a chess champion in the Chess game.
High reliability: AI machines are highly reliable and can perform the same action multiple
times with high accuracy.
Useful for risky areas: AI machines can be helpful in situations such as defusing a bomb,
exploring the ocean floor, where to employ a human can be risky.
Digital Assistant: AI can be very useful to provide digital assistant to the users such as AI
technology is currently used by various E-commerce websites to show the products as per
customer requirement.
Useful as a public utility: AI can be very useful for public utilities such as a self-driving
car which can make our journey safer and hassle-free, facial recognition for security
purpose, Natural language processing to communicate with the human in human-
language, etc.
Disadvantages of Artificial Intelligence
High Cost: The hardware and software requirement of AI is very costly as it requires lots
Can't think out of the box: Even we are making smarter machines with AI, but still they
cannot work out of the box, as the robot will only do that work for which they are
trained, or programmed.
No feelings and emotions: AI machines can be an outstanding performer, but still it does
not have the feeling so it cannot make any kind of emotional attachment with human,
and may sometime be harmful for users if the proper care is not taken.
getting more dependent on devices and hence they are losing their mental capabilities.
No Original Creativity: As humans are so creative and can imagine some new ideas but
still AI machines cannot beat this power of human intelligence and cannot be creative
and imaginative.
PROBLEMS, PROBLEM SPACES AND SEARCH
To solve the problem of building a system you should take the following steps:
2. Scrutinize the problem carefully, for some features may have a central affect on
the chosen method of solution.
4. Choose the best solving techniques for the problem to solve a solution.
• a set of operations. These could be ill-defined and may evolve during problem
solving.
A ‘problem space’ is an abstract space.
A problem space encompasses all valid states that can be generated by the
application of any combination of operators on any combination of objects.
The problem space may contain one or more solutions.
A solution is a combination of operations and objects that achieve the goals.
• A ‘search’ refers to the search for a solution in a problem space.
Search proceeds with different types of ‘search control strategies’.
The depth-first s search and breadth-first search are the two common
search strategies.
General Problem Solving
Problem solving has been the key area of concern for Artificial Intelligence.
Problem definitions
a. a.Define a state space that contains all the possible configurations of the relevant
objects, including some impossible ones.
b. b. Specify one or more states that describe possible situations, from which the
problem solving process may start. These states are called initial states.
c. c. Specify one or more states that would be acceptable solution to the problem
5. x,y, x+y>=4^y>0 Pour water from 3 lit jug into 4 lit is full.
Jug an fill 4 lit full.
0 0
0 3
3 0
3 3
4 2
0 2
2 0
Criteria for success:
Task define clearly
Test the possible solution
Solution is analysis
Implement procedure of define task
Design Experiment
Algorithm
Analyze Implement
PRODUCTION SYSTEMS
Production systems provide appropriate structures for performing and
describing search processes. A production system has four basic
components as enumerated below.
A set of rules each consisting of a left side that determines the
applicability of the rule and a right side that describes the operation to
be performed if the rule is applied.
database of current facts established during the process of inference
A control strategy that specifies the order in which the rules will be
compared with facts in the database and also specifies how to resolve
conflicts in selection of several rules or selection of more facts.
A rule firing module.
The production rules operate on the knowledge database.
Algorithm:
B C
Push the root node on a stack
While (stack is not empty)
D E F G
(a) pop a node
If it is goal node
Push all the children of node in the stack ABDECFG
Return failure.
ADVANTAGE OF DFS:
DISADVANTAGE OF DFS:
Algorithm:
ABCDEFG
ADVANTAGES OF BFS:
(i) Used to find the shortest path between vertices.
(ii) Always find optimal solution.
(iii) There is nothing lie useless path in BFS. Since, it search as level by
level.
(iv) Find the closet goal in less time.
DISADVANTAGES OF BFS:
(i) All of the connected vertices must be store is memory so consumes
more memory.