The University of Nottingham

Similar documents
The University of Nottingham

CS 730/830: Intro AI. 3 handouts: slides, asst 6, asst 7. Wheeler Ruml (UNH) Lecture 12, CS / 16. Reasoning.

CS 730/730W/830: Intro AI

6.825 Techniques in Artificial Intelligence. Logic Miscellanea. Completeness and Incompleteness Equality Paramodulation

Section Summary. Section 1.5 9/9/2014

CSE Discrete Structures

Foundations of Mathematics Worksheet 2

Introduction to Logic in Computer Science: Autumn 2007

Syntax of FOL. Introduction to Logic in Computer Science: Autumn Tableaux for First-order Logic. Syntax of FOL (2)

Propositional Logic: Methods of Proof (Part II)

Introduction to Intelligent Systems

Resolution for Predicate Logic

Chapter 1. Logic and Proof

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Section Summary. Predicate logic Quantifiers. Negating Quantifiers. Translating English to Logic. Universal Quantifier Existential Quantifier

CSC384: Intro to Artificial Intelligence Knowledge Representation II. Required Readings: 9.1, 9.2, and 9.5 Announcements:

Resolution for Predicate Logic

The Importance of Being Formal. Martin Henz. February 5, Propositional Logic

CS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning.

CS 514, Mathematics for Computer Science Mid-semester Exam, Autumn 2017 Department of Computer Science and Engineering IIT Guwahati

Ling 130 Notes: Predicate Logic and Natural Deduction

The semantics of ALN knowledge bases is the standard model-based semantics of rst-order logic. An interpretation I contains a non-empty domain O I. It

Propositional Logic Not Enough

Introduction to Intelligent Systems

COMP9414: Artificial Intelligence First-Order Logic

Propositional Logic: Review

COMP4418: Knowledge Representation and Reasoning First-Order Logic

Discrete Mathematics: Midterm Test with Answers. Professor Callahan, section (A or B): Name: NetID: 30 multiple choice, 3 points each:

Bayesian Networks. Semantics of Bayes Nets. Example (Binary valued Variables) CSC384: Intro to Artificial Intelligence Reasoning under Uncertainty-III

Meta-logic derivation rules

Sample Problems for all sections of CMSC250, Midterm 1 Fall 2014

Exercises for the Logic Course

CogSysI Lecture 8: Automated Theorem Proving

Bayesian decision theory. Nuno Vasconcelos ECE Department, UCSD

Propositional Logic: Bottom-Up Proofs

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning

AI Principles, Semester 2, Week 2, Lecture 5 Propositional Logic and Predicate Logic

Propositional Resolution

Section 1.1 Propositions

Logic and Bayesian Networks

Topic #3 Predicate Logic. Predicate Logic

Section 2.1: Introduction to the Logic of Quantified Statements

Two hours. Note that the last two pages contain inference rules for natural deduction UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE

Propositional logic. First order logic. Alexander Clark. Autumn 2014

Modal Logics. Most applications of modal logic require a refined version of basic modal logic.

Lecture 4: Proposition, Connectives and Truth Tables

Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5)

Clausal Presentation of Theories in Deduction Modulo

Logical Agents (I) Instructor: Tsung-Che Chiang

Introduction to Logic in Computer Science: Autumn 2006

Probability Calculus. Chapter From Propositional to Graded Beliefs

CSCI-495 Artificial Intelligence. Lecture 17

CSI30. Chapter 1. The Foundations: Logic and Proofs Nested Quantifiers

Description Logics. Foundations of Propositional Logic. franconi. Enrico Franconi

Predicates, Quantifiers and Nested Quantifiers

G52DOA - Derivation of Algorithms Predicate Logic

COMP 409: Logic Homework 5

Propositional Logic: Methods of Proof (Part II)

[1] Describe with examples, the three inference rules involving quantifiers

2/2/2018. CS 103 Discrete Structures. Chapter 1. Propositional Logic. Chapter 1.1. Propositional Logic

Artificial Intelligence: Knowledge Representation and Reasoning Week 2 Assessment 1 - Answers

Artificial Intelligence Chapter 7: Logical Agents

Propositional and Predicate Logic - V

Artificial Intelligence Chapter 9: Inference in First-Order Logic

Reasoning with Bayesian Networks

1. True/False (40 points) total

STRATEGIES OF PROBLEM SOLVING

Formal (Natural) Deduction for Predicate Calculus

KB Agents and Propositional Logic

