SlideShare a Scribd company logo
1 of 69
IT201 Basics of Intelligent
Systems
Text books:
[T1] Madisetti Vijay and Bahga Arshdeep, Internet of Things (A Hands-on-Approach), 1st Edition,
VPT, 2014.
[T2] Buyya Raj Kumar, Vecchiola Christian & Selvi S. Thamarai , Mastering Cloud Computing, McGraw
Hill Publication, New Delhi, 2013.
[T3] Engelbrecht Andries P., Computational Intelligence: An Introduction, Wiley.
Reference Books:
[R1] Raj Pethuru and Raman Anupama C., The Internet of Things: Enabling Technologies, Platforms,
and Use Cases, CRC Press.
[R2] Konar Amit, Computational Intelligence: Principles, Techniques and Applications, Springer. (R2)
[R3] Russel Norvig Artificial Intelligence A Modern Approah, 2nd edition, Prentice Hall
Dr. Shripal Vijayvargiya, Dr. Vishwambhar Pathak, Dept of CSE, BITMESRA Jaipur Campus
Module I
AI Concepts
• Introduction to AI and Intelligent Agents
• AI problems and Solution approaches
• Problem solving using Search and Heuristics
• AI Knowledge-base: creation, updation and
reasoning,
• Broad category of branches in AI and
intelligent Systems . (8 L)
Module I : AI Concepts- Introduction to AI
https://www.cs.utexas.edu/~mooney/cs343/slide-handouts/intro.4.pdf
 Definition of AI- Art of designing Systems that { think like humans +
think rationally + act like humans + act rationally }
 Thinking Humanly: Cognitive Modelling- Interdisciplinary field (AI,
psychology, linguistics, philosophy, anthropology) that tries to form
computational theories of human cognition
 Thinking Rationally : Laws of Thought- Formalize “correct”
reasoning using a mathematical model (e.g. of deductive reasoning)
 Acting Humanly: The Turing Test - If the response of a computer to
an unrestricted textual natural-language conversation cannot be
distinguished from that of a human being then it can be said to be
intelligent
 Acting Rationally: Rational Agents- rationality involves maximizing
goals within the computational and other resources available.
Module I : AI Concepts- Introduction to AI
https://www.cs.utexas.edu/~mooney/cs343/slide-handouts/intro.4.pdf
 Foundations of AI: Philosophy, Mathematics, Psychology; Computer
Science; Linguistics
 Expert Systems: detailed knowledge of the specific domain can help
control search and lead to expert level performance for restricted tasks
 Typical Applications:
 Industrial Applications: Character and hand-writing recognition;
Speech recognition; Processing credit card applications; Financial
prediction; Chemical process control;
 Intelligent agents and Internet applications (softbots, believable
agents, intelligent information access);
 Scheduling/configuration applications (Successful companies: I2, Red
Pepper, Trilogy)
AI = “Thinking Humanly”
• Get inside the actual working of human minds.
• Two ways to do that
– Through Introspection- to catch our own thoughts as
they go by.
– Through psychological experiments
• If the program's input/output and timing behaviors match
corresponding human behaviors, that is evidence that some of
the program's mechanisms could also be operating in humans
• Cognitive Science: brings together computer
models from AI and experimental techniques
from psychology to try to construct precise and
testable theories of the human mind.
AI= “Thinking Rationally”: “Law of Thought”
• Aristotle first codified “right thinking” i.e. perfect
reasoning process.
• He proposed syllogisms, that provided patterns for
argument structures that always yielded correct
conclusions when given correct premises-
– e.g. "Socrates is a man; all men are mortal; therefore, is
mortal."
• These laws of thought were LOGIC supposed to govern
the operation of the mind; their study initiated the
field called logic.
• Logical notations provided by Propositional calculus
and Predicate logic can be programmed using
languages like LISP, PROLOG etc.
AI = “Acting Humanly”- The Turing Test approach (1950)
• Was designed to provide a satisfactory operational definition of
intelligence.
• The computer passes the test if a human interrogator, after posing some
written questions, cannot tell whether the written responses come from
a person or not.
• For programming a computer to pass the test, the computer would need
to possess the following 6 capabilities:
– natural language processing- to enable it to communicate successfully in
English/specific language
– 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
– computer vision to perceive objects
– robotics to manipulate objects and move about
• Total Turing Test- includes a video signal so that the interrogator can test
the subject's perceptual abilities, as well as the opportunity for the
interrogator to pass physical objects "through the hatch." To pass the total
Turing Test, the computer will need computer vision and robotics.
AI= “Acting Rationally”
• The study of AI as rational-agent design has at
least two advantages.
– First, it is more general than the "laws of
thought"approach, because correct inference is
just one of several possible mechanisms for
achieving rationality.
– Second, it is more amenable to scientific
development than are approaches based on
human behavior or human thought because the
standard of rationality is clearly defined general.
Agents
• An agent is an entity that perceives and acts .
• So an agent is anything that can be viewed as perceiving its environment through
sensors and acting upon that environment through actuators
• Example:
– Human agent: eyes, ears, and other organs for sensors; hands, legs, mouth, and other body parts for
actuators;
– Robotic agent: cameras and infrared range finders for sensors; various motors for actuators
• An agent is completely specified by the agent function mapping percept sequences
(histories) to actions: [f: P*  A]
• The agent program runs on the physical architecture to produce f:
– agent = architecture + program
9
Acting rationally: Rational agent
• Rational behavior: For each possible percept sequence, a rational agent
should select right action.
• The right thing/action: that which is expected to maximize its
performance measure, given the evidence provided by the percept
sequence and whatever built-in knowledge the agent has. Doesn't
necessarily involve thinking – e.g., blinking reflex – but thinking should be
in the service of rational action.
• Performance measure: An objective criterion for success of an agent's
behavior.
– E.g. performance measure of a vacuum-cleaner agent could be amount of dirt
cleaned up, amount of time taken, amount of electricity consumed, amount of
noise generated, etc.
• Rationality is distinct from omniscience (all-knowing with infinite
knowledge).
• Caveat: computational limitations make perfect rationality unachievable
 design best program for given machine resources
