SlideShare a Scribd company logo
1 of 53
Logical Agents
Group Members
 Nuruzzaman Milon (IT 09006)
 Ali Saheb (IT 09001)
 Sabbir Hossain (IT 09024)
Contents
 Knowledge Based Agents
 Wumpus World
 Logic in General
 Propositional (Boolean) Logic
 Reasoning with Horn Clauses
 Forward Chain
 Backward Chain
Logical Agents
 Humans can know “things” and “reason”
 Representation: How are the things stored?
 Reasoning: How is the knowledge used?
 To solve a problem…
 To generate more knowledge…
 Knowledge and reasoning are important to artificial agents
because they enable successful behaviors difficult to
achieve otherwise
 Useful in partially observable environments
 Can benefit from knowledge in very general
forms, combining and recombining information
Knowledge-Based Agents
 Central component of a Knowledge-Based Agent is
a Knowledge-Base
 A set of sentences in a formal language
 Sentences are expressed using a knowledge representation
language
 Two generic functions:
 TELL - add new sentences (facts) to the Knowledge Base
 “Tell it what it needs to know”
 ASK - query what is known from the Knowledge Base
 “Ask what to do next”
Knowledge-Based Agents
 The agent must be able to:
 Represent states and actions
 Incorporate new percepts
 Update internal
representations of the world
 Deduce hidden properties of
the world
 Deduce appropriate actions
Inference Engine
Knowledge-Base
Domain-
Independent
Algorithms
Domain-
Specific
Content
Knowledge-Based Agents
Knowledge-Based Agents
 Declarative
 You can build a knowledge-based agent simply by “TELLing”
it what it needs to know
 Procedural
 Encode desired behaviors directly as program code
 Minimizing the role of explicit representation and reasoning can
result in a much more efficient system
Wumpus World
 Performance Measure
 Gold +1000, Death – 1000
 Step -1, Use arrow -10
 Environment
 Square adjacent to the Wumpus are
smelly
 Squares adjacent to the pit are breezy
 Glitter iff gold is in the same square
 Shooting kills Wumpus if you are facing it
 Shooting uses up the only arrow
 Grabbing picks up the gold if in the same
square
 Releasing drops the gold in the same
square
 Actuators
 Left turn, right
turn, forward, grab, release, shoot
 Sensors
 Breeze, glitter, and smell
Wumpus World
 Characterization of Wumpus World
 Observable
 partial, only local perception
 Deterministic
 Yes, outcomes are specified
 Episodic
 No, sequential at the level of actions
 Static
 Yes, Wumpus and pits do not move
 Discrete
 Yes
 Single Agent
 Yes
Wumpus World
Wumpus World
Wumpus World
Wumpus World
Wumpus World
Wumpus World
Wumpus World
Wumpus World
Other Sticky Situations
 Breeze in (1,2) and (2,1)
 No safe actions
 Smell in (1,1)
 Cannot move
Logic
 Knowledge bases consist of
sentences in a formal
language
 Syntax
 Sentences are well formed
 Semantics
 The “meaning” of the sentence
 The truth of each sentence
with respect to each possible
world (model)
 Example:
x + 2 >= y is a sentence
x2 + y > is not a sentence
x + 2 >= y is true iff x + 2 is no
less than y
x + 2 >= y is true in a world where
x = 7, y=1
x + 2 >= y is false in world where
x = 0, y =6
Logic
 Entailment means that one thing follows logically
from another
|=
 |= iff in every model in which is true, is
also true
 if is true, then must be true
 the truth of is “contained” in the truth of
Logic
 Example:
 A Knowledge Base containing
 “Cleveland won”
 “Dallas won”
 Entails…
 “Either Cleveland won or Dallas won”
 Example:
x + y = 4 entails 4 = x + y
Logic
 A model is a formally
structured world with
respect to which truth
can be evaluated
 M is a model of
sentence if is true in
m
 Then KB |= if M(KB)
M( )
M( )
x x x x x xx xx xxx xx
x x x x x x x xxx xxx
x x x x x x x x xxxxxx x x xx
xxx x x xx x x x x x xx
xxx x x x x x x x xxx x x
x xxx xxx x xx xxxx x
M(KB)
xx x x x
x x x x
x x x
Logic
 Entailment in Wumpus
World
 Situation after detecting
nothing in [1,1], moving
right, breeze in [2,1]
 Consider possible
models for ? assuming
only pits
 3 Boolean choices => 8
possible models
Logic
Logic
 Inference is the process of deriving a specific sentence
