SlideShare a Scribd company logo
Topic To Be Covered:
Levels of Implementation of KBA
Jagdamba Education Society's
SND College of Engineering & Research Centre
Department of Computer Engineering
SUBJECT: Artificial Intelligence & Robotics
Lecture No-02(UNIT-03)
Logic & Reasoning
Prof.Dhakane Vikas N
Levels of Implementation of KBA
1. Knowledge level
 Knowledge level is the first level of knowledge-based agent, and in
this level, we need to specify what the agent knows, and what the
agent goals are.
 In this level agent know the fact/information about the surrounding
environment in which they are working.
 This level describes the agent by what it knows, i.e. through its knowledge
base. In this level, the information that the agent has, its goals and the
utility are defined.
Levels of Implementation of KBA
1. Knowledge level
 Initial knowledge of knowledge base is called background knowledge.
 Agent at the knowledge level can be viewed as an agent for which one
,only need to specify what the agent knows & what its goal are in order to
specify its behaviour, regardless of how it is to be implemented.
 Example1:A house cleaning agent knows where the mop is and where the
floor is and where the cleaning material like the soap and detergents are
kept. All this is defined in the knowledge level.
 Example:02:suppose an automated taxi agent needs to go from a station A
to station B & He knows that there is Bridge X which connects station A
and Station B.
Levels of Implementation of KBA
2. Logical Level
 In the logical level, the raw and discrete information which is present in
the knowledge level is encoded into sentences.
 This level uses some formal language to represent the knowledge the
agent has.
 There are two types of representation of logic :1)Proposition Logic 2) First
order logic.
 At the logical level, an encoding of knowledge into logical sentences
occurs
 Example: Links(X,A,B)
Levels of Implementation of KBA
3. Implementation Level
 This is the final layer of the knowledge-based agent.
 In the implementation level, the logic which the agent has derived in the
logical level is brought to implementation.
 At the implementation level agent perform actions as per logical and
knowledge level.
Example:01:At this level, an automated taxi agent actually implement his
knowledge and logic so that he can reach to the destination.
Example:02:The cleaning agent after finding the place to clean finally takes
action and cleans the dirt on the floor and as a result, the agent gets clean
floor which is the goal state that the agent is designed to achieve.
Levels of Implementation of KBA
function KB-AGENT(percept):
persistent: KB:a knowledge base t:a counter, initially 0, indicating time
TELL(KB, MAKE-PERCEPT-SENTENCE(percept, t))
Action = ASK(KB, MAKE-ACTION-QUERY(t))
TELL(KB, MAKE-ACTION-SENTENCE(action, t))
t = t + 1
return action
 The MAKE-PERCEPT-SENTENCE generates a sentence as setting that the
agent perceived the given percept at the given time.
 The MAKE-ACTION-QUERY generates a sentence to ask which action
should be done at the current time.
 MAKE-ACTION-SENTENCE generates a sentence which asserts that the
chosen action was executed.
Levels of Implementation of KBA
Following is the structure outline of a generic knowledge-based agents
program:
function KB-AGENT(percept):
persistent: KB:a knowledge base
t:a counter, initially 0, indicating time
TELL(KB, MAKE-PERCEPT-SENTENCE(percept, t))
Action = ASK(KB, MAKE-ACTION-QUERY(t))
TELL(KB, MAKE-ACTION-SENTENCE(action, t))
t = t + 1
return action
 The knowledge-based agent takes percept as input and returns an action
as output.
 The agent maintains the knowledge base, KB, and it initially has some
background knowledge of the real world.
 It also has a counter to indicate the time for the whole process, and this
counter is initialized with zero.
Levels of Implementation of KBA
function KB-AGENT(percept):
persistent: KB:a knowledge base
t:a counter, initially 0, indicating time
TELL(KB, MAKE-PERCEPT-SENTENCE(percept, t))
Action = ASK(KB, MAKE-ACTION-QUERY(t))
TELL(KB, MAKE-ACTION-SENTENCE(action, t))
t = t + 1
return action
Each time when the function is called, it performs its three operations:
Firstly it TELLs the KB what it perceives.
Secondly, it asks KB what action it should take
Third agent program TELLS the KB that which action was chosen.
Ai lecture  02(unit03)
Ai lecture  02(unit03)

