CPSC 322 Introduction to Artificial Intelligence

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

1 Knowledge Representation Introduction KR and Logic.
Computer Science CPSC 322 Lecture 25 Top Down Proof Procedure (Ch 5.2.2)
Logic Use mathematical deduction to derive new knowledge.
Answer Set Programming Overview Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma de Guadalajara
Logic.
CPSC 322 Introduction to Artificial Intelligence September 15, 2004.
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
CPSC 322, Lecture 19Slide 1 Propositional Logic Intro, Syntax Computer Science cpsc322, Lecture 19 (Textbook Chpt ) February, 23, 2009.
CPSC 322 Introduction to Artificial Intelligence September 20, 2004.
CS 561, Sessions Knowledge and reasoning – second part Knowledge representation Logic and representation Propositional (Boolean) logic Normal forms.
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 9 Jim Martin.
Let remember from the previous lesson what is Knowledge representation
Knowledge Interchange Format Michael Gruninger National Institute of Standards and Technology
1 Knowledge Based Systems (CM0377) Lecture 4 (Last modified 5th February 2001)
Formal Models in AGI Research Pei Wang Temple University Philadelphia, USA.
CMPF144 FUNDAMENTALS OF COMPUTING THEORY Module 5: Classical Logic.
Pattern-directed inference systems
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
ARTIFICIAL INTELLIGENCE Lecture 3 Predicate Calculus.
Slide 1 Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs Jim Little UBC CS 322 – CSP October 20, 2014.
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
CS6133 Software Specification and Verification
Introduction to Prolog. Outline What is Prolog? Prolog basics Prolog Demo Syntax: –Atoms and Variables –Complex Terms –Facts & Queries –Rules Examples.
CPSC 322, Lecture 19Slide 1 (finish Planning) Propositional Logic Intro, Syntax Computer Science cpsc322, Lecture 19 (Textbook Chpt – 5.2) Oct,
1 CSC384: Intro to Artificial Intelligence Lecture 5.  Knowledge Representation.
Computer Science CPSC 322 Lecture 22 Logical Consequences, Proof Procedures (Ch 5.2.2)
Nikolaj Bjørner Microsoft Research DTU Winter course January 2 nd 2012 Organized by Flemming Nielson & Hanne Riis Nielson.
11 Artificial Intelligence CS 165A Thursday, October 25, 2007  Knowledge and reasoning (Ch 7) Propositional logic 1.
1 Knowledge Based Systems (CM0377) Lecture 6 (last modified 20th February 2002)
Logic: Proof procedures, soundness and correctness CPSC 322 – Logic 2 Textbook §5.2 March 7, 2011.
Artificial Intelligence CIS 342 The College of Saint Rose David Goldschmidt, Ph.D.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
Some Thoughts to Consider 5 Take a look at some of the sophisticated toys being offered in stores, in catalogs, or in Sunday newspaper ads. Which ones.
Artificial Intelligence Logical Agents Chapter 7.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
By P. S. Suryateja Asst. Professor, CSE Vishnu Institute of Technology
Computer Science cpsc322, Lecture 20
ece 720 intelligent web: ontology and beyond
CS 4700: Foundations of Artificial Intelligence
Knowledge Representation and Reasoning
Knowledge and reasoning – second part
ARTIFICIAL INTELLIGENCE
CS 4700: Foundations of Artificial Intelligence
Knowledge Representation
EA C461 – Artificial Intelligence Logical Agent
Discrete Structures for Computer Science
Logical Agents Chapter 7.
Logic Use mathematical deduction to derive new knowledge.
Logic: Top-down proof procedure and Datalog
Artificial Intelligence
Assignment-2 due now Enterprise Architecture Conference Sat. Oct 27
Knowledge and reasoning – second part
Back to “Serious” Topics…
Logical Agents Chapter 7.
Logic: Domain Modeling /Proofs + Computer Science cpsc322, Lecture 22
CS 416 Artificial Intelligence
Knowledge Representation I (Propositional Logic)
CSNB234 ARTIFICIAL INTELLIGENCE
Computer Science cpsc322, Lecture 20
Bottom Up: Soundness and Completeness
Propositional Logic CMSC 471 Chapter , 7.7 and Chuck Dyer
Logical and Rule-Based Reasoning Part I
Representations & Reasoning Systems (RRS) (2.2)
Logical Agents Prof. Dr. Widodo Budiharto 2018
Presentation transcript:

CPSC 322 Introduction to Artificial Intelligence September 17, 2004

Highlights from last time Reasoning and Representation System A language for communication with the computer formal language A way to assign meaning to the language semantics Procedures to compute answers to problems given as input in the language reasoning theory or proof procedure

Highlights from last time An Implementation of an RRS consists of: A language parser that maps legal sentences of the formal language to some internal form stored as data structures A reasoning procedure that combines a reasoning theory with a search strategy. The search strategy is a commitment to how to resolve the nondeterminism. Note that this is all independent of semantics. This is just symbol manipulation by following a set of rules.

Highlights from last time Simplifying Assumptions for first RRS An agent’s knowledge can be usefully described in terms of individuals and relations among individuals. An agent’s knowledge base consists of definite and positive statements. (i.e., nothing vague, no negation) The environment is static. (i.e., nothing changes) There are only a finite number of individuals of interest in the domain Some of these assumptions will be relaxed as we go on.

Highlights from last time (One of) Two New Words inference: (1) The act or process of deriving logical conclusions from premises known or assumed to be true. (2) The act of reasoning from facutal knowledge or evidence. Three general classes of inference: • deductive inference • inductive inference • abductive inference