from a KB (where the sentence must be entailed by the
KB)
 KB |-i = sentence can be derived from KB by
procedure I
 “KB’s are a haystack”
 Entailment = needle in haystack
 Inference = finding it
Logic
 Soundness
 i is sound if…
 whenever KB |-i is true, KB |= is true
 Completeness
 i is complete if
 whenever KB |= is true, KB |-i is true
 If KB is true in the real world, then any sentence
derived from KB by a sound inference procedure is
also true in the real world
Propositional Logic
 AKA Boolean Logic
 False and True
 Proposition symbols P1, P2, etc are sentences
 NOT: If S1 is a sentence, then ¬S1 is a sentence (negation)
 AND: If S1, S2 are sentences, then S1 S2 is a sentence
(conjunction)
 OR: If S1, S2 are sentences, then S1 S2 is a sentence
(disjunction)
 IMPLIES: If S1, S2 are sentences, then S1 S2 is a sentence
(implication)
 IFF: If S1, S2 are sentences, then S1 S2 is a sentence
(biconditional)
Propositional Logic
P Q ¬P P Q P Q P Q P Q
False False True False False True True
False True True False True True False
True False False False True False False
True True False True True True True
Reasoning with Horn Clauses
 Forward Chaining
 For each new piece of data, generate all new facts, until
the desired fact is generated
 Data-directed reasoning
 Backward Chaining
 To prove the goal, find a clause that contains the goal as
its head, and prove the body recursively
 (Backtrack when you chose the wrong clause)
 Goal-directed reasoning
Forward Chaining
 AND-OR Graph
 multiple links joined by an arc indicate conjunction – every link
must be proved
 multiple links without an arc indicate disjunction – any link can be
proved
Forward Chaining
Forward Chaining
Forward Chaining
Forward Chaining
Forward Chaining
Forward Chaining
Forward Chaining
Forward Chaining
Backward Chaining
 Idea: work backwards from the query q:
 To prove q by BC,
 Check if q is known already, or
 Prove by BC all premises of some rule concluding q
 Avoid loops
 Check if new subgoal is already on the goal stack
 Avoid repeated work: check if new subgoal
 Has already been proved true, or
 Has already failed
Backward Chaining
Backward Chaining
Backward Chaining
Backward Chaining
Backward Chaining
Backward Chaining
Backward Chaining
Backward Chaining
Backward Chaining
Backward Chaining
Backward Chaining
Forward Chaining vs.
Backward Chaining
 Forward Chaining is data driven
 Automatic, unconscious processing
 E.g. object recognition, routine decisions
 May do lots of work that is irrelevant to the goal
 Backward Chaining is goal driven
 Appropriate for problem solving
 E.g. “Where are my keys?”, “How do I start the car?”
 The complexity of BC can be much less than linear in
size of the KB
Thanks…

More Related Content

What's hot

Unification and Lifting
Unification and LiftingUnification and Lifting
Unification and LiftingMegha Sharma
 
Knowledge Representation & Reasoning
Knowledge Representation & ReasoningKnowledge Representation & Reasoning
Knowledge Representation & ReasoningSajid Marwat
 
Knowledge representation and reasoning
Knowledge representation and reasoningKnowledge representation and reasoning
Knowledge representation and reasoningMaryam Maleki
 
Forward and Backward chaining in AI
Forward and Backward chaining in AIForward and Backward chaining in AI
Forward and Backward chaining in AIMegha Sharma
 
Logics for non monotonic reasoning-ai
Logics for non monotonic reasoning-aiLogics for non monotonic reasoning-ai
Logics for non monotonic reasoning-aiShaishavShah8
 
Control Strategies in AI
Control Strategies in AI Control Strategies in AI
Control Strategies in AI Bharat Bhushan
 
Knowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceKnowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceRamla Sheikh
 
AI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction ProblemAI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction ProblemMohammad Imam Hossain
 
Artificial intelligence and knowledge representation
Artificial intelligence and knowledge representationArtificial intelligence and knowledge representation
Artificial intelligence and knowledge representationSajan Sahu
 
Problem solving agents
Problem solving agentsProblem solving agents
Problem solving agentsMegha Sharma
 
State Space Search in ai
State Space Search in aiState Space Search in ai
State Space Search in aivikas dhakane
 
Artificial Intelligence Notes Unit 2
Artificial Intelligence Notes Unit 2Artificial Intelligence Notes Unit 2
Artificial Intelligence Notes Unit 2DigiGurukul
 