More Related Content

PDF
Pinkle Makhijani ,BCA 2nd Year
PDF
Akshay Sharma,BCA,2nd year
PDF
Rakesh Bijawat, BCA 2nd Year
PDF
Rakesh Bijawat , BCA Third Year
PDF
Ronak Kachhawa,BCA 2nd Year
PDF
Aanchal Gupta,BCA 2nd year
PDF
Brijesh Peswani,BCA 2nd Year
PDF
Daksh Sharma ,BCA 2nd Year
Pinkle Makhijani ,BCA 2nd Year
Akshay Sharma,BCA,2nd year
Rakesh Bijawat, BCA 2nd Year
Rakesh Bijawat , BCA Third Year
Ronak Kachhawa,BCA 2nd Year
Aanchal Gupta,BCA 2nd year
Brijesh Peswani,BCA 2nd Year
Daksh Sharma ,BCA 2nd Year

What's hot (20)

PDF
Bhanu Pratap Singh ,BCA
PDF
Deepika Mittal,BCA ,2nd Year
PDF
Shivani Chouhan ,BCA ,2nd Year
PDF
Farhaan Ahmed, BCA 2nd Year
PDF
Reshma Kodwani,BCA,2nd Year
PDF
Deepak Soni,BCA 2nd Year
PDF
Rahul Saini, BCA 2nd Year
PDF
Rounit Mathur,BCA 2nd year.
PDF
Pooja Sharma ,BCA 2nd Year
PDF
Ravi Sharma,BCA 2nd Year
PDF
Gaurav Singh Chouhan, BCA 2nd Year
PDF
Sudarshan Joshi,BCA 2nd Year
PDF
Harendra Singh Rawat,BCA 2nd Year
PDF
Kajal Gaharwal,BCA 2nd Year
PDF
Amit Kumar Yadav ,BCA
PDF
Kaushal Soni,BCA,2nd Year
PDF
Ram Prasad ,BCA 2nd Year
PDF
Kirti Kumawat
PDF
Nikita Totlani ,BCA 2nd year
PDF
Varun Kaushik, BCA 2nd Year
Bhanu Pratap Singh ,BCA
Deepika Mittal,BCA ,2nd Year
Shivani Chouhan ,BCA ,2nd Year
Farhaan Ahmed, BCA 2nd Year
Reshma Kodwani,BCA,2nd Year
Deepak Soni,BCA 2nd Year
Rahul Saini, BCA 2nd Year
Rounit Mathur,BCA 2nd year.
Pooja Sharma ,BCA 2nd Year
Ravi Sharma,BCA 2nd Year
Gaurav Singh Chouhan, BCA 2nd Year
Sudarshan Joshi,BCA 2nd Year
Harendra Singh Rawat,BCA 2nd Year
Kajal Gaharwal,BCA 2nd Year
Amit Kumar Yadav ,BCA
Kaushal Soni,BCA,2nd Year
Ram Prasad ,BCA 2nd Year
Kirti Kumawat
Nikita Totlani ,BCA 2nd year
Varun Kaushik, BCA 2nd Year
Ad

Similar to Ai lecture 02(unit03) (20)

