Module 1
Module 1
• Intelligence: It is the knowledge in operation towards the solution – how to do? How to
apply the solution?
Artificial Intelligence
Artificial intelligence is the study of how to make computers to
do things which people do better at the moment. It refers to the
intelligence controlled by a computer machine.
One View of AI is
• About designing systems that are as intelligent as humans
• Computers can be acquired with abilities nearly equal to human
intelligence
• How system arrives at a conclusion or reasoning behind selection of
actions
• How system acts and performs not so much on reasoning process.
Why Artificial Intelligence?
• Making mistakes on real-time can be costly and dangerous.
• Computers provide the perfect medium for this experimentation since they can be
programmed to simulate physical symbol system we like. The importance of the physical
symbol system hypothesis is twofold. It is a significant theory of the nature of human
intelligence and so is of great interest to psychologists.
What is an AI Technique?
• Artificial Intelligence problems span a very broad spectrum. They appear to have very little in
common except that they are hard. There are techniques that are appropriate for the
solution of a variety of these problems. The results of AI research tells that
➢ It is voluminous
➢ It is constantly changing
➢ It differs from data by being organized in a way that corresponds to the ways it will be
used.
AI technique is a method that exploits knowledge that should be represented in such a way
that:
• The knowledge captures generalizations. In other words, it is not necessary to represent each
individual situation. Instead situations that share important properties are grouped together.
• It can be understood by people who must provide it. Most of the knowledge a program has
must ultimately be provided by people in terms they understand.
• It can be easily be modified to correct errors and to reflect changes in the world and in our
world view.
• It can be used in a great many situations even if it is not totally accurate or complete.
• It can be used to help overcome its own sheer bulk by helping to narrow the range of
possibilities that must usually be considered.
• It is possible to solve AI problems without using AI techniques. It is
possible to apply AI techniques to solutions of non-AI problems
Important AI Techniques :
• Search: Provides a way of solving problems for which no more direct approach is available
as well as a framework into which any direct techniques that are available can be
embedded.
• Abstraction: Provides a way of separating important features and variations from the
many unimportant ones that would otherwise overwhelm any process
Criteria for Success (Turing Test)
• In 1950, Alan Turing proposed the method for determining whether a machine can think. His method has since
become known as the “Turing Test”.
• To conduct this test, we need two people and the machine to be evaluated.
• Turing Test provides a definition of intelligence in a machine and compares the intelligent behavior of human
being with that of a computer.
• One person A plays the role of the interrogator, who is in a separate room from the computer and the other
person.
• The interrogator can ask set of questions to both the computer Z and person X by typing questions and
receiving typed responses.
• The interrogator knows them only as Z and X and aims to determine who the person is and who the machine
is.
• The goal of machine is to fool the interrogator into believing that it is the person. If the machine succeeds we
conclude that the machine can think. The machine is allowed to do whatever it can do to fool the interrogator.
• For example, if asked the question “How much is 12,324 times 73,981?” The machine
could wait several minutes and then respond with wrong answer.
• The interrogator receives two sets of responses, but does not know which set comes from
human and which from computer.
• After careful examination of responses, if interrogator cannot definitely tell which set has
come from the computer and which from human, then the computer has passed the Turing
Test.
• The more serious issue is the amount of knowledge that a machine would need to pass
the Turing test.
Definition of AI:
• Artificial Intelligence is a branch of computer science concerned with the study
and creation of computer systems that exhibit some form of intelligence such
as systems that learn new concepts and tasks, systems that can understand a
natural language or perceive and comprehend a visual scene, or systems that
perform other types of feats that require human types of intelligence.
• To understand AI, we should understand
❑ Intelligence
❑ Knowledge
❑ Reasoning
❑ Thought
❑ Cognition: gaining knowledge by thought or perception learning
• The definitions of AI vary along two main dimensions: thought process and reasoning and
behavior.
• AI is not the study and creation of conventional computer systems. The study of the mind,
the body, and the languages as customarily found in the fields of psychology, cognitive
science, or linguistics.
• In AI, the goal is to develop working computer systems that are truly capable of performing
tasks that require high levels of intelligence.
Tic-Tac-Toe
• We present a series of three programs to play tic-tac-toe. The program series
increase in:
1. Their complexity(increases)
2. Their use of generalizations(increases)
3. The clarity of their knowledge (improves,program1 to 2 to 3)
4. The extensibility of their approach(extend the program to new games)
Thus they move toward being representations of what we call at techniques.
• Two players-human,computer
• The objective is to write a computer program in such a way that computer
wins most of the time.
Tic-tac-toe program1:
Program-2
• 2-Blank 1 X
2 0
• 3-X 3 X
• 5-0 4 0
Program 2’
• Or it will check the opponent of winning and block the chance of winning
Program 3
Problem, Problem Spaces, and Search
Problem
A problem, which can be caused for different reasons, and, if
solvable, can usually be solved in a number of different ways,
is defined in a number of different ways.
• To build a system or to solve a particular problem we need to do four things.
1. Define the problem precisely. This definition must include precise specification
of what the initial situation will be as well as what final situations constitute
acceptable solutions to the problem
3. Isolate and represent the task knowledge that is necessary to solve the problem
4. Choose the best solving technique and apply it to the particular problem.
A* Algorithm
• A* is a cornerstone name of many AI systems and has been used since it was developed in
1968 by Peter Hart; Nils Nilsson and Bertram Raphael.
• It is the combination of Dijkstra’s algorithm and Best first search. It can be used to solve many
kinds of problems
• A* search finds the shortest path through a search space to goal state using heuristic function.
This technique finds minimal cost solutions and is directed to a goal state called A* search.
• In A*, the * is written for optimality purpose. The A* algorithm also finds the lowest cost path
between the start and goal state, where changing from one state to another requires some cost.
• A* requires heuristic function to evaluate the cost of path that passes through the particular
state.
• This algorithm is complete if the branching factor is finite and every action has fixed cost.
• A* requires heuristic function to evaluate the cost of path that passes through the particular
state.
• It can be defined by following formula.