AI_Session 7 Greedy Best first search algorithm.pptx
AI_Session 7 Greedy Best first search algorithm.pptxAI_Session 7 Greedy Best first search algorithm.pptx
AI_Session 7 Greedy Best first search algorithm.pptxAsst.prof M.Gokilavani
 

What's hot (20)

Unification and Lifting
Unification and LiftingUnification and Lifting
Unification and Lifting
 
Knowledge Representation & Reasoning
Knowledge Representation & ReasoningKnowledge Representation & Reasoning
Knowledge Representation & Reasoning
 
AI Lecture 7 (uncertainty)
AI Lecture 7 (uncertainty)AI Lecture 7 (uncertainty)
AI Lecture 7 (uncertainty)
 
Knowledge representation and reasoning
Knowledge representation and reasoningKnowledge representation and reasoning
Knowledge representation and reasoning
 
Forward and Backward chaining in AI
Forward and Backward chaining in AIForward and Backward chaining in AI
Forward and Backward chaining in AI
 
Logics for non monotonic reasoning-ai
Logics for non monotonic reasoning-aiLogics for non monotonic reasoning-ai
Logics for non monotonic reasoning-ai
 
Planning Agent
Planning AgentPlanning Agent
Planning Agent
 
Control Strategies in AI
Control Strategies in AI Control Strategies in AI
Control Strategies in AI
 
AI: Planning and AI
AI: Planning and AIAI: Planning and AI
AI: Planning and AI
 
predicate logic example
predicate logic examplepredicate logic example
predicate logic example
 
Knowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceKnowledge representation In Artificial Intelligence
Knowledge representation In Artificial Intelligence
 
AI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction ProblemAI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction Problem
 
Artificial intelligence and knowledge representation
Artificial intelligence and knowledge representationArtificial intelligence and knowledge representation
Artificial intelligence and knowledge representation
 
Rule based system
Rule based systemRule based system
Rule based system
 
Problem solving agents
Problem solving agentsProblem solving agents
Problem solving agents
 
State Space Search in ai
State Space Search in aiState Space Search in ai
State Space Search in ai
 
Artificial Intelligence Notes Unit 2
Artificial Intelligence Notes Unit 2Artificial Intelligence Notes Unit 2
Artificial Intelligence Notes Unit 2
 
Planning
Planning Planning
Planning
 
First order logic
First order logicFirst order logic
First order logic
 
AI_Session 7 Greedy Best first search algorithm.pptx
AI_Session 7 Greedy Best first search algorithm.pptxAI_Session 7 Greedy Best first search algorithm.pptx
AI_Session 7 Greedy Best first search algorithm.pptx
 

Viewers also liked

FORWARD CHAINING AND BACKWARD CHAINING SYSTEMS IN ARTIFICIAL INTELIGENCE
FORWARD CHAINING AND BACKWARD CHAINING SYSTEMS IN ARTIFICIAL INTELIGENCEFORWARD CHAINING AND BACKWARD CHAINING SYSTEMS IN ARTIFICIAL INTELIGENCE
FORWARD CHAINING AND BACKWARD CHAINING SYSTEMS IN ARTIFICIAL INTELIGENCEJohnLeonard Onwuzuruigbo
 
Propositional And First-Order Logic
Propositional And First-Order LogicPropositional And First-Order Logic
Propositional And First-Order Logicankush_kumar
 
forward and backward chaining
forward and backward chainingforward and backward chaining
forward and backward chainingRado Sianipar
 
Backward chaining(bala,karthi,rajesh)
Backward chaining(bala,karthi,rajesh)Backward chaining(bala,karthi,rajesh)
Backward chaining(bala,karthi,rajesh)Nagarajan
 
Logical reasoning
Logical reasoning Logical reasoning
Logical reasoning Slideshare
 
How expensive a logical agent is
How expensive a logical agent isHow expensive a logical agent is
How expensive a logical agent isRashmika Nawaratne
 
An Abductive Diagnosis and Modeling Concept for Wind Power Plants (DX 2014)
An Abductive Diagnosis and Modeling Concept for Wind Power Plants (DX 2014)An Abductive Diagnosis and Modeling Concept for Wind Power Plants (DX 2014)
An Abductive Diagnosis and Modeling Concept for Wind Power Plants (DX 2014)Roxane Koitz
 
Jarrar.lecture notes.aai.2011s.ch7.p logic
Jarrar.lecture notes.aai.2011s.ch7.p logicJarrar.lecture notes.aai.2011s.ch7.p logic
Jarrar.lecture notes.aai.2011s.ch7.p logicPalGov
 
