For Friday Read Chapter 11, sections 1 and 2 Homework: –Chapter 10, exercises 1 and 5.

Slides:



Advertisements
Similar presentations
Big Ideas in Cmput366. Search Blind Search State space representation Iterative deepening Heuristic Search A*, f(n)=g(n)+h(n), admissible heuristics Local.
Advertisements

Logic Programming Automated Reasoning in practice.
1 Default Reasoning Q: How many wheels does John’s car have? A: Four (by default) The conclusion is withdrawn if one is supplied with the information that.
Default Reasoning the problem: in FOL, universally-quantified rules cannot have exceptions –  x bird(x)  can_fly(x) –bird(tweety) –bird(opus)  can_fly(opus)
Methods of Proof Chapter 7, second half.. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound)
1 DCP 1172 Introduction to Artificial Intelligence Chang-Sheng Chen Topics Covered: Introduction to Nonmonotonic Logic.
Converting formulas into a normal form Consider the following FOL formula stating that a brick is an object which is on another object which is not a pyramid,
WFSX programming Prolog programming style, but with the WFSX semantics Requires: –A new proof procedure (different from SLDNF), complying with WFS, and.
Knowledge Representation CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Methods of Proof Chapter 7, Part II. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound) generation.
Logic.
Knowledge Representation
Intelligent systems Lection 7 Frames, selection of knowledge representation, its combinations.
1 Knowledge Representation We’ve discussed generic search techniques. Usually we start out with a generic technique and enhance it to take advantage of.
Knowledge Representation and Reasoning (KR): A vibrant subfield of AI Jia You.
For Friday Finish chapter 10 No homework (get started on program 2)
CS 484 – Artificial Intelligence
Intelligent systems Lecture 6 Rules, Semantic nets.
 Contrary to the beliefs of early workers in AI, experience has shown that Intelligent Systems cannot achieve anything useful unless they contain a large.
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Logic in general Logics are formal languages for representing information such that conclusions can be drawn Syntax defines the sentences in the language.
Methods of Proof Chapter 7, second half.
Production Rules Rule-Based Systems. 2 Production Rules Specify what you should do or what you could conclude in different situations. Specify what you.
1 Chapter 15 Introduction to Planning. 2 Chapter 15 Contents l Planning as Search l Situation Calculus l The Frame Problem l Means-Ends Analysis l The.
1 Chapter 3 Knowledge Representation. 2 Chapter 3 Contents l The need for a good representation l Semantic nets l Inheritance l Frames l Object oriented.
Chapter 3: Methods of Inference Expert Systems: Principles and Programming, Fourth Edition.
KNOWLEDGE REPRESENTATION, REASONING AND DECLARATIVE PROBLEM SOLVING Chitta Baral Arizona State University Tempe, AZ
NONMONOTONIC LOGIC AHMED SALMAN MALIK. OVERVIEW Monotonic Logic Nonmonotonic Logic Usage and Applications Comparison with other forms of logic Related.
Knowledge Representation Semantic Network dan Frame.
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
For Friday Exam 1. For Monday No reading Take home portion of exam due.
Alternative representations: Semantic networks
Knowledge Representation CPTR 314. The need of a Good Representation  The representation that is used to represent a problem is very important  The.
For Wednesday Read chapter 13 Homework: –Chapter 10, exercise 5 (part 1 only, don’t redo) Progress for program 2 due.
Logical Agents Logic Propositional Logic Summary
Temporal Reasoning and Planning in Medicine Frame-Based Representations and Description Logics Yuval Shahar, M.D., Ph.D.
Structured Knowledge Chapter 7. 2 Logic Notations Does logic represent well knowledge in structures?
Artificial Intelligence Chapter 18. Representing Commonsense Knowledge.
For Friday No new reading Logic and Resolution Homework.
1 Chapter 15 Introduction to Planning. 2 Chapter 15 Contents l Planning as Search l Situation Calculus l The Frame Problem l Means-Ends Analysis l The.
For Friday Finish chapter 10 No homework. Program 2 Any questions?
For Friday Read Homework: –Chapter 10, exercise 22 I strongly encourage you to tackle this together. You may work in groups of up to 4 people.
Uncertainty in AI. Birds can fly, right? Seems like common sense knowledge.
Some Thoughts to Consider 8 How difficult is it to get a group of people, or a group of companies, or a group of nations to agree on a particular ontology?
1 CS 385 Fall 2006 Chapter 7 Knowledge Representation 7.1.1, 7.1.5, 7.2.
For Wednesday Read chapter 13 No homework. Program 2 Any questions?
For Monday Make sure you have read chapter 11 through section 3. No homework.
Knowledge Representation Fall 2013 COMP3710 Artificial Intelligence Computing Science Thompson Rivers University.
1 Propositional Logic Limits The expressive power of propositional logic is limited. The assumption is that everything can be expressed by simple facts.
1 Chapter 3 Knowledge Representation. 2 Chapter 3 Contents l The need for a good representation l Semantic nets l Inheritance l Frames l Object oriented.
Logical Agents Chapter 7. Outline Knowledge-based agents Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem.
Lecture 5 Frames. Associative networks, rules or logic do not provide the ability to group facts into associated clusters or to associate relevant procedural.
1 Frame Theory A vague paradigm - to organize knowledge in high-level structures “A Framework for Representing Knowledge” - Minsky, 1974 Knowledge is encoded.
Computing & Information Sciences Kansas State University Wednesday, 04 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 17 of 42 Wednesday, 04 October.
Knowledge Representation
Definition and Technologies Knowledge Representation.
Computing & Information Sciences Kansas State University Friday, 13 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 21 of 42 Friday, 13 October.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Knowledge Representation
Chapter 3: Methods of Inference
Limitations of First-Order Logic
Knowledge Representation
Chapter 3: Methods of Inference
Knowledge Representation and Inference
For Friday Read Chapter 11, section 3
Frame systems and semantic networks
Weak Slot-and-Filler Structures
Knowledge Representation
Logical reasoning systems
Logical reasoning systems
Presentation transcript:

For Friday Read Chapter 11, sections 1 and 2 Homework: –Chapter 10, exercises 1 and 5

Program 2 Any questions?

Issue 4: Categories How are categories defined? What makes reasoning about categories hard?

Semantic Networks Use graphs to represent concepts and the relations between them. Simplest networks are ISA hierarchies Must be careful to make a type/token distinction: Garfield isa Cat Cat(Garfield) Cat isa Feline  x (Cat (x)  Feline(x)) Restricted shorthand for a logical representation.

Semantic Nets/Frames Labeled links can represent arbitrary relations between objects and/or concepts. Nodes with links can also be viewed as frames with slots that point to other objects and/or concepts.

First Order Representation Rel(Alive,Animals,T) Rel(Flies,Animals,F) Birds  Animals Mammals  Animals Rel(Flies,Birds,T) Rel(Legs,Birds,2) Rel(Legs,Mammals,4) Penguins  Birds Cats  Mammals Bats  Mammals Rel(Flies,Penguins,F) Rel(Legs,Bats,2) Rel(Flies,Bats,T) Opus  Penguins Bill  Cats Pat  Bats Name(Opus,"Opus") Name(Bill,"Bill") Friend(Opus,Bill) Friend(Bill,Opus) Name(Pat,"Pat")

Inheritance Inheritance is a specific type of inference that allows properties of objects to be inferred from properties of categories to which the object belongs. –Is Bill alive? –Yes, since Bill is a cat, cats are mammals, mammals are animals, and animals are alive. Such inference can be performed by a simple graph traversal algorithm and implemented very efficiently. However, it is basically a form of logical inference  x (Cat(x)  Mammal(x))  x (Mammal(x)  Animal(x))  x (Animal(x)  Alive(x)) Cat(Bill) |- Alive(Bill)

Backward or Forward Can work either way Either can be inefficient Usually depends on branching factors

Semantic of Links Must be careful to distinguish different types of links. Links between tokens and tokens are different than links between types and types and links between tokens and types.

Link Types

Inheritance with Exceptions Information specified for a type gives the default value for a relation, but this may be over­ridden by a more specific type. –Tweety is a bird. Does Tweety fly? Birds fly. Yes. –Opus is a penguin. Does Opus fly? Penguin's don't fly. No.

Multiple Inheritance If hierarchy is not a tree but a directed acyclic graph (DAG) then different inheritance paths may result in different defaults being inherited. Nixon Diamond