Using first-order logic, formalize the following knowledge:

Semantics I, Rutgers University Week 3-1 Yimei Xiang September 17, Predicate logic

06 From Propositional to Predicate Logic

Lecture 3 : Predicates and Sets DRAFT

Exercises. Exercise Sheet 1: Propositional Logic

Propositional Logic Language

Propositional Logic: Syntax

Inference Methods In Propositional Logic

Logic in AI Chapter 7. Mausam (Based on slides of Dan Weld, Stuart Russell, Subbarao Kambhampati, Dieter Fox, Henry Kautz )

To every formula scheme there corresponds a property of R. This relationship helps one to understand the logic being studied.

The non-logical symbols determine a specific F OL language and consists of the following sets. Σ = {Σ n } n<ω

Logic. Knowledge Representation & Reasoning Mechanisms. Logic. Propositional Logic Predicate Logic (predicate Calculus) Automated Reasoning

Logical reasoning - Can we formalise our thought processes?

Propositional Logic: Methods of Proof. Chapter 7, Part II

Self-assessment due: Monday 3/18/2019 at 11:59pm (submit via Gradescope)

Algorithm Independent Topics Lecture 6

Denote John by j and Smith by s, is a bachelor by predicate letter B. The statements (1) and (2) may be written as B(j) and B(s).

Slides for CIS 675. Huffman Encoding, 1. Huffman Encoding, 2. Huffman Encoding, 3. Encoding 1. DPV Chapter 5, Part 2. Encoding 2

Final exam of ECE 457 Applied Artificial Intelligence for the Spring term 2007.

The Bayesian Ontology Language BEL

Third Problem Assignment

Fuzzy Description Logics

3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations

cis32-ai lecture # 18 mon-3-apr-2006

Section Summary. Predicates Variables Quantifiers. Negating Quantifiers. Translating English to Logic Logic Programming (optional)

The paradox of knowability, the knower, and the believer

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas.

Section Summary. Predicate logic Quantifiers. Negating Quantifiers. Translating English to Logic. Universal Quantifier Existential Quantifier

Lecture 10: Predicate Logic and Its Language

CS 380: ARTIFICIAL INTELLIGENCE PREDICATE LOGICS. Santiago Ontañón

Foundation of proofs. Jim Hefferon.

Transcription:

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 3 MODULE, AUTUMN SEMESTER 2010-2011 KNOWLEDGE REPRESENTATION AND REASONING Time allowed TWO hours Candidates may complete the front cover of their answer book and sign their desk card but must NOT write anything else until the start of the examination period is announced Answer FOUR out of SIX questions Only silent, self contained calculators with a Single-Line Display are permitted in this examination. Dictionaries are not allowed with one exception. Those whose first language is not English may use a standard translation dictionary to translate between that language and English provided that neither language is the subject of this examination. Subject specific translation dictionaries are not permitted. No electronic devices capable of storing and retrieving text, including electronic dictionaries, may be used. DO NOT turn your examination paper over until instructed to do so Turn Over

2 1. (a) Express the following sentences in first-order logic, using the binary predicates StudyAt, W orkat, LocatedIn, =, the unary predicate U niversity, and the constants uon (for the University of Nottingham) uob (for the University of Birmingham), and n (for Nottingham): S1 Everybody who studies at the University of Nottingham, does not study at the University of Birmingham. S2 There are exactly two universities in Nottingham. S3 There are at least two people who both work at the University of Nottingham and study there. (b) Prove that the following argument is not logically sound (that the premises do not logically entail the conclusion). (10 marks) Some people are clever. Some people are greedy. Some people are clever and greedy. (c) Prove that the propositional resolution rule below is sound (the premises logically entail the conclusion). (9 marks) α 1 p α 2 p α 1 α 2 2. (a) Reduce the following sentences to clausal form: S1 x y(p (x, y) zr(x, y, z)) S2 x yr(x, y) x y R(x, y) S3 x y z (P (x, z) P (y, z)) (b) Show by resolution that clauses C1 C3 below entail xq(x, a). C1 [ P (x), R(x, f(x))] C2 [ R(y, z), Q(z, y)] C3 [P (a)] (10 marks) (c) Give a substitution which unifies P (f(x), g(f(x), y), z) and P (x 1, g(x 1, f(y 1 )), f(z 1 )). (d) Define the notion of most general unifier (mgu). Then give an example of an mgu substitution and a non-mgu substitution. (e) Is it possible to unify [P (g(x))] and [ P (f(x))]? Explain your answer.