Clarification human inference may not be characterized as deductive inference, but... we don’t know how human inference works abduction and induction don’t maintain truth abduction and induction are poorly specified and harder to implement we don’t necessarily want our computers to exhibit human-like intelligence - maybe we just want the good parts and not the bad parts

Highlights from last time Syntax for CILOG(Datalog) A variable is a word that starts with an uppercase letter. X, Y, Kurt, The_bald_guy, Q42 A constant is a word starting with a lowercase letter or it can be all digits (a numeral). x, y, kurt, daughter, happy, q42, 493 A predicate symbol is a word starting with a lowercase letter. x, y, kurt, daughter, happy, q42 A term is either a variable or a constant.

Highlights from last time Syntax for CILOG(Datalog) An atomic symbol (or atom) is of the form p or p(t1 ,..., tn ) where p is a predicate symbol and each ti is a term. happy, teaches(kurt, cs322), between(s3, l2, cb1), mother(elizabeth, X) A body is of the form a1 & ... & am (or a1 ^ ... ^ am) where each ai is an atom. A definite clause is either an atom, a, called a fact, or of the form a <- b, called a rule, where a, the head, is an atom and b is a body. The <- is read as “if”.

Highlights from last time Syntax for CILOG(Datalog) A query is of the form ask b (or ?b) where b is a body. An expression is either a term, an atom, a definite clause, or a query. A knowledge base is a set of definite clauses.

Dissecting the definite clause parent(elizabeth, charles) mother(X, Y) <- parent(X, Y) & female(X)

Dissecting the definite clause parent(elizabeth, charles) mother(X, Y) <- parent(X, Y) & female(X) variables

Dissecting the definite clause constants parent(elizabeth, charles) mother(X, Y) <- parent(X, Y) & female(X) variables

Dissecting the definite clause constants parent(elizabeth, charles) terms mother(X, Y) <- parent(X, Y) & female(X) variables

Dissecting the definite clause parent(elizabeth, charles) predicate symbols mother(X, Y) <- parent(X, Y) & female(X)

Dissecting the definite clause parent(elizabeth, charles) atoms mother(X, Y) <- parent(X, Y) & female(X)

Dissecting the definite clause parent(elizabeth, charles) fact (a single atom) mother(X, Y) <- parent(X, Y) & female(X)

Dissecting the definite clause parent(elizabeth, charles) mother(X, Y) <- parent(X, Y) & female(X) rule

Dissecting the definite clause parent(elizabeth, charles) head (one atom) body (conjunction of 1 or more atoms) mother(X, Y) <- parent(X, Y) & female(X) rule

Semantics in the RRS Informally: A semantics tells YOU how symbols in the language correspond to things in the task domain A semantics tells YOU how to use the correspondences to interpret sentences in the language The correspondences between symbols in the language and objects in the domain define an interpretation for the language

Semantics in the RRS Formally: An interpretation is a triple I = (D, f, p) where D, the domain, is a nonempty set whose elements are individuals f is a mapping that assigns to each constant an element of D p is a mapping that assigns to each n-ary predicate symbol a function from Dn into {TRUE, FALSE}

Here’s an example George x Mum Elizabeth x Philip Margaret Diana x Charles Anne x Mark Andrew x Sarah Edward x Sophie William Harry Peter Zara Beatrice Eugenie Louise Adapted from Artificial Intelligence: A Modern Approach by Stuart Russell and Peter Norvig Updated from http://www.royal.gov.uk

Here’s an example Charles William Harry Adapted from Artificial Intelligence: A Modern Approach by Stuart Russell and Peter Norvig Updated from http://www.royal.gov.uk

A Sample Interpretation D = , , constants = charles, william, harry predicate symbols = male (unary) female (unary) parent (binary) What about f and p ?

A Sample Interpretation f is a mapping that assigns to each constant an element of D f(charles) = f(william) = f(harry) =

A Sample Interpretation p is a mapping that assigns to each n-ary predicate symbol a function from Dn into {TRUE, FALSE} p(male)( ) = TRUE

A Sample Interpretation p is a mapping that assigns to each n-ary predicate symbol a function from Dn into {TRUE, FALSE} p(female)( ) = FALSE

A Sample Interpretation p is a mapping that assigns to each n-ary predicate symbol a function from Dn into {TRUE, FALSE} p(parent)( , ) = FALSE p(parent)( , ) = TRUE

A Sample Interpretation p is a mapping that assigns to each n-ary predicate symbol a function from Dn into {TRUE, FALSE} p(parent)( , ) = FALSE

A Sample Interpretation p is a mapping that assigns to each n-ary predicate symbol a function from Dn into {TRUE, FALSE} p(parent)( , ) = FALSE

A Sample Interpretation male(charles). male(william). male(harry). parent(charles, william). parent(charles, harry). Wow. That was a lot of semantics to work out just to get to here. What if we want to add more individuals or more relationships?

A Sample Interpretation p is a mapping that assigns to each n-ary predicate symbol a function from Dn into {TRUE, FALSE} p(brother)( , ) = FALSE

A Sample Interpretation p is a mapping that assigns to each n-ary predicate symbol a function from Dn into {TRUE, FALSE} p(brother)( , ) = FALSE p(brother)( , ) = TRUE

A Sample Interpretation p is a mapping that assigns to each n-ary predicate symbol a function from Dn into {TRUE, FALSE} p(brother)( , ) = FALSE p(brother)( , ) = TRUE

A Sample Interpretation male(charles). male(william). male(harry). parent(charles, william). parent(charles, harry). brother(X, Y) <- male(X) & parent(Z, X) & parent(Z, Y). Let’s test it out and see how it works.

Let’s talk about homework The webpage at www.cs.ubc.ca/~eiselt/cs322 will have your homework assignment by 6:00pm today. Look at the entry for Friday, September 17. Collaboration policy Turning it in