Introduction iii
Introduction iiiIntroduction iii
Introduction iiichandsek666
 
টেলিমেডিসিন কি
টেলিমেডিসিন কিটেলিমেডিসিন কি
টেলিমেডিসিন কিNuruzzaman Milon
 
Energy Efficient OS fo Android Powered Smart Devices
Energy Efficient OS fo Android Powered Smart DevicesEnergy Efficient OS fo Android Powered Smart Devices
Energy Efficient OS fo Android Powered Smart DevicesNuruzzaman Milon
 
Road -map of Teledermatology for doctor-patient-citizen relationship
Road -map  of Teledermatology for doctor-patient-citizen relationshipRoad -map  of Teledermatology for doctor-patient-citizen relationship
Road -map of Teledermatology for doctor-patient-citizen relationshipNuruzzaman Milon
 

Viewers also liked (20)

AI: Logic in AI
AI: Logic in AIAI: Logic in AI
AI: Logic in AI
 
FORWARD CHAINING AND BACKWARD CHAINING SYSTEMS IN ARTIFICIAL INTELIGENCE
FORWARD CHAINING AND BACKWARD CHAINING SYSTEMS IN ARTIFICIAL INTELIGENCEFORWARD CHAINING AND BACKWARD CHAINING SYSTEMS IN ARTIFICIAL INTELIGENCE
FORWARD CHAINING AND BACKWARD CHAINING SYSTEMS IN ARTIFICIAL INTELIGENCE
 
Forward Backward Chaining
Forward Backward ChainingForward Backward Chaining
Forward Backward Chaining
 
Propositional And First-Order Logic
Propositional And First-Order LogicPropositional And First-Order Logic
Propositional And First-Order Logic
 
forward and backward chaining
forward and backward chainingforward and backward chaining
forward and backward chaining
 
Backward chaining(bala,karthi,rajesh)
Backward chaining(bala,karthi,rajesh)Backward chaining(bala,karthi,rajesh)
Backward chaining(bala,karthi,rajesh)
 
Logic agent
Logic agentLogic agent
Logic agent
 
Logical reasoning
Logical reasoning Logical reasoning
Logical reasoning
 
AI: Logic in AI 2
AI: Logic in AI 2AI: Logic in AI 2
AI: Logic in AI 2
 
Logical agent8910
Logical agent8910Logical agent8910
Logical agent8910
 
How expensive a logical agent is
How expensive a logical agent isHow expensive a logical agent is
How expensive a logical agent is
 
An Abductive Diagnosis and Modeling Concept for Wind Power Plants (DX 2014)
An Abductive Diagnosis and Modeling Concept for Wind Power Plants (DX 2014)An Abductive Diagnosis and Modeling Concept for Wind Power Plants (DX 2014)
An Abductive Diagnosis and Modeling Concept for Wind Power Plants (DX 2014)
 
Jarrar.lecture notes.aai.2011s.ch7.p logic
Jarrar.lecture notes.aai.2011s.ch7.p logicJarrar.lecture notes.aai.2011s.ch7.p logic
Jarrar.lecture notes.aai.2011s.ch7.p logic
 
Introduction iii
Introduction iiiIntroduction iii
Introduction iii
 
টেলিমেডিসিন কি
টেলিমেডিসিন কিটেলিমেডিসিন কি
টেলিমেডিসিন কি
 
Paypal
PaypalPaypal
Paypal
 
টাইমস(Times)
টাইমস(Times)টাইমস(Times)
টাইমস(Times)
 
Energy Efficient OS fo Android Powered Smart Devices
Energy Efficient OS fo Android Powered Smart DevicesEnergy Efficient OS fo Android Powered Smart Devices
Energy Efficient OS fo Android Powered Smart Devices
 
Road -map of Teledermatology for doctor-patient-citizen relationship
Road -map  of Teledermatology for doctor-patient-citizen relationshipRoad -map  of Teledermatology for doctor-patient-citizen relationship
Road -map of Teledermatology for doctor-patient-citizen relationship
 
Sql injection
Sql injectionSql injection
Sql injection
 

Similar to Artificial intelligence- Logic Agents

Similar to Artificial intelligence- Logic Agents (20)

AI-Unit4.ppt
AI-Unit4.pptAI-Unit4.ppt
AI-Unit4.ppt
 
l4.pptx
l4.pptxl4.pptx
l4.pptx
 