3 3. Recall the description logic DL given in the textbook: Concepts: atomic concept is a concept if r is a role and b is a concept, then [ALL r b] is a concept (e.g. [ALL : Child Girl] describes someone all of whose children are girls). if r is a role and n is a positive integer, then [EXISTS n r] is a concept (e.g. [EXISTS 2 : Child] describes someone who has at least 2 children) if r is a role and c is a constant, then [FILLS r c] is a concept (e.g. [FILLS : Child john] describes someone whose child is John). if b 1,..., b n are concepts, [AND b 1,..., b n ] is a concept. Sentences: if b 1 and b 2 are concepts then b 1 b 2 is a sentence (all b 1 s are b 2 s, b 1 is subsumed by b 2 ) if b 1 and b 2 are concepts then b 1. = b2 is a sentence (b 1 is equivalent to b 2 ) if c is a constant and b a concept then c b is a sentence (the individual denoted by c satisfies the description expressed by b). (a) Express the following concepts in DL using the atomic concepts Animal, and F ish, and the roles : T ail, : Leg, and : Eat. C1 An animal that has a tail C2 An animal that has a tail and four legs C3 An animal that eats only fish C4 An animal that eats only things that themselves eat only fish (b) Express the following sentences in DL using the atomic concepts Cat, F ish, and Animal, the roles : Leg, and : Eat, and the constant tiddles: S1 Tiddles is a cat who eats only fish S2 Cats are animals that have four legs (4 marks) (c) Show that john [ALL : Child Girl] and john [FILLS : Child mary] entail john [EXISTS 1 : Child] in DL. (d) Show that the sentence john [ALL : Child Girl] does not entail john [EXISTS 1 : Child] in description logic. Turn Over

4 4. (a) Give the backward chaining procedure for propositional Horn clauses. (b) Trace it on the following example: KB = {[r, p, q], [t, r, s], [p], [q], [s]}, goal: t. (c) Define SLD derivation and explain why backward chaining is a special case of SLD derivation. (d) Show that there is an SLD derivation of [] from the KB in part(b) and [ t]. (e) Is backward chaining for propositional Horn clauses guaranteed to terminate? If not, give an example of a case where backward chaining does not terminate and explain why. 5. (a) Define the closed world assumption and the entailment relation = CW A. (b) Why is the closed world assumption used in knowledge representation (i.e., why not store negative data in the knowledge base)? (c) What does monotonicity of an entailment relation mean? Give an example to show that = CW A is non-monotonic. (d) How are rules of the form Normally, As are Bs formalised in circumscription theory? Formalise Normally, scientists are intelligent. (e) Give definitions of minimal models and minimal entailment in circumscription theory. (f) Show that John is intelligent follows by circumscription from a knowledge base which contains sentences John is a scientist and Normally, scientists are intelligent. (g) Show that minimal entailment is not monotonic.

5 6. (a) What is a Bayesian network? What kind of information does it represent and how? Explain what an independence assumption is. (b) Give an example of an independence assumption implicit in the following network: Pr(a)=0.01 d Pr(d)=0.05 a c e b Pr(b)=0.2 Pr(c a b)=0.8 Pr(c a b)=0.5 Pr(c a b)=0.4 Pr(c a b)=0.01 Pr(e c d)=0.9 Pr(e c d)=0.4 Pr(e c d)=0.5 Pr(c c d)=0.03 (c) What is the advantage of using belief networks compared to explicitly giving a joint probability distribution? (d) Give Bayes s conditional probability rule (i.e., define P r(a b) in terms of P r(a b) and P r(b)). (1 marks) (e) Give the chain rule for computing the probability of the conjunction P r(a 1... a n ). (1 marks) (f) Suppose that we have events a, b and c, and we know that P r(a) is 1/3, P r(b a) is 1/2 and P r(c) is 1/2. We also know that c is conditionally independent of a and b. Compute P r( a b c). (g) Represent the following scenario as a Bayesian network: Disease d is caused by exposure to chemical c. The probability of c is 0.03. The probability of having d after exposure to c is 0.8. d almost never occurs without exposure to c (probability of d given no exposure is 0.001). The disease d may cause complication a. However a may also be caused by another disease b. The probability of b is 0.1. The probability of a given d but not b is 0.6, which is the same as the probability of a given b but not d. The probability of a given both b and d is 0.9, the probability of a without either b or d is 0.02. (h) What is the probability of d c b given the scenario in part (g) above? End