Problems on Logical Agents

Slides:



Advertisements
Similar presentations
PROOF BY CONTRADICTION
Advertisements

UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
Logic Use mathematical deduction to derive new knowledge.
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2004.
Propositional Logic Russell and Norvig: Chapter 6 Chapter 7, Sections 7.1—7.4 Slides adapted from: robotics.stanford.edu/~latombe/cs121/2003/home.htm.
Logic CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Logic.
Quiz Propositional Logic. 1. Let A,B,C be propositions, i.e. they can take values False (F) or True (T). a) How many possible worlds are there.
3/30/00 Agents that Reason Logically by Chris Horn Jiansui Yang Xiaojing Wu.
Logic in general Logics are formal languages for representing information such that conclusions can be drawn Syntax defines the sentences in the language.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 9 Jim Martin.
Logical Agents Chapter 7. Why Do We Need Logic? Problem-solving agents were very inflexible: hard code every possible state. Search is almost always exponential.
Knoweldge Representation & Reasoning
Chapter 5 Objectives 1. Find ordered pairs associated with two equations 2. Solve a system by graphing 3. Solve a system by the addition method 4. Solve.
Inference is a process of building a proof of a sentence, or put it differently inference is an implementation of the entailment relation between sentences.
Applications of Propositional Logic
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes Jan 19, 2012.
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Logical Agents Logic Propositional Logic Summary
1 Knowledge Representation. 2 Definitions Knowledge Base Knowledge Base A set of representations of facts about the world. A set of representations of.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
An Introduction to Artificial Intelligence – CE Chapter 7- Logical Agents Ramin Halavati
S P Vimal, Department of CSIS, BITS, Pilani
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 11 of 41 Wednesday, 15.
Logical Agents Chapter 7. Knowledge bases Knowledge base (KB): set of sentences in a formal language Inference: deriving new sentences from the KB. E.g.:
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
1 Logical Agents Chapter 7. 2 A simple knowledge-based agent The agent must be able to: –Represent states, actions, etc. –Incorporate new percepts –Update.
The Exciting World of Natural Deduction!!! By: Dylan Kane Jordan Bradshaw Virginia Walker.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
Thinking Mathematically
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
11 Artificial Intelligence CS 165A Thursday, October 25, 2007  Knowledge and reasoning (Ch 7) Propositional logic 1.
Reasoning with Propositional Logic automated processing of a simple knowledge base CD.
Dr. Shazzad Hosain Department of EECS North South Universtiy Lecture 04 – Part B Propositional Logic.
Computing & Information Sciences Kansas State University Lecture 12 of 42 CIS 530 / 730 Artificial Intelligence Lecture 12 of 42 William H. Hsu Department.
Logical Agents Chapter 7. Outline Knowledge-based agents Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem.
Proof Methods for Propositional Logic CIS 391 – Intro to Artificial Intelligence.
Knowledge Repn. & Reasoning Lecture #9: Propositional Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2005.
Artificial Intelligence Logical Agents Chapter 7.
Computing & Information Sciences Kansas State University Monday, 18 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 11 of 42 Monday, 18 September.
Logical Agents. Inference : Example 1 How many variables? 3 variables A,B,C How many models? 2 3 = 8 models.
 Conjunctive Normal Form: A logic form must satisfy one of the following conditions 1) It must be a single variable (A) 2) It must be the negation of.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Simple Logic.
ECE457 Applied Artificial Intelligence Fall 2007 Lecture #6
EA C461 Artificial Intelligence
Chapter 7. Propositional and Predicate Logic
DISCRETE MATHEMATICS CHAPTER I.
Knowledge Representation and Reasoning
Knowledge and reasoning – second part
EA C461 – Artificial Intelligence Logical Agent
Propositional Logic Session 3
Logical Inference 4 wrap up
EA C461 – Artificial Intelligence Logical Agent
Logical Agents Chapter 7 Selected and slightly modified slides from
Logical Agents Chapter 7.
Artificial Intelligence
Propositional Equivalences
CS 416 Artificial Intelligence
Knowledge and reasoning – second part
Back to “Serious” Topics…
Logical Agents Chapter 7.
Chapter 7. Propositional and Predicate Logic
Knowledge Representation I (Propositional Logic)
TRUTH TABLES.
Quiz Nov Logic.
Quiz Propositional Logic.
Logical Inference 4 wrap up
LECTURE 06 Logical Agent Course : T0264 – Artificial Intelligence
Logical Agents Prof. Dr. Widodo Budiharto 2018
Presentation transcript:

Problems on Logical Agents Artificial Intelligence Programming Spring 2016

Question 1 Under propositional logic, assume you have 6 propositions named A, B, C, D, E, and F (all Boolean). Observe that V is disjunction or OR, & is conjunction or AND, and ~ is negation or NOT. Answer the following.   What is the total number of models defined in this language?  64. This the total combinations of truth values.    What is the difference between the statement: a sentence is true and the statement: a sentence is valid? (use the concept of models to explain the difference).   A sentence is true under a certain model; the same sentence can be false under a different model. When we say “a sentence is valid”, that means the sentence is true in ALL models. How many models are true under the statement A & B & C ?  8.

