Artificial Intelligence Tutorial
Artificial Intelligence Tutorial
Audience
This tutorial is prepared for the students at beginner level who aspire to learn Artificial
Intelligence.
Prerequisites
The basic knowledge of Computer Science is mandatory. The knowledge of Mathematics,
Languages, Science, Mechanical or Electrical engineering is a plus.
All the content and graphics published in this e-book are the property of Tutorials Point (I)
Pvt. Ltd. The user of this e-book is prohibited to reuse, retain, copy, distribute or republish
any contents or a part of contents of this e-book in any manner without written consent of
the publisher.
We strive to update the contents of our website and tutorials as timely and as precisely as
possible, however, the contents may contain inaccuracies or errors. Tutorials Point (I) Pvt.
Ltd. provides no guarantee regarding the accuracy, timeliness or completeness of our website
or its contents including this tutorial. If you discover any errors on our website or in this
tutorial, please notify us at [email protected].
i
Artificial Intelligence
Table of Contents
About the Tutorial ......................................................................................................................................... i
Audience ....................................................................................................................................................... i
Prerequisites ................................................................................................................................................. i
1. OVERVIEW OF AI ...................................................................................................................... 1
Philosophy of AI ........................................................................................................................................... 1
Goals of AI .................................................................................................................................................... 1
Applications of AI ......................................................................................................................................... 3
History of AI ................................................................................................................................................. 4
Types of Intelligence..................................................................................................................................... 6
ii
Artificial Intelligence
Rationality .................................................................................................................................................. 15
iii
Artificial Intelligence
Steps in NLP................................................................................................................................................ 35
8. EXPERT SYSTEMS.................................................................................................................... 40
Inference Engine......................................................................................................................................... 42
9. ROBOTICS .............................................................................................................................. 47
iv
Artificial Intelligence
12. AI TERMINOLOGY................................................................................................................... 62
v
1. Overview of AI Artificial Intelligence
Since the invention of computers or machines, their capability to perform various tasks went
on growing exponentially. Humans have developed the power of computer systems in terms
of their diverse working domains, their increasing speed, and reducing size with respect to
time.
A branch of Computer Science named Artificial Intelligence pursues creating the computers
or machines as intelligent as human beings.
AI is accomplished by studying how human brain thinks, and how humans learn, decide, and
work while trying to solve a problem, and then using the outcomes of this study as a basis of
developing intelligent software and systems.
Philosophy of AI
While exploiting the power of the computer systems, the curiosity of human, lead him to
wonder, “Can a machine think and behave like humans do?”
Thus, the development of AI started with the intention of creating similar intelligence in
machines that we find and regard high in humans.
Goals of AI
To Create Expert Systems: The systems which exhibit intelligent behavior, learn,
demonstrate, explain, and advice its users.
To Implement Human Intelligence in Machines: Creating systems that
understand, think, learn, and behave like humans.
6
Artificial Intelligence
Out of the following areas, one or multiple areas can contribute to build an intelligent system.
7
Artificial Intelligence
What is AI Technique?
In the real world, the knowledge has some unwelcomed properties:
AI Technique is a manner to organize and use the knowledge efficiently in such a way that:
AI techniques elevate the speed of execution of the complex program it is equipped with.
Applications of AI
AI has been dominant in various fields such as:
Gaming
AI plays crucial role in strategic games such as chess, poker, tic-tac-toe, etc., where
machine can think of large number of possible positions based on heuristic knowledge.
Natural Language Processing
It is possible to interact with the computer that understands natural language spoken
by humans.
Expert Systems
There are some applications which integrate machine, software, and special
information to impart reasoning and advising. They provide explanation and advice to
the users.
Vision Systems
These systems understand, interpret, and comprehend visual input on the computer.
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.
8
Artificial Intelligence
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.
Handwriting Recognition
The handwriting recognition software reads the text written on paper by a pen or on
screen by a stylus. It can recognize the shapes of the letters and convert it into editable
text.
Intelligent Robots
Robots are able to perform the tasks given by a human. They have sensors to detect
physical data from the real world such as light, heat, temperature, movement, sound,
bump, and pressure. They have efficient processors, multiple sensors and huge
memory, to exhibit intelligence. In addition, they are capable of learning from their
mistakes and they can adapt to the new environment.
History of AI
Here is the history of AI during 20th century:
Karel Čapek’s play named “Rossum's Universal Robots” (RUR) opens in London,
1923
first use of the word "robot" in English.
1943 Foundations for neural networks laid.
1945 Isaac Asimov, a Columbia University alumni, coined the term Robotics.
Alan Turing introduced Turing Test for evaluation of intelligence and published
1950 Computing Machinery and Intelligence. Claude Shannon published Detailed
Analysis of Chess Playing as a search.
John McCarthy coined the term Artificial Intelligence. Demonstration of the first
1956
running AI program at Carnegie Mellon University.
9
Artificial Intelligence
The Assembly Robotics group at Edinburgh University built Freddy, the Famous
1973 Scottish Robot, capable of using vision to locate and assemble models.
1979 The first computer-controlled autonomous vehicle, Stanford Cart, was built.
1985
Harold Cohen created and demonstrated the drawing program, Aaron.
The Deep Blue Chess Program beats the then world chess champion, Garry
1997 Kasparov.
10
2. IntelligenT Systems Artificial Intelligence
While studying artificially intelligence, you need to know what intelligence is. This chapter
covers Idea of intelligence, types, and components of intelligence.
What is Intelligence?
The ability of a system to calculate, reason, perceive relationships and analogies, learn from
experience, store and retrieve information from memory, solve problems, comprehend
complex ideas, use natural language fluently, classify, generalize, and adapt new situations.
Types of Intelligence
As described by Howard Gardner, an American developmental psychologist, the Intelligence
comes in multifold:
11
Artificial Intelligence
Mass
Interpersonal The ability to recognize and make distinctions among
Communicators,
intelligence other people’s feelings, beliefs, and intentions.
Interviewers
You can say a machine or a system is artificially intelligent when it is equipped with at
least one and at most all intelligences in it.
12
Artificial Intelligence
13