lect14-semantics.ppt
lect14-semantics.pptlect14-semantics.ppt
lect14-semantics.ppt
 
Logic.ppt
Logic.pptLogic.ppt
Logic.ppt
 
Knowledge based agent
Knowledge based agentKnowledge based agent
Knowledge based agent
 
Top school in delhi ncr
Top school in delhi ncrTop school in delhi ncr
Top school in delhi ncr
 
u-3 ppt.pptx
u-3 ppt.pptxu-3 ppt.pptx
u-3 ppt.pptx
 
PropositionalLogic.ppt
PropositionalLogic.pptPropositionalLogic.ppt
PropositionalLogic.ppt
 
artficial intelligence
artficial intelligenceartficial intelligence
artficial intelligence
 
Knowledge based agents
Knowledge based agentsKnowledge based agents
Knowledge based agents
 
m7-logic.ppt
m7-logic.pptm7-logic.ppt
m7-logic.ppt
 
AI Lecture 6 (logical agents)
AI Lecture 6 (logical agents)AI Lecture 6 (logical agents)
AI Lecture 6 (logical agents)
 
Logic
LogicLogic
Logic
 
Business EthicsSummer 2022 (1)Week 1, Lecture 2Chaeyoung
Business EthicsSummer 2022 (1)Week 1, Lecture 2ChaeyoungBusiness EthicsSummer 2022 (1)Week 1, Lecture 2Chaeyoung
Business EthicsSummer 2022 (1)Week 1, Lecture 2Chaeyoung
 
Knowledge Representation, Inference and Reasoning
Knowledge Representation, Inference and ReasoningKnowledge Representation, Inference and Reasoning
Knowledge Representation, Inference and Reasoning
 
4535092.ppt
4535092.ppt4535092.ppt
4535092.ppt
 
Logical reasoning 21.1.13
Logical reasoning 21.1.13Logical reasoning 21.1.13
Logical reasoning 21.1.13
 
Chapter1p3.pptx
Chapter1p3.pptxChapter1p3.pptx
Chapter1p3.pptx
 
Topic 5 Logical Agents Types Details.ppt
Topic 5 Logical Agents Types Details.pptTopic 5 Logical Agents Types Details.ppt
Topic 5 Logical Agents Types Details.ppt
 
Chapter 01 - p3.pdf
Chapter 01 - p3.pdfChapter 01 - p3.pdf
Chapter 01 - p3.pdf
 

Recently uploaded

What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 

Recently uploaded (20)

What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 