Nonmonotonicity In normal monotonic logic, adding more sentences to a KB only entails more conclusions. if KB |- P then KB  {S} |- P Inheritance with exceptions is not monotonic (it is nonmonotonic) –Bird(Opus) –Fly(Opus)? yes –Penguin(Opus) –Fly(Opus)? no

Nonmonotonic logics attempt to formalize default reasoning by allow default rules of the form: –If P and concluding Q is consistent, then conclude Q. –If Bird(X) then if consistent Fly(x)

Defaults with Negation as Failure Prolog negation as failure can be used to implement default inference. fly(X) :­ bird(X), not(ab(X)). ab(X) :­ penguin(X). ab(X) :­ ostrich(X). bird(opus). ? fly(opus). Yes penguin(opus). ? fly(opus). No

Planning

Search What are characteristics of good problems for search? What does the search know about the goal state? Consider the package problem on the exam: –How well would search REALLY work on that problem?

Search vs. Planning Planning systems: –Open up action and goal representation to allow selection –Divide and conquer by subgoaling –Relax the requirement for sequential construction of solutions

Planning in Situation Calculus PlanResult(p,s) is the situation resulting from executing p in s PlanResult([],s) = s PlanResult([a|p],s) = PlanResult(p,Result(a,s)) Initial state At(Home,S_0)   Have(Milk,S_0)  … Actions as Successor State axioms Have(Milk,Result(a,s))  [(a=Buy(Milk)  At(Supermarket,s))  Have(Milk,s)  a ...)] Query s=PlanResult(p,S_0)  At(Home,s)  Have(Milk,s)  … Solution p = Go(Supermarket),Buy(Milk),Buy(Bananas),Go(HWS),…] Principal difficulty: unconstrained branching, hard to apply heuristics

The Blocks World We have three blocks A, B, and C We can know things like whether a block is clear (nothing on top of it) and whether one block is on another (or on the table) Initial State: Goal State: A BC A B C

Situation Calculus in Prolog holds(on(A,B),result(puton(A,B),S)) :­ holds(clear(A),S), holds(clear(B),S), neq(A,B). holds(clear(C),result(puton(A,B),S)) :­ holds(clear(A),S), holds(clear(B),S), holds(on(A,C),S), neq(A,B). holds(on(X,Y),result(puton(A,B),S)) :­ holds(on(X,Y),S), neq(X,A), neq(Y,A), neq(A,B). holds(clear(X),result(puton(A,B),S)) :­ holds(clear(X),S), neq(X,B). holds(clear(table),S).

neq(a,table). neq(table,a). neq(b,table). neq(table,b). neq(c,table). neq(table,c). neq(a,b). neq(b,a). neq(a,c). neq(c,a). neq(b,c). neq(c,b).

Situation Calculus Planner plan([],_,_). plan([G1|Gs], S0, S) :­ holds(G1,S), plan(Gs, S0, S), reachable(S,S0). reachable(S,S). reachable(result(_,S1),S) :­ reachable(S1,S). However, what will happen if we try to make plans using normal Prolog depth­first search?

Stack of 3 Blocks holds(on(a,b), s0). holds(on(b,table), s0). holds(on(c,table),s0). holds(clear(a), s0). holds(clear(c), s0). | ?­ cpu_time(db_prove(6,plan([on(a,b),on(b,c)],s0,S)), T). S = result(puton(a,b),result(puton(b,c),result(puton(a,table),s0))) T = E+01

Invert stack holds(on(a,table), s0). holds(on(b,a), s0). holds(on(c,b),s0). holds(clear(c), s0). ?­ cpu_time(db_prove(6,plan([on(b,c),on(a,b)],s0,S)),T). S = result(puton(a,b),result(puton(b,c),result(puton(c,table),s0))), T = 7.034E+00

Simple Four Block Stack holds(on(a,table), s0). holds(on(b,table), s0). holds(on(c,table),s0). holds(on(d,table),s0). holds(clear(c), s0). holds(clear(b), s0). holds(clear(a), s0). holds(clear(d), s0). | ?­ cpu_time(db_prove(7,plan([on(b,c),on(a,b),on(c,d)],s0,S)),T). S = result(puton(a,b),result(puton(b,c),result(puton(c,d),s0))), T = E hours!