Artificial Intelligence - Ch-1-1
Artificial Intelligence - Ch-1-1
Introduction to AI
Syllabus
MAN
1.1
Introduction to Artificial
Intelligence
Scanned with
CamScanner
Introduction of Artificial Intelligence (GTU)
1-2
Introduction to Al
1.1.
1
AI
Approache
s
1.
Acting
humanly
2.
Thinking
humanly
3.
Thinking rationally
4.
Acting
rationally
Human
Human
interrogator
Al System
Scanned with
CamScanner
-
Introduction of Artificial
Intelligence (GTU) 1-3
Introduction to AI
3. Automated Reasoning : This unit enables to analyze the
knowledge
stored in the system and makes new inferences to answer
questions. Machine Learning : This unit learns new
knowledge by taking current input from the environment
and adapts to new circumstances,
thereby enhancing the knowledgebase of the system. To
pass total Turing test, the computer will also need to have
computer vision, which is required to perceive objects from
the environment and Robotics, to manipulate those objects.
Capabilities a Computer needs to
Possess
Natural
Language
Processing
Knowledge
Representation |
Automated Reasoning
Machine
Leaming
Computer
vision
Robotics
TechKnowled
ge
Scanned with
CamScanner
Introduction of Artificial Intelligence (GTU) 1-4
Introduction to Al
Definition 1:
“The study of mental faculties through the
use of computational models”. (Charniak and
McDermott, 1985) “The study of the computations
that make it possible to perceive, reason, and act”.
Definition 2:
The laws of thought are supposed to implement the operation of the
mind and their study initiated the field called logic. It provides
precise notations to express facts of the real world. It also
includes reasoning and “right thinking that is irrefutable
thinking process. Also computer programs based on those
logic notations were
developed to create intelligent systems. There are two
problems in this approach : 1. This approach is not suitable to
use when 100% knowledge is not available
for any problem.
TechXnsu
ledgi
Definition 1:
“Computational Intelligence is the study of the
design of intelligent agents”. (Poole et at, 1998)
“Al ... is concerned with intelligent behaviour in
artifacts”. (Nilsson, 1998)
Definition
2:
Rational Agent
Tech
Knowledgi
•
The term Artificial Intelligence (AI) was introduced by John
McCarthy, in 1955. He defined artificial intelligence as “The
science and engineering of making intelligent machines”.
Mathematician Alan Turing and others presented a study based
on 103 driven computational theories which showed that any
computer program can work by simply shuffling “0” and “1”
(i.e. electricity off and electrica on). Also, during that time
period, research was going on in the areas Automations,
Neurology, Control theory, Information theory, etc.
Teclado
Scanned with
CamScanner
Introduction of Artificial Intelligence (GTU)
1-7
Introduction to AI
This inspired a group of researchers to think about the
possibility of creating an electronic brain. In the year 1956 a
conference was conducted at the campus of Dartmouth College
where the field of artificial intelligence research was founded.
This conference was attended by John McCarthy, Marvin
Minsky, Allen Newell and Herbert Simon, etc., who are
supposed to be the pioneers of artificial intelligence research for
a very long time. During that time period, Artificial Intelligence systems
were developed by these researchers and their students. Let's see
few examples of such artificial intelligent systems: o Game
- Checkers : Computer played as an opponent,
Education - Algebra : For solving word problems, O
Education - Math : Proving logical theorems, o Education
- Language : Speaking English, etc. During that time period
these founders predicted that in few years machines can do
any work that a man can do, but they failed to recognize the
difficulties which can be faced. Meanwhile we will see the ideas,
viewpoints and techniques which Artificial Intelligence has
inherited from other disciplines. They can be given as follows:
1. Philosophy : Theories of reasoning and learning have
emerged, along
with the view port that the mind is constituted by the operation of
a
physical system. 2. Mathematical : Formal theories of
logic, probability, decision making
and computation have emerged. 3. Psychology :
Psychology has emerged tools to investigate the human
mind and a scientific language which are used to express the
resulting
theories. 4. Linguistic : Theories of the structure and
meaning of language have
emerged. Computer science : The tools which can make
artificial intelligence a reality has emerged.
5.
TechKasuledgi Patirali AS
Scanned with
CamScanner
EF
Introduction of Artificial Intelligence
(GTU)
1-8
Introduction to AI
1.3
AI Problems
Tech
Raswledgi
**11e arra
Scanned with
CamScanner
Introduction to Al
Introduction of Artificial Intelligence
(GTU) 1.9 8-Puzzle
2.
4
| 12
3
1
1
6
|7| 8
Initial State
Goal State
Fig. 1.3.2
3.
N-queen
problem
Tech
Knowledgi
utili II
River
River
Tecklacel
edi
Scanned with
CamScanner
Introduction of Artificial Intelligence (GTU)
1-11
Introduction to AI
1.4
AI Techniques
Pulitan
Scanned with
CamScanner
Introduction of Artificial Intelligence (GTU)
1-12
Introduction to AL
Finite state model : It consists of a set of states, a set of input
events and the relations between them. Based on the current
state and an input event, the next state of the model can be
determined. Computation model : It is a finite state
machine which includes a set of states, a start state, a
transition function and an input alphabet. The transition
function provides mapping between input symbols and current
states to a next state. Transition relation : If a pair of states
(S, S') is such that one move takes the system from S to S,
then the transition relation is represented by S → S.
State-transition system is called deterministic if every
state has at most one successor; it is called
non-deterministic if at least one state has more than one
successor. Representation of the computational system
includes start and end state descriptions and a set of
possible transition rules that might be
applied. Problem is to find the appropriate
transition rules. Example:
Problem of Towers of Hanoi with two discs. The state
transitions are
shown for the
same. Problem
Definition
Initial state
Goal state
ДТІ
ТА
Fig.
1.4.1
Move the disks from the leftmost post to the rightmost
post with following conditions : o A large disk can
never be put on top of a smaller one; o Only one disk can
be moved at a time, from one peg to another; 0 The
middle post is only to be used for intermediate storage.
Complete the task in the smallest number of moves
possible. Possible state transitions in the Towers of Hanoi
puzzle with 2 disks.
Techkn
outati
Scanned with
CamScanner
7
Introduction of Artificial Intelligence (GTU)
1-13
AN
Introduction to AI
(1,2) 0
0
123.00
i
12000
LITUM 121
121 0 Lt
( [0] [1, 2]
[] [1, 2) |
[ 1U (2) (1) (2) (
Fig. 1.4.2
Depth First
Search
Hill Climbing
Breadth First
Search
Best First Search
Uniform Cost
Search
A*
Search
Depth Limited
Search
Iterative deepening
A*
TechKnowled
ge
ANALAN
Scanned with
CamScanner
Introduction of Artificial Intelligence
(GTU)
1-14
Introduction to AL
Sr.
Informed Searching
techniques
Un-informed
Searching
Techniques
No.
Iterative Deepening
DFS
Beam
Search
Bidirectional Search
AO* Search
3.
Goal
reduction
OR
Provide for old
eage
Provide for old
eage a
Save
money o
Improve standard
of living
Work less hard
improve
standard O
And
Save money
am more
money
Eam more money
OR
Go on
strike
Improve productivity And-Or treelgraph structure
Fig. 1.4.3
Scanned with
CamScanner
Introduction of Artificial
Intelligence (GTU) 1-15
Introduction to AI
4.
The AND-OR tree structure describes following
things :
Hierarchical relationships between goals and sub-goals
o The “Earn more money", is a sub-goal of "Improve
standard of
living”, which in turn is a sub-goal of “Improve
enjoyment of life”. Alternative ways of trying to solve a
goal O The "Go on strike" and "Improve productivity" are
alternative
ways of trying to “Earn more money”. Conjoint sub-goals
o These are the goal which depends on more than one
sub-goals. O TO “Provide for old age”, not only need to
"Earn more money", but
also need to "Save
money”. Constraint
satisfaction
Constraint satisfaction is a process of generating solution
that satisfies all the specified constraints for a given
problem. There are variable which needs to get assigned
values from a specific domain.
To generate the solution it uses backtracking mechanism.
The optimal solution is the one which is generated in
minimum number of backtracks and satisfies all the
constraints, thereby assigning proper values to each of
the variable. There are multiple fields having application of
constraint satisfaction. Artificial Intelligence, Programming
Languages, Symbolic Computing,
and Computational Logic are few of
them to name. Example
N-queen problem, as in this problem the queens are the
variables to whom a position in an n * n matrix need to be
assigned, which is a value for those variables. Also the
problem states some conditions on placement of those'
queens (variable), i.e. no two queens can clash
either horizontally, vertically or diagonally. Generate and
test . It is the simplest form of searching technique.
Generate-and-test
method first generates a node in the search tree and then
checks for whether it's a goal node. It involves two processes
as shown in Fig. 1.4.4.
Tech
Knowledgå
Scanned with
CamScanner
Introduction of Artificial Intelligence (GTU)
1-16
Introduction to AI
Goal
Test
6.
Fig. 1.4.4: Generate and Test As there are many unfruitful nodes gets
generated during this process,
it's not a very efficient technique.
Example
Problem of opening a combination lock by trial and error
technique
without knowing the combination.
Rule based system
Rule based systems are the simplest and most useful
systems. In its simplest form they have set of rules, an
interpreter and input from the environment. Rules are of the
form IF<condition> THEN <action>
Change
Interprostor
Conditions
Rules Working
ESObserved
data
memory
Rulo-based
system
(b)
For example : To represent the fact that "The colour of my car is black”, the
knowledgebase will store <car, colour black> triplet.
Rule base : Rule base is the basic part of the system. It
contains all the rules. Rules are generated from the
domain knowledge and can be used or modified based on
the current observations.
1
.5.1
1. 2.
Four Classes of Production
Systems A monotonic
production system A non
monotonic production system
Tech
Knowledga
3.
4.
Introduction to AL
Introduction of Artificial Intelligence (GTU) 1-18 A
partially commutative
production system A commutative production system.
Table 1.5.1: The four categories of
production system
Monotonic Non-monotonic
Partially commutative
Theorem proving
Robot navigation
1.6
Problem
Characteristics
Technowle
dge
2.
Can the solution steps be ignored or
undone ?
Tech
Knowle
dgë
3.
Scanned with
CamScanner
-
Introduction of Artificial Intelligence (GTU)
1-20
Introduction to AI
Tech
Knowledgi
Publicati
Scanned with
CamScanner
Introduction of Artificial Intelligence (GTU)
1-21
Introduction to AI
1.7
Production System
Characteristics
Tech
Knowledge
utlications
Scanned with
CamScanner
♡
Introduction of Artificial Intelligence (GTU)
1-22 .
Introduction to Al
...Nonm
Tech Knowledge
Scanned with
CamScanner
Introduction of Artificial Intelligence (GTU)
1-23
Introduction to AI
Review
Questions
Q. 1
Q.2
Q.3
Q.4
Q.5
Explain turing test designed for satisfactory
operational definition of AI. Explain various
techniques for solving problems by searching. What
are the various Al techniques ? Formulate Al
problem for N-queen puzzle. Define AI.
Q. 6
What is artificial intelligence
?
000