Artificial intelligence- Logic Agents

  • 2. Group Members  Nuruzzaman Milon (IT 09006)  Ali Saheb (IT 09001)  Sabbir Hossain (IT 09024)
  • 3. Contents  Knowledge Based Agents  Wumpus World  Logic in General  Propositional (Boolean) Logic  Reasoning with Horn Clauses  Forward Chain  Backward Chain
  • 4. Logical Agents  Humans can know “things” and “reason”  Representation: How are the things stored?  Reasoning: How is the knowledge used?  To solve a problem…  To generate more knowledge…  Knowledge and reasoning are important to artificial agents because they enable successful behaviors difficult to achieve otherwise  Useful in partially observable environments  Can benefit from knowledge in very general forms, combining and recombining information
  • 5. Knowledge-Based Agents  Central component of a Knowledge-Based Agent is a Knowledge-Base  A set of sentences in a formal language  Sentences are expressed using a knowledge representation language  Two generic functions:  TELL - add new sentences (facts) to the Knowledge Base  “Tell it what it needs to know”  ASK - query what is known from the Knowledge Base  “Ask what to do next”
  • 6. Knowledge-Based Agents  The agent must be able to:  Represent states and actions  Incorporate new percepts  Update internal representations of the world  Deduce hidden properties of the world  Deduce appropriate actions Inference Engine Knowledge-Base Domain- Independent Algorithms Domain- Specific Content
  • 8. Knowledge-Based Agents  Declarative  You can build a knowledge-based agent simply by “TELLing” it what it needs to know  Procedural  Encode desired behaviors directly as program code  Minimizing the role of explicit representation and reasoning can result in a much more efficient system
  • 9. Wumpus World  Performance Measure  Gold +1000, Death – 1000  Step -1, Use arrow -10  Environment  Square adjacent to the Wumpus are smelly  Squares adjacent to the pit are breezy  Glitter iff gold is in the same square  Shooting kills Wumpus if you are facing it  Shooting uses up the only arrow  Grabbing picks up the gold if in the same square  Releasing drops the gold in the same square  Actuators  Left turn, right turn, forward, grab, release, shoot  Sensors  Breeze, glitter, and smell
  • 10. Wumpus World  Characterization of Wumpus World  Observable  partial, only local perception  Deterministic  Yes, outcomes are specified  Episodic  No, sequential at the level of actions  Static  Yes, Wumpus and pits do not move  Discrete  Yes  Single Agent  Yes
  • 19. Other Sticky Situations  Breeze in (1,2) and (2,1)  No safe actions  Smell in (1,1)  Cannot move
  • 20. Logic  Knowledge bases consist of sentences in a formal language  Syntax  Sentences are well formed  Semantics  The “meaning” of the sentence  The truth of each sentence with respect to each possible world (model)  Example: x + 2 >= y is a sentence x2 + y > is not a sentence x + 2 >= y is true iff x + 2 is no less than y x + 2 >= y is true in a world where x = 7, y=1 x + 2 >= y is false in world where x = 0, y =6
  • 21. Logic  Entailment means that one thing follows logically from another |=  |= iff in every model in which is true, is also true  if is true, then must be true  the truth of is “contained” in the truth of
  • 22. Logic  Example:  A Knowledge Base containing  “Cleveland won”  “Dallas won”  Entails…  “Either Cleveland won or Dallas won”  Example: x + y = 4 entails 4 = x + y
  • 23. Logic  A model is a formally structured world with respect to which truth can be evaluated  M is a model of sentence if is true in m  Then KB |= if M(KB) M( ) M( ) x x x x x xx xx xxx xx x x x x x x x xxx xxx x x x x x x x x xxxxxx x x xx xxx x x xx x x x x x xx xxx x x x x x x x xxx x x x xxx xxx x xx xxxx x M(KB) xx x x x x x x x x x x
  • 24. Logic  Entailment in Wumpus World  Situation after detecting nothing in [1,1], moving right, breeze in [2,1]  Consider possible models for ? assuming only pits  3 Boolean choices => 8 possible models
  • 25. Logic
  • 26. Logic  Inference is the process of deriving a specific sentence from a KB (where the sentence must be entailed by the KB)  KB |-i = sentence can be derived from KB by procedure I  “KB’s are a haystack”  Entailment = needle in haystack  Inference = finding it
  • 27. Logic  Soundness  i is sound if…  whenever KB |-i is true, KB |= is true  Completeness  i is complete if  whenever KB |= is true, KB |-i is true  If KB is true in the real world, then any sentence derived from KB by a sound inference procedure is also true in the real world
  • 28. Propositional Logic  AKA Boolean Logic  False and True  Proposition symbols P1, P2, etc are sentences  NOT: If S1 is a sentence, then ¬S1 is a sentence (negation)  AND: If S1, S2 are sentences, then S1 S2 is a sentence (conjunction)  OR: If S1, S2 are sentences, then S1 S2 is a sentence (disjunction)  IMPLIES: If S1, S2 are sentences, then S1 S2 is a sentence (implication)  IFF: If S1, S2 are sentences, then S1 S2 is a sentence (biconditional)
  • 29. Propositional Logic P Q ¬P P Q P Q P Q P Q False False True False False True True False True True False True True False True False False False True False False True True False True True True True
  • 30. Reasoning with Horn Clauses  Forward Chaining  For each new piece of data, generate all new facts, until the desired fact is generated  Data-directed reasoning  Backward Chaining  To prove the goal, find a clause that contains the goal as its head, and prove the body recursively  (Backtrack when you chose the wrong clause)  Goal-directed reasoning
  • 31. Forward Chaining  AND-OR Graph  multiple links joined by an arc indicate conjunction – every link must be proved  multiple links without an arc indicate disjunction – any link can be proved
  • 40. Backward Chaining  Idea: work backwards from the query q:  To prove q by BC,  Check if q is known already, or  Prove by BC all premises of some rule concluding q  Avoid loops  Check if new subgoal is already on the goal stack  Avoid repeated work: check if new subgoal  Has already been proved true, or  Has already failed
  • 52. Forward Chaining vs. Backward Chaining  Forward Chaining is data driven  Automatic, unconscious processing  E.g. object recognition, routine decisions  May do lots of work that is irrelevant to the goal  Backward Chaining is goal driven  Appropriate for problem solving  E.g. “Where are my keys?”, “How do I start the car?”  The complexity of BC can be much less than linear in size of the KB