PPTX
Knowledge based agent
PPTX
pending-1664760315-2 knowledge based agent student.pptx
PPTX
pending-1664760315-2 knowledge based agent student.pptx
PPTX
Objective of c in IOS , iOS Live Project Training Ahmedabad, MCA Live Project...
PPTX
Ch-I-Moduddddddddddddddddddddddddddddddddddddle-III.pptx
PPTX
Knowledge based agents
PDF
AI Lesson 22
PDF
Lesson 22
PDF
Book management system
DOCX
OOP Programs
DOCX
Mc0083 object oriented analysis & design using uml
DOCX
Student Lab Activity A. Lab # CIS CIS170A-A1B. Lab 6.docx
DOC
Karner resource estimation for objectory projects
PDF
SlidesSeams15
PPTX
Presentation of iot for artificial intelligence specialization
PPTX
Function BPK2
DOC
Basic construction of c
DOCX
JLK Chapter 5 – Methods and ModularityDRAFT January 2015 Edition.docx
PDF
GRASP_Designing Objects With Responsibilities.pdf
PDF
A WEB BASED APPLICATION FOR RESUME PARSER USING NATURAL LANGUAGE PROCESSING T...
Knowledge based agent
pending-1664760315-2 knowledge based agent student.pptx
pending-1664760315-2 knowledge based agent student.pptx
Objective of c in IOS , iOS Live Project Training Ahmedabad, MCA Live Project...
Ch-I-Moduddddddddddddddddddddddddddddddddddddle-III.pptx
Knowledge based agents
AI Lesson 22
Lesson 22
Book management system
OOP Programs
Mc0083 object oriented analysis & design using uml
Student Lab Activity A. Lab # CIS CIS170A-A1B. Lab 6.docx
Karner resource estimation for objectory projects
SlidesSeams15
Presentation of iot for artificial intelligence specialization
Function BPK2
Basic construction of c
JLK Chapter 5 – Methods and ModularityDRAFT January 2015 Edition.docx
GRASP_Designing Objects With Responsibilities.pdf
A WEB BASED APPLICATION FOR RESUME PARSER USING NATURAL LANGUAGE PROCESSING T...
Ad

More from vikas dhakane (20)

PDF
Ai lecture 14(unit03)
PPTX
Ai lecture 13(unit03)
PDF
Ai lecture 13(unit03)
PPTX
Ai lecture 12(unit03)
PDF
Ai lecture 12(unit03)
PPTX
Ai lecture 11(unit03)
PDF
Ai lecture 11(unit03)
PPTX
Ai lecture 10(unit03)
PDF
Ai lecture 10(unit03)
PDF
Ai lecture 09(unit03)
PDF
Ai lecture 07(unit03)
PPTX
Ai lecture 05(unit03)
PDF
Ai lecture 05(unit03)
PPTX
Ai lecture 04(unit03)
PDF
Ai lecture 04(unit03)
PPTX
Ai lecture 03(unit03)
PDF
Ai lecture 03(unit03)
PPTX
Ai lecture 003(unit03)
PDF
Ai lecture 003(unit03)
PPTX
Ai lecture 02(unit03)
Ai lecture 14(unit03)
Ai lecture 13(unit03)
Ai lecture 13(unit03)
Ai lecture 12(unit03)
Ai lecture 12(unit03)
Ai lecture 11(unit03)
Ai lecture 11(unit03)
Ai lecture 10(unit03)
Ai lecture 10(unit03)
Ai lecture 09(unit03)
Ai lecture 07(unit03)
Ai lecture 05(unit03)
Ai lecture 05(unit03)
Ai lecture 04(unit03)
Ai lecture 04(unit03)
Ai lecture 03(unit03)
Ai lecture 03(unit03)
Ai lecture 003(unit03)
Ai lecture 003(unit03)
Ai lecture 02(unit03)

Recently uploaded (20)

PDF
Visual Aids for Exploratory Data Analysis.pdf
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
communication and presentation skills 01
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
UNIT 4 Total Quality Management .pptx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
Artificial Intelligence
PPTX
Fundamentals of Mechanical Engineering.pptx
PDF
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
PPT
Total quality management ppt for engineering students
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
Integrating Fractal Dimension and Time Series Analysis for Optimized Hyperspe...
PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
PPT
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
PPT
introduction to datamining and warehousing
PPTX
introduction to high performance computing
PDF
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PPT
A5_DistSysCh1.ppt_INTRODUCTION TO DISTRIBUTED SYSTEMS
PDF
86236642-Electric-Loco-Shed.pdf jfkduklg
Visual Aids for Exploratory Data Analysis.pdf
Automation-in-Manufacturing-Chapter-Introduction.pdf
communication and presentation skills 01
R24 SURVEYING LAB MANUAL for civil enggi
UNIT 4 Total Quality Management .pptx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Artificial Intelligence
Fundamentals of Mechanical Engineering.pptx
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
Total quality management ppt for engineering students
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Integrating Fractal Dimension and Time Series Analysis for Optimized Hyperspe...
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
introduction to datamining and warehousing
introduction to high performance computing
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
A5_DistSysCh1.ppt_INTRODUCTION TO DISTRIBUTED SYSTEMS
86236642-Electric-Loco-Shed.pdf jfkduklg

