Machine Learning - Notes
Machine Learning - Notes
UNIT I INTRODUCTION
Introduction–Definition – Foundation and History of AI - Future of Artificial Intelligence –
Characteristics of Intelligent Agents–Agents and Environments – Nature of Environments –
Structure of Agents - Typical Intelligent Agents
UNIT I / PART- A
1. Define Artificial Intelligence.
The study of how to make computers do things at which at the moment, people are better.
Systems that think like humans.
Systems that act like humans.
Systems that think rationally.
Systems that act rationally.
2. Differentiate Natural Intelligence from Artificial Intelligence
Natural Intelligence Artificial Intelligence
Exhibited by human beings Programmed by humans in machines
Highly refined and no electricity required to It exists in computer system, so electrical
generate output. energy is required for activation of output.
No one is an expert. We can get better Expert system exists , which collect ideas
solution from one another of human beings
3. What is meant by a Turing Test?
A Turing Test is a method of inquiry in artificial intelligence (AI) for determining
whether or not a computer is capable of thinking like a human being. The test is named
after Alan Turing.
4. What are the capabilities, computer should possess to pass Turing test?
natural language processing -to enable it to communicate successfully in English
knowledge representation - to store what it knows or hears
automated reasoning - to use the stored information to answer questions and
to draw new conclusions
machine learning - to adapt to new circumstances and to detect and extrapolate
patterns.
5. What is meant by Total Turing Test ?
The test which includes a video signals so that the interrogator can test the perceptual
abilities of the machine is termed Total turing test. The Turing Test is a deceptively simple
method of determining whether a machine can demonstrate human intelligence. If a machine
can engage in a conversation with a human without being detected as a machine, it has
demonstrated human intelligence.
6. What are the capabilities computers needs to pass total Turing test?
Computer vision - to perceive objects.
Robotics - to manipulate objects and move about.
7. What are software agents?
An agent is anything that can be viewed as perceiving its environment through sensors and
acting upon that environment through actuators. A software agent receives keystrokes, file
contents and network packets as sensory inputs and acts upon the environment by
displaying on the screen, writing files, and sending network packets.
8. What is a rational agent?
An agent which acts in a way that is expected to maximize to its performance measure,
given the evidence provided by what it perceived and whatever built-in knowledge it
has. Such intelligent agents are also known as Rational Agents. Rational agents in AI are
closely related to intelligent agents, autonomous software programs that display
intelligence.
St. Joseph’s College of Engineering Page 1 of 16
DS1303-Introduction to Artificial Intelligence Department of ADS & AML 2022-2023
9. Why are condition-action rules important in the design of an agent?
Rules are used to represent relationships. Rule-based knowledge representation employs
IF condition (premise antecedent) THEN action statements. (goal consequent)
For example: IF the heating element glows AND the bread is always dark
THEN the toaster thermostat is broken
When the problem situation matches the IF part of a rule, the action specified by the
THEN part of the rule is performed.
10. Give the structure of an agent in an environment
Structure of an agent is as follows
11. State the concept of rationality (or) List down the characteristics of rational agents?
An artificial intelligence system is rational if it is able to do the right thing based on what
it knows or has learned.
What is rational at any given time depends on four things:
The performance measure that defines the criterion of success.
The agent's prior knowledge of the environment.
The actions that the agent can perform.
The agent's percept sequence to date
12. How to measure the performance of an agent?
Performance measure of an agent is the criteria, which determines how successful an
agent is. Performance measure of an agent is obtained by analyzing two tasks. They are
How and When actions. Thus the performance of an agent can be measured.
13. Define Omniscience and information Gathering.
An Omniscience agent knows the actual outcome of its actions and can act accordingly.
But omniscience is impossible in reality. Doing actions in order to modify future precepts
sometimes called information gathering.
14. What is important for task environment?
The following are the important parameters for task environment
Performance measure – evaluates the behaviour of the agent in an environment.
Environment - Set of students testing Agency
Actuators - Display exercises suggestions, corrections.
Sensors - Keyboard entry
15. List the properties of environments.
The various properties of environment are as follows
Fully Observable Vs Partially Observable
Deterministic Vs Stochastic.
Episodic Vs Sequential.
Static Vs Dynamic.
Discrete Vs Continuous.
Single Agent Vs Multi agent.
Competitive Multi agent.
Co – operative Multi agent.
St. Joseph’s College of Engineering Page 2 of 16
DS1303-Introduction to Artificial Intelligence Department of ADS & AML 2022-2023
16. List the different type of agents.
Agents can be grouped into four classes based on their degree of perceived intelligence
and capability
Simple Reflex Agents
Model-Based Reflex Agents
Goal-Based Agents
Utility-Based Agents
Learning Agent
17. Give Structure of Simple Reflex Agent
MONEY
(ii) TWO
+ TWO
FOUR
UNIT III KNOWLEDGE REPRESENTATION
First Order Predicate Logic – Prolog Programming – Unification – Forward Chaining-
Backward Chaining – Resolution – Knowledge Representation - Ontological Engineering-
Categories and Objects – Events - Mental Events and Mental Objects - Reasoning Systems
for Categories - Reasoning with Default Information
UNIT III / PART - A
St. Joseph’s College of Engineering Page 7 of 16
DS1303-Introduction to Artificial Intelligence Department of ADS & AML 2022-2023
1. Define Universal quantifier
The expression: ∀x P(x), denotes the universal quantification of the atomic formula P(x).
Translated into the English language, the expression is understood as: "For all x, P(x)
holds" or "for every x, P(x) holds". ∀ is called the universal quantifier, and ∀x means all
the objects x in the universe.
2. Represent the following sentence in predicate form “All the children likes sweets”.
First-order logic is also known as Predicate logic or First-order predicate logic.
∀x Likes (x,sweets)
3. What is first-order logic?
The first-order logic is sufficiently expressive to represent a good deal of our commonsense
knowledge. It also either subsumes or forms the foundation of many other representation
languages.
4. Define Existential quantifiers.
The expression: ∈x P(x), denotes the existential quantification of P(x). Translated into the
English language, the expression could also be understood as: "There exists an x such
that P(x)" ∈ is called the existential quantifier, and ∈x means at least one object x in the
universe.
5. What is Prolog?
PROLOG (PROgramming in LOGic) is a logic programming language. It is based on the
first-order predicate calculus. A PROLOG interpreter systematically makes inferences
from a set of facts and rules specified in Horn clause notation, a notation equivalent to
first order predicate calculus. PROLOG is based on a proof procedure known as
resolution theorem proving, which was developed in 1965 by J. A. Robinson. PROLOG
uses a declarative programming approach.
6. What are the elements and symbols of First order logic.
The basic syntactic elements of first-order logic are the symbols that stand for objects,
relations, and functions. The symbols, therefore, come in three kinds: constant
symbols, which stand for objects; predicate symbols, which stand for relations; and
function symbols, which stand for functions.
7. Define terms.
A term is a logical expression that refers to an object. Constant symbols are therefore
terms, but it is not always convenient to have a distinct symbol to name every object. The
whole term refers to the object that appears as the (n+1)th entry in that type in the relation
whose first n elements are objects referred to by the arguments.
8. What are the three families of First-order inference algorithms?
The three families of First-order inference algorithms are,
Forward chaining and its application to deductive databases and production
systems
Backward chaining and logical programming systems
Resolution-based theorem proving.
9. Define Atomic sentence
An Atomic sentence is formed from a predicate symbol optionally followed by an
parenthesized list of terms such as
Brother (Richard, John)
This states that Richard is the brother of John. An atomic sentence is a type of declarative
sentence which is either true or false (may also be referred to as a proposition, statement
or truth bearer) and which cannot be broken down into other simpler sentences.