Question 2 Answer the following questions:   a. What does it mean to say the A |= B or that A entails B? It means that in every model that A is true B is also true. b. Let the knowledge base KB contain the following statements : {a, a→~b}. Then which of the following is true? KB entails b and KB entails ~b KB entails ~b but does not entail b The only Model that is consistent with KB is a=true and b=true KB does not entail b or ~b Answer: b

Model Consistent with KB ( i.e., KB = true) Question 2b Solution Answer: b KB entails b and KB entails ~b KB entails ~b but does not entail b The only Model that is consistent with KB is a=true and b=true KB does not entail b or ~b From the table below we see that whenever KB is true , ~b is true. a b ~b a→~b Model Consistent with KB ( i.e., KB = true) T F No Yes

Question 3 Consider the following statements: An algorithm is sound if it derives all entailed sentences from a knowledge base. An algorithm is sound if it derives only entailed sentences from a knowledge base. An algorithm is complete if it derives all entailed sentences from a knowledge base. An algorithm is complete if it derives only entailed sentences from a knowledge base. Which of the following is true? I and IV II and III Only II Only IV

Question 3 Consider the following statements: An algorithm is sound if it derives all entailed sentences from a knowledge base. An algorithm is sound if it derives only entailed sentences from a knowledge base. An algorithm is complete if it derives all entailed sentences from a knowledge base. An algorithm is complete if it derives only entailed sentences from a knowledge base. Which of the following is true? I and IV II and III Only II Only IV Answer: b

Question 4 Assume the following knowledge base: Sentence 1: Knight(Philip) V Queen(Elizabeth) V ~Prince(Henry) Sentence 2: Princess(Mary) V Prince(Henry) Sentence 3: ~Princess(Mary) Sentence 4: ~Knight(Philip) Use unification and resolution to prove that the following statement is true: Queen(Elizabeth)

Question 4 Assume the following knowledge base: Sentence 1: Knight(Philip) V Queen(Elizabeth) V ~Prince(Henry) Sentence 2: Princess(Mary) V Prince(Henry) Sentence 3: ~Princess(Mary) Sentence 4: ~Knight(Philip) Add new sentence: ~Queen(Elizabeth) Sentences 1 and 2 yield: Knight(Philip) V Queen(Elizabeth) V Princess(Mary) Combining with ~Queen(Elizabeth) yields Knight(Philip) V Princess(Mary) Combining with sentence 3: Knight(Philip) Combing with sentence 4: Contradiction.

Question 5 Assume the following knowledge base: Sentence 1: Robot(X) V Jedi(X) V ~RoboCop(X) Sentence 2: RoboCop(C3PO) V Jedi(Joda) Sentence 3: ~Jedi(Y) Sentence 4: RoboCop(R2D2) V Jedi(Luke) V Clone(Vader) Sentence 5: ~Clone(Z) Use unification and resolution to prove that the following statement is true: Robot(R2D2) Explain your substitutions clearly.

Question 5 Assume the following knowledge base: Sentence 1: Robot(X) V Jedi(X) V ~RoboCop(X) Sentence 2: RoboCop(C3PO) V Jedi(Joda) Sentence 3: ~Jedi(Y) Sentence 4: RoboCop(R2D2) V Jedi(Luke) V Clone(Vader) Sentence 5: ~Clone(Z) Add new sentence: ~Robot(R2D2) Sentences 1 and previous statement yield: Jedi(R2D2) V ~RoboCop(R2D2) with X/R2D2 Combining with Sentence 3: ~RoboCop(R2D2) with Y/R2D2 Combining with sentence 4: Jedi(Luke) V Clone(Vader) Combining with sentence 3: Clone(Vader) with Y/Luke Combining with sentence 5: Contradiction with Y/Vader Sentence 2 is not used.

Question 6 Let P and Q be two Boolean variables . Then which of the following is true? [V=OR, ^=AND] P V Q is valid and P ^ Q is satisfiable P V ~P is valid and P ^ ~P is satisfiable P V ~Q is valid and P ^ ~Q is satisfiable P V ~P is valid and P ^ Q is satisfiable

Question 6 Let P and Q be two Boolean variables . Then which of the following is true? [V=OR, ^=AND] P V Q is valid and P ^ Q is satisfiable P V ~P is valid and P ^ ~P is satisfiable P V ~Q is valid and P ^ ~Q is satisfiable P V ~P is valid and P ^ Q is satisfiable Answer: d Looking at the tables below we can say that only P V ~P is valid. P V Q , P ^ Q , P V ~Q and P ^ ~Q are satisfiable. P Q P V Q P ^ Q P V ~Q P ^ ~Q T F P P V ~P P ^ ~P T F

Question 7 Draw an AND-OR Graph for the following Horn Clauses: P → Q L ∧ M → P B ∧ L → M A ∧ P → L A ∧ B → L A B (Artificial Intelligence A Modern Approach by Stuart Russell and Peter Norvig. 3rd Edition, Prentice Hall, 2010)

Question 7 Draw an AND-OR Graph for the following Horn Clauses: P → Q L ∧ M → P Answer : B ∧ L → M A ∧ P → L A ∧ B → L A B (Artificial Intelligence A Modern Approach by Stuart Russell and Peter Norvig. 3rd Edition, Prentice Hall, 2010)