Ai lecture 02(unit03)

  • 1. Topic To Be Covered: Levels of Implementation of KBA Jagdamba Education Society's SND College of Engineering & Research Centre Department of Computer Engineering SUBJECT: Artificial Intelligence & Robotics Lecture No-02(UNIT-03) Logic & Reasoning Prof.Dhakane Vikas N
  • 2. Levels of Implementation of KBA 1. Knowledge level  Knowledge level is the first level of knowledge-based agent, and in this level, we need to specify what the agent knows, and what the agent goals are.  In this level agent know the fact/information about the surrounding environment in which they are working.  This level describes the agent by what it knows, i.e. through its knowledge base. In this level, the information that the agent has, its goals and the utility are defined.
  • 3. Levels of Implementation of KBA 1. Knowledge level  Initial knowledge of knowledge base is called background knowledge.  Agent at the knowledge level can be viewed as an agent for which one ,only need to specify what the agent knows & what its goal are in order to specify its behaviour, regardless of how it is to be implemented.  Example1:A house cleaning agent knows where the mop is and where the floor is and where the cleaning material like the soap and detergents are kept. All this is defined in the knowledge level.  Example:02:suppose an automated taxi agent needs to go from a station A to station B & He knows that there is Bridge X which connects station A and Station B.
  • 4. Levels of Implementation of KBA 2. Logical Level  In the logical level, the raw and discrete information which is present in the knowledge level is encoded into sentences.  This level uses some formal language to represent the knowledge the agent has.  There are two types of representation of logic :1)Proposition Logic 2) First order logic.  At the logical level, an encoding of knowledge into logical sentences occurs  Example: Links(X,A,B)
  • 5. Levels of Implementation of KBA 3. Implementation Level  This is the final layer of the knowledge-based agent.  In the implementation level, the logic which the agent has derived in the logical level is brought to implementation.  At the implementation level agent perform actions as per logical and knowledge level. Example:01:At this level, an automated taxi agent actually implement his knowledge and logic so that he can reach to the destination. Example:02:The cleaning agent after finding the place to clean finally takes action and cleans the dirt on the floor and as a result, the agent gets clean floor which is the goal state that the agent is designed to achieve.
  • 6. Levels of Implementation of KBA function KB-AGENT(percept): persistent: KB:a knowledge base t:a counter, initially 0, indicating time TELL(KB, MAKE-PERCEPT-SENTENCE(percept, t)) Action = ASK(KB, MAKE-ACTION-QUERY(t)) TELL(KB, MAKE-ACTION-SENTENCE(action, t)) t = t + 1 return action  The MAKE-PERCEPT-SENTENCE generates a sentence as setting that the agent perceived the given percept at the given time.  The MAKE-ACTION-QUERY generates a sentence to ask which action should be done at the current time.  MAKE-ACTION-SENTENCE generates a sentence which asserts that the chosen action was executed.
  • 7. Levels of Implementation of KBA Following is the structure outline of a generic knowledge-based agents program: function KB-AGENT(percept): persistent: KB:a knowledge base t:a counter, initially 0, indicating time TELL(KB, MAKE-PERCEPT-SENTENCE(percept, t)) Action = ASK(KB, MAKE-ACTION-QUERY(t)) TELL(KB, MAKE-ACTION-SENTENCE(action, t)) t = t + 1 return action  The knowledge-based agent takes percept as input and returns an action as output.  The agent maintains the knowledge base, KB, and it initially has some background knowledge of the real world.  It also has a counter to indicate the time for the whole process, and this counter is initialized with zero.
  • 8. Levels of Implementation of KBA function KB-AGENT(percept): persistent: KB:a knowledge base t:a counter, initially 0, indicating time TELL(KB, MAKE-PERCEPT-SENTENCE(percept, t)) Action = ASK(KB, MAKE-ACTION-QUERY(t)) TELL(KB, MAKE-ACTION-SENTENCE(action, t)) t = t + 1 return action Each time when the function is called, it performs its three operations: Firstly it TELLs the KB what it perceives. Secondly, it asks KB what action it should take Third agent program TELLS the KB that which action was chosen.