10
…Rational agents
• Agents can perform actions in order to modify future percepts
so as to obtain useful information (information gathering,
exploration)
• An agent is autonomous if its behavior is determined by its own
experience (with ability to learn and adapt)
11
Vacuum-cleaner world
• Percepts: location and contents, e.g., [A,Dirty]
• Actions: Left, Right, Suck, NoOp
12
PEAS
• PEAS: Performance measure, Environment, Actuators,
Sensors
• Must first specify the setting for intelligent agent design
• Consider, e.g., the task of designing an automated taxi
driver:
– Performance measure: Safe, fast, legal, comfortable trip, maximize profits
– Environment: Roads, other traffic, pedestrians, customers
– Actuators: Steering wheel, accelerator, brake, signal, horn
– Sensors: Cameras, sonar, speedometer, GPS, odometer, engine
sensors, keyboard
13
PEAS
• Agent: Medical diagnosis system
– Performance measure: Healthy patient, minimize
costs, lawsuits
– Environment: Patient, hospital, staff
– Actuators: Screen display (questions, tests,
diagnoses, treatments, referrals)
– Sensors: Keyboard (entry of symptoms, findings,
patient's answers)
14
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
15
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
16
Review Questions
• Examine the AI literature to discover whether the following
tasks can currently besolved by computers:
a. Playing a decent game of table tennis (ping-pong).
b. Driving in the center of Cairo.
c. Buying a week's worth of groceries at the market.
d. Buying a week’s worth of groceries on the web.
e. Playing a decent game of bridge at a competitive level.
f. Discovering and proving new mathematical theorems.
g. Writing an intentionally funny story.
h. Giving competent legal advice in a specialized area of law.
i. Translating spoken English into spoken Swedish in real time.
j. Performing a complex surgical operation.
Overview of Steps of System Design (additional related topic)
https://nptel.ac.in/courses/Webcourse-contents/IISc-BANG/System%20Analysis%20and%20Design/pdf/PPTs/mod2.pdf
• SDLC includes the following activities
1. Requirements Determinations
2. Requirements Specifications
3. Feasibility Analysis
4. Final Specifications
5. Hardware Study
6. System Design
7. System Implementation
8. System Evaluation
9. System Modification
• * Feasibility Assessment: (will guide
setting up the ASSUMPTIONS for
PEAS specification)
– Managerial feasibility
– Technical feasibility
– Financial feasibility
– Operational feasibility
– Legal viability
Agent functions and programs
• An agent is completely specified by the agent
function mapping percept sequences to
actions
• One agent function (or a small equivalence
class) is rational
• Aim: find a way to implement the rational
agent function concisely
19
Agent types
• Four basic types in order of increasing
generality:
– Simple reflex agents
– Model-based reflex agents
– Goal-based agents
– Utility-based agents
20
Simple reflex agents
21
Model-based reflex agents
22
Goal-based agents
23
Utility-based agents
24
Learning agents
25
Module I : AI Concepts- Intelligent Agents
[Russel] [http://aima.cs.berkeley.edu/algorithms.pdf]
TABLE-DRIVEN-AGENT; REFLEX-VACUUM-AGENT; SIMPLE-REFLEX-AGENT; MODEL-BASED-REFLEX-AGENT
Module I : AI Concepts- Intelligent Agents
[Russel] [http://aima.cs.berkeley.edu/algorithms.pdf]
TABLE-DRIVEN-AGENT; REFLEX-VACUUM-AGENT; SIMPLE-REFLEX-AGENT; MODEL-BASED-REFLEX-AGENT
Module I : AI Concepts- Intelligent Agents
[Russel] [http://aima.cs.berkeley.edu/algorithms.pdf]
SEARCH BASED PROBLEM SOLVING AGENTS
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.
• Deterministic (vs. stochastic): The next state of the
environment is completely determined by the current
state and the action executed by the agent. (If the
environment is deterministic except for the actions of
other agents, then the environment is strategic)
• Episodic (vs. sequential): The agent's experience is
divided into atomic "episodes" (each episode consists of
the agent perceiving and then performing a single
action), and the choice of action in each episode depends
only on the episode itself.
29
Environment types
• Static (vs. dynamic): The environment is unchanged
while an agent is deliberating. (The environment is
semidynamic if the environment itself does not
change with the passage of time but the agent's
performance score does)
• Discrete (vs. continuous): A limited number of
distinct, clearly defined percepts and actions.
• Single agent (vs. multiagent): An agent operating by
itself in an environment.
30
Problem Solving
•Rational agents need to perform sequences of actions in order
to achieve goals.
•Intelligent behavior can be generated by having a look-up table
or reactive policy that tells the agent what to do in every
circumstance, but:
- Such a table or policy is difficult to build
- All contingencies must be anticipated
•A more general approach is for the agent to have knowledge of
the world and how its actions affect it and be able to simulate
execution of actions in an internal model of the world in order
to determine a sequence of actions that will accomplish its
goals.
•This is the general task of problem solving and is typically
performed by searching through an internally modelled space
of world states.
31
Problem Solving Task
•Given:
-An initial state of the world
-A set of possible possible actions or operators that can be
performed.
-A goal test that can be applied to a single state of the world to
determine if it is a goal state.
•Find:
-A solution stated as a path of states and operators that shows
how to transform the initial state into one that satisfies the
goal test.
•The initial state and set of operators implicitly define a state
space of states of the world and operator transitions between
them. May be infinite. 32
Measuring Performance
•Path cost: a function that assigns a cost to a path,
typically by summing the cost of the individual
operators in the path. May want to find minimum
cost solution.
•Search cost: The computational time and space
(memory) required to find the solution.
•Generally there is a trade-off between path cost
and search cost and one must satisfy and find the
best solution in the time that is available.
33
Foundations of AI
• Philosophy
– Can formal rules be used to draw valid conclusions?
– How does the mental mind arise from a physical
– Where does knowledge come from?
– How does knowledge lead to action?
• Mathematics
– Can formal rules be used to draw valid conclusions?
– How does the mental mind arise from a physical brain?
– Where does knowledge come from?
– How does knowledge lead to action?
• Economics
– What are the formal rules to draw valid
– What can be computed?
– How do we reason with uncertain information?
• Neuroscience
– How should we make decisions so as to maximize payoff?
– How should we do this when others may not go along?
– How should we do this when the payoff may be in the future?
• Psychology
– How do humans and animals think and act?
• Computer Engineering
– How can we build an efficient computer?
• Control Theory and Cybernetics
– How can artifacts operate under their own control?
• Linguistics
– How does language relate to thought?
[R2. pp-VI]
Problem types
• Deterministic, fully observable  single-state problem
– Agent knows exactly which state it will be in; solution is a
sequence
• Non-observable  sensorless problem (conformant problem)
– Agent may have no idea where it is; solution is a sequence
• Nondeterministic and/or partially observable  contingency
problem
– percepts provide new information about current state
– often interleave} search, execution
• Unknown state space  exploration problem
36
Module I : AI Concepts- AI problems and Solution approaches
[Russel/ Mooney] [https://www.cs.utexas.edu/~mooney/cs343/slide-handouts/search.4.pdf]
 The general task of problem solving is typically performed by
searching through an internally modelled space of world states
 Problem Solving Task
o Given: -An initial state of the world; A set of possible possible actions or
operators that can be performed; A goal test that can be applied to a single
state of the world to determine if it is a goal state.
o Find: -A solution stated as a path of states and operators that shows how to
transform the initial state into one that satisfies the goal test.
o The initial state and set of operators implicitly define a state space of states
of the world and operator transitions between them. May be infinite.
 Measuring Performance
o Path cost: a function that assigns a cost to a path, typically by summing the
cost of the individual operators in the path. May want to find minimum cost
solution.
o Search cost: The computational time and space (memory) required to find
the solution.
o Generally there is a trade-off between path cost and search cost and one
must satisfice and find the best solution in the time that is available.
Module I : AI Concepts- Common Problems
[Russel/ Mooney] [https://www.cs.utexas.edu/~mooney/cs343/slide-handouts/search.4.pdf]
Route Finding,
8-Puzzle
8-Queen
Missionaries and cannibals
Module I : AI Concepts- Solution Approaches
[Russel/ Mooney] [https://www.cs.utexas.edu/~mooney/cs343/slide-handouts/search.4.pdf]
Search Problem
Approaches
Uninformed search,
Informed search
40
Example: Romania
• On holiday in Romania; currently in Arad.
• Flight leaves tomorrow from Bucharest
• Formulate goal:
– be in Bucharest
• Formulate problem:
– states: various cities
– actions: drive between cities
• Find solution:
– sequence of cities, e.g., Arad, Sibiu, Fagaras, Bucharest
• Path cost: Number of intermediate cities, distance traveled,
expected travel time
41
Example: Romania
42
Example: The 8-puzzle
• states? locations of tiles
• actions? move blank left, right, up, down
• goal test? = goal state (given)
• path cost? 1 per move
[Note: optimal solution of n-Puzzle family is NP-hard]
“Toy” Problems
•8-queens problem (N-queens problem)
•Missionaries and cannibals
Identity of individuals irrelevant, best to represent
state as
(M,C,B) M = number of missionaries on left bank
C = number of cannibals on left bank
B = number of boats on left bank (0 or 1)
Operators to move: 1M, 1C, 2M, 2C, 1M1C
Goal state: (0,0,0)
43
More Realistic Problems
• Route finding
• Travelling salesman problem
• VLSI layout
• Robot navigation
• Web searching
44
Searching Concepts
•A state can be expanded by generating all states that can be
reached by applying a legal operator to the state.
•State space can also be defined by a successor function that
returns all states produced by applying a single legal operator.
•A search tree is generated by generating search nodes by
successively expanding states starting from the initial state as
the root.
•A search node in the tree can contain
-Corresponding state
-Parent node
-Operator applied to reach this node
-Length of path from root to node (depth)
-Path cost of path from initial state to node 45
Expanding Nodes and Search
46
Search Algorithm
• Easiest way to implement various search
strategies is to maintain a queue of unexpanded
search nodes.
• Different strategies result from different methods
for inserting new nodes in the queue.
• Properties of search strategies
-Completeness
-Time Complexity
-Space Complexity
-Optimality
47
Search Strategies
• Uniformed search strategies (blind, exhaustive,
bruteforce) do not guide the search with any additional
information about the problem.
• Breadth-first search
• Uniform-cost search
• Depth-first search
• Depth-limited search
• Iterative deepening search
• Informed search strategies (heuristic, intelligent) use
information about the problem (estimated distance from
a state to the goal) to guide the search.
48
49
Breadth-first search
• Expand shallowest unexpanded node
• Implementation:
– fringe is a FIFO queue, i.e., new successors go at
end
–
50
Breadth-first search
• Expand shallowest unexpanded node
• Implementation:
– fringe is a FIFO queue, i.e., new successors go at
end
–
51
Breadth-first search
• Expand shallowest unexpanded node
• Implementation:
– fringe is a FIFO queue, i.e., new successors go at
end
–
52
Breadth-first search
• Expand shallowest unexpanded node
• Implementation:
– fringe is a FIFO queue, i.e., new successors go at
end
–
53
Properties of breadth-first search
• Complete? Yes (if b is finite)
• Time? 1+b+b2+b3+… +bd + b(bd-1) = O(bd+1)
• Space? O(bd+1) (keeps every node in memory)
• Optimal? Yes (if cost = 1 per step)
• Space is the bigger problem (more than time)
54
Uniform-cost search
• Expand least-cost unexpanded node
• Implementation:
– fringe = queue ordered by path cost
• Equivalent to breadth-first if step costs all equal
• Complete? Yes, if step cost ≥ ε
• Time? # of nodes with g ≤ cost of optimal solution,
O(bceiling(C*/ ε)) where C* is the cost of the optimal
solution
• Space? # of nodes with g ≤ cost of optimal solution,
O(bceiling(C*/ ε))
• Optimal? Yes – nodes expanded in increasing order of
g(n)
55
Depth-first search
• Expand deepest unexpanded node
• Implementation:
– fringe = LIFO queue, i.e., put successors at front
56
Depth-first search
• Expand deepest unexpanded node
• Implementation:
– fringe = LIFO queue, i.e., put successors at front
57
Depth-first search
• Expand deepest unexpanded node
• Implementation:
– fringe = LIFO queue, i.e., put successors at front
58
Depth-first search
• Expand deepest unexpanded node
• Implementation:
– fringe = LIFO queue, i.e., put successors at front
59
Depth-first search
• Expand deepest unexpanded node
• Implementation:
– fringe = LIFO queue, i.e., put successors at front
60
Depth-first search
• Expand deepest unexpanded node
• Implementation:
– fringe = LIFO queue, i.e., put successors at front
61
Depth-first search
• Expand deepest unexpanded node
• Implementation:
– fringe = LIFO queue, i.e., put successors at front
62
Depth-first search
• Expand deepest unexpanded node
• Implementation:
– fringe = LIFO queue, i.e., put successors at front
63
Depth-first search
• Expand deepest unexpanded node
• Implementation:
– fringe = LIFO queue, i.e., put successors at front
64
Depth-first search
• Expand deepest unexpanded node
• Implementation:
– fringe = LIFO queue, i.e., put successors at front
65
Depth-first search
• Expand deepest unexpanded node
• Implementation:
– fringe = LIFO queue, i.e., put successors at front
66
Depth-first search
• Expand deepest unexpanded node
• Implementation:
– fringe = LIFO queue, i.e., put successors at front
67
Properties of depth-first search
• Complete? No: fails in infinite-depth spaces, spaces
with loops
– Modify to avoid repeated states along path
 complete in finite spaces
• Time? O(bm): terrible if m is much larger than d
– but if solutions are dense, may be much faster than
breadth-first
• Space? O(bm), i.e., linear space!
• Optimal? No
68
Depth-limited search
= depth-first search with depth limit l, i.e., nodes at depth l have
no successors
• Recursive implementation:
IT201 Basics of Intelligent Systems-1.pptx

More Related Content

Similar to IT201 Basics of Intelligent Systems-1.pptx

Workshop on AI - introductory lecture
Workshop on AI - introductory lectureWorkshop on AI - introductory lecture
Workshop on AI - introductory lectureSubhendu Dey
 
Artificial intelligence Ch1
Artificial intelligence Ch1Artificial intelligence Ch1
Artificial intelligence Ch1kassatilahun
 
UNIT1-AI final.pptx
UNIT1-AI final.pptxUNIT1-AI final.pptx
UNIT1-AI final.pptxCS50Bootcamp
 
UNIT 1 SRMIST KTR_problem and agents.pdf
UNIT 1 SRMIST KTR_problem and agents.pdfUNIT 1 SRMIST KTR_problem and agents.pdf
UNIT 1 SRMIST KTR_problem and agents.pdfRishuRaj953240
 
A.i. ppt by suvinsh mishra
A.i. ppt by suvinsh mishraA.i. ppt by suvinsh mishra
A.i. ppt by suvinsh mishraSuvinsh Mishra
 
Artificial intelligence introduction
Artificial intelligence introductionArtificial intelligence introduction
Artificial intelligence introductionBHAGYAPRASADBUGGE
 
Unit No. 1 Artificial Intelligence Overview.pptx
Unit No. 1 Artificial Intelligence Overview.pptxUnit No. 1 Artificial Intelligence Overview.pptx
Unit No. 1 Artificial Intelligence Overview.pptxswagatkarve
 
Expert System Lecture Notes Chapter 1,2,3,4,5 - Dr.J.VijiPriya
 Expert System Lecture Notes Chapter 1,2,3,4,5 - Dr.J.VijiPriya Expert System Lecture Notes Chapter 1,2,3,4,5 - Dr.J.VijiPriya
Expert System Lecture Notes Chapter 1,2,3,4,5 - Dr.J.VijiPriyaVijiPriya Jeyamani
 
MODULE -1-FINAL (3).pptx
MODULE -1-FINAL (3).pptxMODULE -1-FINAL (3).pptx
MODULE -1-FINAL (3).pptxAbcdabcd633425
 
Artificial Intelligence and The Complexity
Artificial Intelligence and The ComplexityArtificial Intelligence and The Complexity
Artificial Intelligence and The ComplexityHendri Karisma
 
Introduction part of Artificial Intelligent
Introduction part of Artificial IntelligentIntroduction part of Artificial Intelligent
Introduction part of Artificial IntelligentKidusSeleshi1
 

Similar to IT201 Basics of Intelligent Systems-1.pptx (20)

TYBSC CS SEM 5 AI NOTES
TYBSC CS SEM 5 AI NOTESTYBSC CS SEM 5 AI NOTES
TYBSC CS SEM 5 AI NOTES
 
Workshop on AI - introductory lecture
Workshop on AI - introductory lectureWorkshop on AI - introductory lecture
Workshop on AI - introductory lecture
 
Artificial intelligence Ch1
Artificial intelligence Ch1Artificial intelligence Ch1
Artificial intelligence Ch1
 
AI CH 1d.pptx
AI CH 1d.pptxAI CH 1d.pptx
AI CH 1d.pptx
 
UNIT1-AI final.pptx
UNIT1-AI final.pptxUNIT1-AI final.pptx
UNIT1-AI final.pptx
 
UNIT 1 SRMIST KTR_problem and agents.pdf
UNIT 1 SRMIST KTR_problem and agents.pdfUNIT 1 SRMIST KTR_problem and agents.pdf
UNIT 1 SRMIST KTR_problem and agents.pdf
 
An overview on ai
An overview on aiAn overview on ai
An overview on ai
 
Lecture 1 introduction
Lecture 1   introductionLecture 1   introduction
Lecture 1 introduction
 
A.i. ppt by suvinsh mishra
A.i. ppt by suvinsh mishraA.i. ppt by suvinsh mishra
A.i. ppt by suvinsh mishra
 
Unit 2 ai
Unit 2 aiUnit 2 ai
Unit 2 ai
 
Artificial intelligence introduction
Artificial intelligence introductionArtificial intelligence introduction
Artificial intelligence introduction
 
Unit No. 1 Artificial Intelligence Overview.pptx
Unit No. 1 Artificial Intelligence Overview.pptxUnit No. 1 Artificial Intelligence Overview.pptx
Unit No. 1 Artificial Intelligence Overview.pptx
 
UNIT I - AI.pptx
UNIT I - AI.pptxUNIT I - AI.pptx
UNIT I - AI.pptx
 
Expert System Lecture Notes Chapter 1,2,3,4,5 - Dr.J.VijiPriya
 Expert System Lecture Notes Chapter 1,2,3,4,5 - Dr.J.VijiPriya Expert System Lecture Notes Chapter 1,2,3,4,5 - Dr.J.VijiPriya
Expert System Lecture Notes Chapter 1,2,3,4,5 - Dr.J.VijiPriya
 
Unit1_AI&ML (2).pptx
Unit1_AI&ML (2).pptxUnit1_AI&ML (2).pptx
Unit1_AI&ML (2).pptx
 
MODULE -1-FINAL (3).pptx
MODULE -1-FINAL (3).pptxMODULE -1-FINAL (3).pptx
MODULE -1-FINAL (3).pptx
 
CH1_AI_Lecture1.ppt
CH1_AI_Lecture1.pptCH1_AI_Lecture1.ppt
CH1_AI_Lecture1.ppt
 
Artificial Intelligence and The Complexity
Artificial Intelligence and The ComplexityArtificial Intelligence and The Complexity
Artificial Intelligence and The Complexity
 
Introduction part of Artificial Intelligent
Introduction part of Artificial IntelligentIntroduction part of Artificial Intelligent
Introduction part of Artificial Intelligent
 
Ai introduction ppt
Ai introduction pptAi introduction ppt
Ai introduction ppt
 

More from shashankbhadouria4

Artificial Neural Network.pptx
Artificial Neural Network.pptxArtificial Neural Network.pptx
Artificial Neural Network.pptxshashankbhadouria4
 
MO 2020 DS Doubly Linked List 1 AB.ppt
MO 2020 DS Doubly Linked List 1 AB.pptMO 2020 DS Doubly Linked List 1 AB.ppt
MO 2020 DS Doubly Linked List 1 AB.pptshashankbhadouria4
 
A New Multi-Level Inverter Topology With Reduced Switch.pptx
A New Multi-Level Inverter Topology With Reduced Switch.pptxA New Multi-Level Inverter Topology With Reduced Switch.pptx
A New Multi-Level Inverter Topology With Reduced Switch.pptxshashankbhadouria4
 
Birla Institute of Technology Mesra Jaipur.pptx
Birla Institute of Technology Mesra Jaipur.pptxBirla Institute of Technology Mesra Jaipur.pptx
Birla Institute of Technology Mesra Jaipur.pptxshashankbhadouria4
 
III_Data Structure_Module_1.ppt
III_Data Structure_Module_1.pptIII_Data Structure_Module_1.ppt
III_Data Structure_Module_1.pptshashankbhadouria4
 
Chap 2 Arrays and Structures.ppt
Chap 2  Arrays and Structures.pptChap 2  Arrays and Structures.ppt
Chap 2 Arrays and Structures.pptshashankbhadouria4
 
Chap 4 List of Data Structure.ppt
Chap 4 List of Data Structure.pptChap 4 List of Data Structure.ppt
Chap 4 List of Data Structure.pptshashankbhadouria4
 
SUmmer Training PPT FINAL.pptx
SUmmer Training PPT FINAL.pptxSUmmer Training PPT FINAL.pptx
SUmmer Training PPT FINAL.pptxshashankbhadouria4
 
MO 2020 DS Applications of Linked List 1 AB.ppt
MO 2020 DS Applications of Linked List 1 AB.pptMO 2020 DS Applications of Linked List 1 AB.ppt
MO 2020 DS Applications of Linked List 1 AB.pptshashankbhadouria4
 
III_Data Structure_Module_1.pptx
III_Data Structure_Module_1.pptxIII_Data Structure_Module_1.pptx
III_Data Structure_Module_1.pptxshashankbhadouria4
 
Chap 2 Arrays and Structures.pptx
Chap 2  Arrays and Structures.pptxChap 2  Arrays and Structures.pptx
Chap 2 Arrays and Structures.pptxshashankbhadouria4
 

More from shashankbhadouria4 (20)

EC203DSD - Module 5 - 3.ppt
EC203DSD - Module 5 - 3.pptEC203DSD - Module 5 - 3.ppt
EC203DSD - Module 5 - 3.ppt
 
Artificial Neural Network.pptx
Artificial Neural Network.pptxArtificial Neural Network.pptx
Artificial Neural Network.pptx
 
MO 2020 DS Doubly Linked List 1 AB.ppt
MO 2020 DS Doubly Linked List 1 AB.pptMO 2020 DS Doubly Linked List 1 AB.ppt
MO 2020 DS Doubly Linked List 1 AB.ppt
 
MO 2020 DS Stacks 3 AB.ppt
MO 2020 DS Stacks 3 AB.pptMO 2020 DS Stacks 3 AB.ppt
MO 2020 DS Stacks 3 AB.ppt
 
A New Multi-Level Inverter Topology With Reduced Switch.pptx
A New Multi-Level Inverter Topology With Reduced Switch.pptxA New Multi-Level Inverter Topology With Reduced Switch.pptx
A New Multi-Level Inverter Topology With Reduced Switch.pptx
 
Birla Institute of Technology Mesra Jaipur.pptx
Birla Institute of Technology Mesra Jaipur.pptxBirla Institute of Technology Mesra Jaipur.pptx
Birla Institute of Technology Mesra Jaipur.pptx
 
EE306_EXP1.pptx
EE306_EXP1.pptxEE306_EXP1.pptx
EE306_EXP1.pptx
 
III_Data Structure_Module_1.ppt
III_Data Structure_Module_1.pptIII_Data Structure_Module_1.ppt
III_Data Structure_Module_1.ppt
 
Chap 6 Graph.ppt
Chap 6 Graph.pptChap 6 Graph.ppt
Chap 6 Graph.ppt
 
Chap 5 Tree.ppt
Chap 5 Tree.pptChap 5 Tree.ppt
Chap 5 Tree.ppt
 
Chap 2 Arrays and Structures.ppt
Chap 2  Arrays and Structures.pptChap 2  Arrays and Structures.ppt
Chap 2 Arrays and Structures.ppt
 
Chap 4 List of Data Structure.ppt
Chap 4 List of Data Structure.pptChap 4 List of Data Structure.ppt
Chap 4 List of Data Structure.ppt
 
SUmmer Training PPT FINAL.pptx
SUmmer Training PPT FINAL.pptxSUmmer Training PPT FINAL.pptx
SUmmer Training PPT FINAL.pptx
 
RVPN TRAINING PPT.pptx
RVPN TRAINING PPT.pptxRVPN TRAINING PPT.pptx
RVPN TRAINING PPT.pptx
 
MODULE 1.pptx
MODULE 1.pptxMODULE 1.pptx
MODULE 1.pptx
 
MODULE 1.pptx
MODULE 1.pptxMODULE 1.pptx
MODULE 1.pptx
 
MO 2020 DS Applications of Linked List 1 AB.ppt
MO 2020 DS Applications of Linked List 1 AB.pptMO 2020 DS Applications of Linked List 1 AB.ppt
MO 2020 DS Applications of Linked List 1 AB.ppt
 
MO 2020 DS Stacks 1 AB.ppt
MO 2020 DS Stacks 1 AB.pptMO 2020 DS Stacks 1 AB.ppt
MO 2020 DS Stacks 1 AB.ppt
 
III_Data Structure_Module_1.pptx
III_Data Structure_Module_1.pptxIII_Data Structure_Module_1.pptx
III_Data Structure_Module_1.pptx
 
Chap 2 Arrays and Structures.pptx
Chap 2  Arrays and Structures.pptxChap 2  Arrays and Structures.pptx
Chap 2 Arrays and Structures.pptx
 

Recently uploaded

Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...babafaisel
 
VIP Call Girl Amravati Aashi 8250192130 Independent Escort Service Amravati
VIP Call Girl Amravati Aashi 8250192130 Independent Escort Service AmravatiVIP Call Girl Amravati Aashi 8250192130 Independent Escort Service Amravati
VIP Call Girl Amravati Aashi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
3D Printing And Designing Final Report.pdf
3D Printing And Designing Final Report.pdf3D Printing And Designing Final Report.pdf
3D Printing And Designing Final Report.pdfSwaraliBorhade
 
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Passbook project document_april_21__.pdf
Passbook project document_april_21__.pdfPassbook project document_april_21__.pdf
Passbook project document_april_21__.pdfvaibhavkanaujia
 
Call Girls Bapu Nagar 7397865700 Ridhima Hire Me Full Night
Call Girls Bapu Nagar 7397865700 Ridhima Hire Me Full NightCall Girls Bapu Nagar 7397865700 Ridhima Hire Me Full Night
Call Girls Bapu Nagar 7397865700 Ridhima Hire Me Full Nightssuser7cb4ff
 
Dubai Call Girls Pro Domain O525547819 Call Girls Dubai Doux
Dubai Call Girls Pro Domain O525547819 Call Girls Dubai DouxDubai Call Girls Pro Domain O525547819 Call Girls Dubai Doux
Dubai Call Girls Pro Domain O525547819 Call Girls Dubai Douxkojalkojal131
 
Call Girls Aslali 7397865700 Ridhima Hire Me Full Night
Call Girls Aslali 7397865700 Ridhima Hire Me Full NightCall Girls Aslali 7397865700 Ridhima Hire Me Full Night
Call Girls Aslali 7397865700 Ridhima Hire Me Full Nightssuser7cb4ff
 
Design Portfolio - 2024 - William Vickery
Design Portfolio - 2024 - William VickeryDesign Portfolio - 2024 - William Vickery
Design Portfolio - 2024 - William VickeryWilliamVickery6
 
Kindergarten Assessment Questions Via LessonUp
Kindergarten Assessment Questions Via LessonUpKindergarten Assessment Questions Via LessonUp
Kindergarten Assessment Questions Via LessonUpmainac1
 
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证nhjeo1gg
 
WAEC Carpentry and Joinery Past Questions
WAEC Carpentry and Joinery Past QuestionsWAEC Carpentry and Joinery Past Questions
WAEC Carpentry and Joinery Past QuestionsCharles Obaleagbon
 
Cosumer Willingness to Pay for Sustainable Bricks
Cosumer Willingness to Pay for Sustainable BricksCosumer Willingness to Pay for Sustainable Bricks
Cosumer Willingness to Pay for Sustainable Bricksabhishekparmar618
 
Call Us ✡️97111⇛47426⇛Call In girls Vasant Vihar༒(Delhi)
Call Us ✡️97111⇛47426⇛Call In girls Vasant Vihar༒(Delhi)Call Us ✡️97111⇛47426⇛Call In girls Vasant Vihar༒(Delhi)
Call Us ✡️97111⇛47426⇛Call In girls Vasant Vihar༒(Delhi)jennyeacort
 
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一F dds
 
Call Girls Meghani Nagar 7397865700 Independent Call Girls
Call Girls Meghani Nagar 7397865700  Independent Call GirlsCall Girls Meghani Nagar 7397865700  Independent Call Girls
Call Girls Meghani Nagar 7397865700 Independent Call Girlsssuser7cb4ff
 
PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024
PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024
PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024CristobalHeraud
 

Recently uploaded (20)

Call Girls Service Mukherjee Nagar @9999965857 Delhi 🫦 No Advance VVIP 🍎 SER...
Call Girls Service Mukherjee Nagar @9999965857 Delhi 🫦 No Advance  VVIP 🍎 SER...Call Girls Service Mukherjee Nagar @9999965857 Delhi 🫦 No Advance  VVIP 🍎 SER...
Call Girls Service Mukherjee Nagar @9999965857 Delhi 🫦 No Advance VVIP 🍎 SER...
 
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
 
VIP Call Girl Amravati Aashi 8250192130 Independent Escort Service Amravati
VIP Call Girl Amravati Aashi 8250192130 Independent Escort Service AmravatiVIP Call Girl Amravati Aashi 8250192130 Independent Escort Service Amravati
VIP Call Girl Amravati Aashi 8250192130 Independent Escort Service Amravati
 
3D Printing And Designing Final Report.pdf
3D Printing And Designing Final Report.pdf3D Printing And Designing Final Report.pdf
3D Printing And Designing Final Report.pdf
 
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝
 
young call girls in Vivek Vihar🔝 9953056974 🔝 Delhi escort Service
young call girls in Vivek Vihar🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Vivek Vihar🔝 9953056974 🔝 Delhi escort Service
young call girls in Vivek Vihar🔝 9953056974 🔝 Delhi escort Service
 
Passbook project document_april_21__.pdf
Passbook project document_april_21__.pdfPassbook project document_april_21__.pdf
Passbook project document_april_21__.pdf
 
Call Girls Bapu Nagar 7397865700 Ridhima Hire Me Full Night
Call Girls Bapu Nagar 7397865700 Ridhima Hire Me Full NightCall Girls Bapu Nagar 7397865700 Ridhima Hire Me Full Night
Call Girls Bapu Nagar 7397865700 Ridhima Hire Me Full Night
 
Dubai Call Girls Pro Domain O525547819 Call Girls Dubai Doux
Dubai Call Girls Pro Domain O525547819 Call Girls Dubai DouxDubai Call Girls Pro Domain O525547819 Call Girls Dubai Doux
Dubai Call Girls Pro Domain O525547819 Call Girls Dubai Doux
 
Call Girls Aslali 7397865700 Ridhima Hire Me Full Night
Call Girls Aslali 7397865700 Ridhima Hire Me Full NightCall Girls Aslali 7397865700 Ridhima Hire Me Full Night
Call Girls Aslali 7397865700 Ridhima Hire Me Full Night
 
Design Portfolio - 2024 - William Vickery
Design Portfolio - 2024 - William VickeryDesign Portfolio - 2024 - William Vickery
Design Portfolio - 2024 - William Vickery
 
Kindergarten Assessment Questions Via LessonUp
Kindergarten Assessment Questions Via LessonUpKindergarten Assessment Questions Via LessonUp
Kindergarten Assessment Questions Via LessonUp
 
Call Girls in Pratap Nagar, 9953056974 Escort Service
Call Girls in Pratap Nagar,  9953056974 Escort ServiceCall Girls in Pratap Nagar,  9953056974 Escort Service
Call Girls in Pratap Nagar, 9953056974 Escort Service
 
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证
 
WAEC Carpentry and Joinery Past Questions
WAEC Carpentry and Joinery Past QuestionsWAEC Carpentry and Joinery Past Questions
WAEC Carpentry and Joinery Past Questions
 
Cosumer Willingness to Pay for Sustainable Bricks
Cosumer Willingness to Pay for Sustainable BricksCosumer Willingness to Pay for Sustainable Bricks
Cosumer Willingness to Pay for Sustainable Bricks
 
Call Us ✡️97111⇛47426⇛Call In girls Vasant Vihar༒(Delhi)
Call Us ✡️97111⇛47426⇛Call In girls Vasant Vihar༒(Delhi)Call Us ✡️97111⇛47426⇛Call In girls Vasant Vihar༒(Delhi)
Call Us ✡️97111⇛47426⇛Call In girls Vasant Vihar༒(Delhi)
 
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
 
Call Girls Meghani Nagar 7397865700 Independent Call Girls
Call Girls Meghani Nagar 7397865700  Independent Call GirlsCall Girls Meghani Nagar 7397865700  Independent Call Girls
Call Girls Meghani Nagar 7397865700 Independent Call Girls
 
PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024
PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024
PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024
 

IT201 Basics of Intelligent Systems-1.pptx

  • 1. IT201 Basics of Intelligent Systems Text books: [T1] Madisetti Vijay and Bahga Arshdeep, Internet of Things (A Hands-on-Approach), 1st Edition, VPT, 2014. [T2] Buyya Raj Kumar, Vecchiola Christian & Selvi S. Thamarai , Mastering Cloud Computing, McGraw Hill Publication, New Delhi, 2013. [T3] Engelbrecht Andries P., Computational Intelligence: An Introduction, Wiley. Reference Books: [R1] Raj Pethuru and Raman Anupama C., The Internet of Things: Enabling Technologies, Platforms, and Use Cases, CRC Press. [R2] Konar Amit, Computational Intelligence: Principles, Techniques and Applications, Springer. (R2) [R3] Russel Norvig Artificial Intelligence A Modern Approah, 2nd edition, Prentice Hall Dr. Shripal Vijayvargiya, Dr. Vishwambhar Pathak, Dept of CSE, BITMESRA Jaipur Campus
  • 2. Module I AI Concepts • Introduction to AI and Intelligent Agents • AI problems and Solution approaches • Problem solving using Search and Heuristics • AI Knowledge-base: creation, updation and reasoning, • Broad category of branches in AI and intelligent Systems . (8 L)
  • 3. Module I : AI Concepts- Introduction to AI https://www.cs.utexas.edu/~mooney/cs343/slide-handouts/intro.4.pdf  Definition of AI- Art of designing Systems that { think like humans + think rationally + act like humans + act rationally }  Thinking Humanly: Cognitive Modelling- Interdisciplinary field (AI, psychology, linguistics, philosophy, anthropology) that tries to form computational theories of human cognition  Thinking Rationally : Laws of Thought- Formalize “correct” reasoning using a mathematical model (e.g. of deductive reasoning)  Acting Humanly: The Turing Test - If the response of a computer to an unrestricted textual natural-language conversation cannot be distinguished from that of a human being then it can be said to be intelligent  Acting Rationally: Rational Agents- rationality involves maximizing goals within the computational and other resources available.
  • 4. Module I : AI Concepts- Introduction to AI https://www.cs.utexas.edu/~mooney/cs343/slide-handouts/intro.4.pdf  Foundations of AI: Philosophy, Mathematics, Psychology; Computer Science; Linguistics  Expert Systems: detailed knowledge of the specific domain can help control search and lead to expert level performance for restricted tasks  Typical Applications:  Industrial Applications: Character and hand-writing recognition; Speech recognition; Processing credit card applications; Financial prediction; Chemical process control;  Intelligent agents and Internet applications (softbots, believable agents, intelligent information access);  Scheduling/configuration applications (Successful companies: I2, Red Pepper, Trilogy)
  • 5. AI = “Thinking Humanly” • Get inside the actual working of human minds. • Two ways to do that – Through Introspection- to catch our own thoughts as they go by. – Through psychological experiments • If the program's input/output and timing behaviors match corresponding human behaviors, that is evidence that some of the program's mechanisms could also be operating in humans • Cognitive Science: brings together computer models from AI and experimental techniques from psychology to try to construct precise and testable theories of the human mind.
  • 6. AI= “Thinking Rationally”: “Law of Thought” • Aristotle first codified “right thinking” i.e. perfect reasoning process. • He proposed syllogisms, that provided patterns for argument structures that always yielded correct conclusions when given correct premises- – e.g. "Socrates is a man; all men are mortal; therefore, is mortal." • These laws of thought were LOGIC supposed to govern the operation of the mind; their study initiated the field called logic. • Logical notations provided by Propositional calculus and Predicate logic can be programmed using languages like LISP, PROLOG etc.
  • 7. AI = “Acting Humanly”- The Turing Test approach (1950) • Was designed to provide a satisfactory operational definition of intelligence. • The computer passes the test if a human interrogator, after posing some written questions, cannot tell whether the written responses come from a person or not. • For programming a computer to pass the test, the computer would need to possess the following 6 capabilities: – natural language processing- to enable it to communicate successfully in English/specific language – 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 – computer vision to perceive objects – robotics to manipulate objects and move about • Total Turing Test- includes a video signal so that the interrogator can test the subject's perceptual abilities, as well as the opportunity for the interrogator to pass physical objects "through the hatch." To pass the total Turing Test, the computer will need computer vision and robotics.
  • 8. AI= “Acting Rationally” • The study of AI as rational-agent design has at least two advantages. – First, it is more general than the "laws of thought"approach, because correct inference is just one of several possible mechanisms for achieving rationality. – Second, it is more amenable to scientific development than are approaches based on human behavior or human thought because the standard of rationality is clearly defined general.
  • 9. Agents • An agent is an entity that perceives and acts . • So an agent is anything that can be viewed as perceiving its environment through sensors and acting upon that environment through actuators • Example: – Human agent: eyes, ears, and other organs for sensors; hands, legs, mouth, and other body parts for actuators; – Robotic agent: cameras and infrared range finders for sensors; various motors for actuators • An agent is completely specified by the agent function mapping percept sequences (histories) to actions: [f: P*  A] • The agent program runs on the physical architecture to produce f: – agent = architecture + program 9
  • 10. Acting rationally: Rational agent • Rational behavior: For each possible percept sequence, a rational agent should select right action. • The right thing/action: that which is expected to maximize its performance measure, given the evidence provided by the percept sequence and whatever built-in knowledge the agent has. Doesn't necessarily involve thinking – e.g., blinking reflex – but thinking should be in the service of rational action. • Performance measure: An objective criterion for success of an agent's behavior. – E.g. performance measure of a vacuum-cleaner agent could be amount of dirt cleaned up, amount of time taken, amount of electricity consumed, amount of noise generated, etc. • Rationality is distinct from omniscience (all-knowing with infinite knowledge). • Caveat: computational limitations make perfect rationality unachievable  design best program for given machine resources 10
  • 11. …Rational agents • Agents can perform actions in order to modify future percepts so as to obtain useful information (information gathering, exploration) • An agent is autonomous if its behavior is determined by its own experience (with ability to learn and adapt) 11
  • 12. Vacuum-cleaner world • Percepts: location and contents, e.g., [A,Dirty] • Actions: Left, Right, Suck, NoOp 12
  • 13. PEAS • PEAS: Performance measure, Environment, Actuators, Sensors • Must first specify the setting for intelligent agent design • Consider, e.g., the task of designing an automated taxi driver: – Performance measure: Safe, fast, legal, comfortable trip, maximize profits – Environment: Roads, other traffic, pedestrians, customers – Actuators: Steering wheel, accelerator, brake, signal, horn – Sensors: Cameras, sonar, speedometer, GPS, odometer, engine sensors, keyboard 13
  • 14. PEAS • Agent: Medical diagnosis system – Performance measure: Healthy patient, minimize costs, lawsuits – Environment: Patient, hospital, staff – Actuators: Screen display (questions, tests, diagnoses, treatments, referrals) – Sensors: Keyboard (entry of symptoms, findings, patient's answers) 14
  • 15. 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 15
  • 16. 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 16
  • 17. Review Questions • Examine the AI literature to discover whether the following tasks can currently besolved by computers: a. Playing a decent game of table tennis (ping-pong). b. Driving in the center of Cairo. c. Buying a week's worth of groceries at the market. d. Buying a week’s worth of groceries on the web. e. Playing a decent game of bridge at a competitive level. f. Discovering and proving new mathematical theorems. g. Writing an intentionally funny story. h. Giving competent legal advice in a specialized area of law. i. Translating spoken English into spoken Swedish in real time. j. Performing a complex surgical operation.
  • 18. Overview of Steps of System Design (additional related topic) https://nptel.ac.in/courses/Webcourse-contents/IISc-BANG/System%20Analysis%20and%20Design/pdf/PPTs/mod2.pdf • SDLC includes the following activities 1. Requirements Determinations 2. Requirements Specifications 3. Feasibility Analysis 4. Final Specifications 5. Hardware Study 6. System Design 7. System Implementation 8. System Evaluation 9. System Modification • * Feasibility Assessment: (will guide setting up the ASSUMPTIONS for PEAS specification) – Managerial feasibility – Technical feasibility – Financial feasibility – Operational feasibility – Legal viability
  • 19. Agent functions and programs • An agent is completely specified by the agent function mapping percept sequences to actions • One agent function (or a small equivalence class) is rational • Aim: find a way to implement the rational agent function concisely 19
  • 20. Agent types • Four basic types in order of increasing generality: – Simple reflex agents – Model-based reflex agents – Goal-based agents – Utility-based agents 20
  • 26. Module I : AI Concepts- Intelligent Agents [Russel] [http://aima.cs.berkeley.edu/algorithms.pdf] TABLE-DRIVEN-AGENT; REFLEX-VACUUM-AGENT; SIMPLE-REFLEX-AGENT; MODEL-BASED-REFLEX-AGENT
  • 27. Module I : AI Concepts- Intelligent Agents [Russel] [http://aima.cs.berkeley.edu/algorithms.pdf] TABLE-DRIVEN-AGENT; REFLEX-VACUUM-AGENT; SIMPLE-REFLEX-AGENT; MODEL-BASED-REFLEX-AGENT
  • 28. Module I : AI Concepts- Intelligent Agents [Russel] [http://aima.cs.berkeley.edu/algorithms.pdf] SEARCH BASED PROBLEM SOLVING AGENTS
  • 29. 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. • Deterministic (vs. stochastic): The next state of the environment is completely determined by the current state and the action executed by the agent. (If the environment is deterministic except for the actions of other agents, then the environment is strategic) • Episodic (vs. sequential): The agent's experience is divided into atomic "episodes" (each episode consists of the agent perceiving and then performing a single action), and the choice of action in each episode depends only on the episode itself. 29
  • 30. Environment types • Static (vs. dynamic): The environment is unchanged while an agent is deliberating. (The environment is semidynamic if the environment itself does not change with the passage of time but the agent's performance score does) • Discrete (vs. continuous): A limited number of distinct, clearly defined percepts and actions. • Single agent (vs. multiagent): An agent operating by itself in an environment. 30
  • 31. Problem Solving •Rational agents need to perform sequences of actions in order to achieve goals. •Intelligent behavior can be generated by having a look-up table or reactive policy that tells the agent what to do in every circumstance, but: - Such a table or policy is difficult to build - All contingencies must be anticipated •A more general approach is for the agent to have knowledge of the world and how its actions affect it and be able to simulate execution of actions in an internal model of the world in order to determine a sequence of actions that will accomplish its goals. •This is the general task of problem solving and is typically performed by searching through an internally modelled space of world states. 31
  • 32. Problem Solving Task •Given: -An initial state of the world -A set of possible possible actions or operators that can be performed. -A goal test that can be applied to a single state of the world to determine if it is a goal state. •Find: -A solution stated as a path of states and operators that shows how to transform the initial state into one that satisfies the goal test. •The initial state and set of operators implicitly define a state space of states of the world and operator transitions between them. May be infinite. 32
  • 33. Measuring Performance •Path cost: a function that assigns a cost to a path, typically by summing the cost of the individual operators in the path. May want to find minimum cost solution. •Search cost: The computational time and space (memory) required to find the solution. •Generally there is a trade-off between path cost and search cost and one must satisfy and find the best solution in the time that is available. 33
  • 34. Foundations of AI • Philosophy – Can formal rules be used to draw valid conclusions? – How does the mental mind arise from a physical – Where does knowledge come from? – How does knowledge lead to action? • Mathematics – Can formal rules be used to draw valid conclusions? – How does the mental mind arise from a physical brain? – Where does knowledge come from? – How does knowledge lead to action? • Economics – What are the formal rules to draw valid – What can be computed? – How do we reason with uncertain information? • Neuroscience – How should we make decisions so as to maximize payoff? – How should we do this when others may not go along? – How should we do this when the payoff may be in the future? • Psychology – How do humans and animals think and act? • Computer Engineering – How can we build an efficient computer? • Control Theory and Cybernetics – How can artifacts operate under their own control? • Linguistics – How does language relate to thought?
  • 36. Problem types • Deterministic, fully observable  single-state problem – Agent knows exactly which state it will be in; solution is a sequence • Non-observable  sensorless problem (conformant problem) – Agent may have no idea where it is; solution is a sequence • Nondeterministic and/or partially observable  contingency problem – percepts provide new information about current state – often interleave} search, execution • Unknown state space  exploration problem 36
  • 37. Module I : AI Concepts- AI problems and Solution approaches [Russel/ Mooney] [https://www.cs.utexas.edu/~mooney/cs343/slide-handouts/search.4.pdf]  The general task of problem solving is typically performed by searching through an internally modelled space of world states  Problem Solving Task o Given: -An initial state of the world; A set of possible possible actions or operators that can be performed; A goal test that can be applied to a single state of the world to determine if it is a goal state. o Find: -A solution stated as a path of states and operators that shows how to transform the initial state into one that satisfies the goal test. o The initial state and set of operators implicitly define a state space of states of the world and operator transitions between them. May be infinite.  Measuring Performance o Path cost: a function that assigns a cost to a path, typically by summing the cost of the individual operators in the path. May want to find minimum cost solution. o Search cost: The computational time and space (memory) required to find the solution. o Generally there is a trade-off between path cost and search cost and one must satisfice and find the best solution in the time that is available.
  • 38. Module I : AI Concepts- Common Problems [Russel/ Mooney] [https://www.cs.utexas.edu/~mooney/cs343/slide-handouts/search.4.pdf] Route Finding, 8-Puzzle 8-Queen Missionaries and cannibals
  • 39. Module I : AI Concepts- Solution Approaches [Russel/ Mooney] [https://www.cs.utexas.edu/~mooney/cs343/slide-handouts/search.4.pdf] Search Problem Approaches Uninformed search, Informed search
  • 40. 40 Example: Romania • On holiday in Romania; currently in Arad. • Flight leaves tomorrow from Bucharest • Formulate goal: – be in Bucharest • Formulate problem: – states: various cities – actions: drive between cities • Find solution: – sequence of cities, e.g., Arad, Sibiu, Fagaras, Bucharest • Path cost: Number of intermediate cities, distance traveled, expected travel time
  • 42. 42 Example: The 8-puzzle • states? locations of tiles • actions? move blank left, right, up, down • goal test? = goal state (given) • path cost? 1 per move [Note: optimal solution of n-Puzzle family is NP-hard]
  • 43. “Toy” Problems •8-queens problem (N-queens problem) •Missionaries and cannibals Identity of individuals irrelevant, best to represent state as (M,C,B) M = number of missionaries on left bank C = number of cannibals on left bank B = number of boats on left bank (0 or 1) Operators to move: 1M, 1C, 2M, 2C, 1M1C Goal state: (0,0,0) 43
  • 44. More Realistic Problems • Route finding • Travelling salesman problem • VLSI layout • Robot navigation • Web searching 44
  • 45. Searching Concepts •A state can be expanded by generating all states that can be reached by applying a legal operator to the state. •State space can also be defined by a successor function that returns all states produced by applying a single legal operator. •A search tree is generated by generating search nodes by successively expanding states starting from the initial state as the root. •A search node in the tree can contain -Corresponding state -Parent node -Operator applied to reach this node -Length of path from root to node (depth) -Path cost of path from initial state to node 45
  • 46. Expanding Nodes and Search 46
  • 47. Search Algorithm • Easiest way to implement various search strategies is to maintain a queue of unexpanded search nodes. • Different strategies result from different methods for inserting new nodes in the queue. • Properties of search strategies -Completeness -Time Complexity -Space Complexity -Optimality 47
  • 48. Search Strategies • Uniformed search strategies (blind, exhaustive, bruteforce) do not guide the search with any additional information about the problem. • Breadth-first search • Uniform-cost search • Depth-first search • Depth-limited search • Iterative deepening search • Informed search strategies (heuristic, intelligent) use information about the problem (estimated distance from a state to the goal) to guide the search. 48
  • 49. 49 Breadth-first search • Expand shallowest unexpanded node • Implementation: – fringe is a FIFO queue, i.e., new successors go at end –
  • 50. 50 Breadth-first search • Expand shallowest unexpanded node • Implementation: – fringe is a FIFO queue, i.e., new successors go at end –
  • 51. 51 Breadth-first search • Expand shallowest unexpanded node • Implementation: – fringe is a FIFO queue, i.e., new successors go at end –
  • 52. 52 Breadth-first search • Expand shallowest unexpanded node • Implementation: – fringe is a FIFO queue, i.e., new successors go at end –
  • 53. 53 Properties of breadth-first search • Complete? Yes (if b is finite) • Time? 1+b+b2+b3+… +bd + b(bd-1) = O(bd+1) • Space? O(bd+1) (keeps every node in memory) • Optimal? Yes (if cost = 1 per step) • Space is the bigger problem (more than time)
  • 54. 54 Uniform-cost search • Expand least-cost unexpanded node • Implementation: – fringe = queue ordered by path cost • Equivalent to breadth-first if step costs all equal • Complete? Yes, if step cost ≥ ε • Time? # of nodes with g ≤ cost of optimal solution, O(bceiling(C*/ ε)) where C* is the cost of the optimal solution • Space? # of nodes with g ≤ cost of optimal solution, O(bceiling(C*/ ε)) • Optimal? Yes – nodes expanded in increasing order of g(n)
  • 55. 55 Depth-first search • Expand deepest unexpanded node • Implementation: – fringe = LIFO queue, i.e., put successors at front
  • 56. 56 Depth-first search • Expand deepest unexpanded node • Implementation: – fringe = LIFO queue, i.e., put successors at front
  • 57. 57 Depth-first search • Expand deepest unexpanded node • Implementation: – fringe = LIFO queue, i.e., put successors at front
  • 58. 58 Depth-first search • Expand deepest unexpanded node • Implementation: – fringe = LIFO queue, i.e., put successors at front
  • 59. 59 Depth-first search • Expand deepest unexpanded node • Implementation: – fringe = LIFO queue, i.e., put successors at front
  • 60. 60 Depth-first search • Expand deepest unexpanded node • Implementation: – fringe = LIFO queue, i.e., put successors at front
  • 61. 61 Depth-first search • Expand deepest unexpanded node • Implementation: – fringe = LIFO queue, i.e., put successors at front
  • 62. 62 Depth-first search • Expand deepest unexpanded node • Implementation: – fringe = LIFO queue, i.e., put successors at front
  • 63. 63 Depth-first search • Expand deepest unexpanded node • Implementation: – fringe = LIFO queue, i.e., put successors at front
  • 64. 64 Depth-first search • Expand deepest unexpanded node • Implementation: – fringe = LIFO queue, i.e., put successors at front
  • 65. 65 Depth-first search • Expand deepest unexpanded node • Implementation: – fringe = LIFO queue, i.e., put successors at front
  • 66. 66 Depth-first search • Expand deepest unexpanded node • Implementation: – fringe = LIFO queue, i.e., put successors at front
  • 67. 67 Properties of depth-first search • Complete? No: fails in infinite-depth spaces, spaces with loops – Modify to avoid repeated states along path  complete in finite spaces • Time? O(bm): terrible if m is much larger than d – but if solutions are dense, may be much faster than breadth-first • Space? O(bm), i.e., linear space! • Optimal? No
  • 68. 68 Depth-limited search = depth-first search with depth limit l, i.e., nodes at depth l have no successors • Recursive implementation: