Lecture 2 Agent
Lecture 2 Agent
Lecture 2 Agent
Turing Test: Turing test can measure either an agent can work or not.
Rational Agent: A rational agent is one that acts so as to achieve the
best outcome, when there is uncertainty, the best expected outcome and
does right thing.
3
Knowledge
• Can be defined as the body of facts & principles
accumulated by humankind or the act, fact, or
state of knowing.
• True, but incomplete, much more than this
• It is having a familiarity with language, concepts,
procedures, rules, ideas, abstractions, places,
customs, facts, & associations, coupled with an
ability to use these notions effectively in
modeling different aspects of the world.
Knowledge
• The meaning of knowledge is closely related to the meaning of
intelligence.
• Intelligence requires the possession of an access to knowledge
• And a characteristic of intelligent people is that they posses much
knowledge
• Knowledge is likely stored as complex structures of interconnected
neurons.
• Symbolic representation
• Human brain Computer
• 3.3 lbs 100 gms
• 1012 neurons magnetic spots & voltage states
• 1014 bits storage 1012 bits doubling about every 3~4 years
• The gap between human & computer storage capacities is narrowing
rapidly
• Still wide gape between representation schemes & efficiencies
Knowledge
• Declarative vs. procedural
• Procedural: compiled knowledge related to the performance of some tasks
• The steps used to solve an algebraic equation
• Declarative: passive knowledge expressed as statements of facts about the
world.
• Personal data is a database
• Heuristic Knowledge: special type of knowledge used by humans to solve
complex problems.
• The knowledge used to make good judgments, or strategies, tricks, or ‘rules
of thumb’ used to simply the solution of problems.
• Heuristic s are usually acquired with much experience
Fault in a TV set
an experienced technician will not start by making numerous voltage checks
when it is clear that the sound is present but the picture is not
The high voltage flyback transformer or related component is the culprit
• May not always be correct
• But frequently/quickly can find a solution
Knowledge and Data
• Knowledge should not confused with data
• Physician treating a patient use both Knowledge & Data
• Data: record: history, measurement of vital sign, drugs
given, response to drugs,……
• Knowledge: what Physician learned from medical school,
internship, residency, specialization, practice.
• Knowledge includes & requires the use of data &
information
• It combines relationship, correlations, dependencies, &
notion of gestalt with data & information
Belief, Hypothesis, & Knowledge
Belief: define as essentially any meaningful &
coherent expression that can be represented
• It may be true or false
Hypothesis: define as a justified belief that is
not known to be true
• Thus a hypothesis is a belief which is backed
up with some supporting evidence, but it may
still be false
Knowledge: define as true justified belief
Agents
• An agent is anything that can be viewed as
perceiving its environment through sensors &
acting upon that environment through actuators
10
Agents and Environments
A software agent receives keystrokes, file contents, and network packets a
sensory inputs and acts on the environment by displaying on the screen,
writing files, and sending network packets.
11
Agents and environments
The vacuum agent perceives which square it is in and whether there is dirt in the
square.
It can choose to move left, move right, suck up the dirt, or do nothing.
One very simple agent function is the following: if the current square is dirty, then suc
otherwise, move to the other square.
14
A vacuum-cleaner agent
• The right action is the one that will cause the agent to be
most successful
To determine the mechanical state of the vehicle, it will need the usual array of
engine, fuel, and electrical system sensors. Like many human drivers, it might want
a global positioning system (GPS) so that it doesn’t get lost. Finally, it will need a
keyboard or microphone for the passenger to request a destination
PEAS
• Agent: Medical diagnosis system
• Performance measure?? Healthy patient,
minimize costs, lawsuits
• Environment?? Patient, hospital, staff
• Sensors?? Keyboard (entry of symptoms,
findings, patient's answers)
• Actuators?? Screen display (questions, tests,
diagnoses, treatments, referrals)
PEAS
• Agent: Part-picking robot
• Performance measure?? Percentage of parts
in correct bins
• Environment?? Conveyor belt with parts, bins
• Actuators?? Jointed arm and hand
• Sensors?? Camera, joint angle sensors
PEAS
• Agent: Interactive English tutor
• Performance measure??: Maximize student's
score on test
• Environment??: Set of students
• Actuators??: Screen display (exercises,
suggestions, corrections)
• Sensors??: Keyboard
Internet shopping agent
• Performance measure?? price, quality,
appropriateness, efficiency
• Environment?? current and future WWW sites,
vendors, shippers
• Actuators?? display to user, follow URL, fill in
form
• Sensors?? HTML pages (text, graphics, scripts)
Environment types
• Fully observable (vs. partially observable): An agent's
sensors give it access to the complete state of the
environment at each point in time.
Figure 2.16 Three ways to represent states and the transitions between them.
(a)Atomic representation: a state (such as B or C) is a black box with no
internal structure;
(b) Factored representation: a state consists of a vector of attribute
values; values can be Boolean, real valued, or one of a fixed set of symbols.
(c) Structured representation: a state includes objects, each of which may
have attributes of its own as well as relationships to other objects
How the components of agent programs work
Searching algorithm
Game Playing
Hidden Markov Model
Constraint Satisfaction Problem
Propositional Logic
Planning
Bayesian Network
Genetic Algorithm
Machine Learning
First Order Logic
Knowledge bsed learning
FOPL
Confession
It is possible that some sentences or some information were
included in these slides without mentioning exact references.
I am sorry for violating rules of intellectual property. When
I will have a bit more time, I will try my best to avoid such
things.
These slides are only for students in order to give them very
basic concepts about the giant, “Artificial Intelligence”, not
for experts.
Since I am not a network expert, these slides could have
wrong/inconsistent information…I am sorry for that.
Students are requested to check references and Books, or to
talk to Network engineers.