© 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J....

53
© 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly

Transcript of © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J....

Page 1: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 1

CPE/CSC 481: Knowledge-Based Systems

CPE/CSC 481: Knowledge-Based Systems

Dr. Franz J. Kurfess

Computer Science Department

Cal Poly

Page 2: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 2

Course OverviewCourse Overview Introduction Knowledge Representation

Semantic Nets, Frames, Logic

Reasoning and Inference Predicate Logic, Inference

Methods, Resolution

Reasoning with Uncertainty Probability, Bayesian Decision

Making

Expert System Design ES Life Cycle

CLIPS Overview Concepts, Notation, Usage

Pattern Matching Variables, Functions,

Expressions, Constraints

Expert System Implementation Salience, Rete Algorithm

Expert System Examples Conclusions and Outlook

Page 3: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 3

Overview Logic and Reasoning

Overview Logic and Reasoning

Motivation Objectives Knowledge and Reasoning

logic as prototypical reasoning system

syntax and semantics validity and satisfiability logic languages

Reasoning Methods propositional and predicate

calculus inference methods

Knowledge Representation and Reasoning Methods Production Rules Semantic Nets Schemata and Frames Logic

Important Concepts and Terms

Chapter Summary

Page 4: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 4

LogisticsLogistics

Term Project Lab and Homework Assignments Exams Grading

Page 5: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 5

Bridge-InBridge-In

Page 6: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 6

Pre-TestPre-Test

Page 7: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 7

MotivationMotivation

Page 8: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 8

ObjectivesObjectives

Page 9: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 11

Introduction to LogicIntroduction to Logic expresses knowledge in a particular mathematical notation

All birds have wings --> ¥x. Bird(x) -> HasWings(x) rules of inference

guarantee that, given true facts or premises, the new facts or premises derived by applying the rules are also true

All robins are birds --> ¥x Robin(x) -> Bird(x)

given these two facts, application of an inference rule gives: ¥x Robin(x) -> HasWings(x)

Page 10: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 12

Logic and Knowledge Logic and Knowledge rules of inference act on the superficial structure or

syntax of the first 2 formulas doesn't say anything about the meaning of birds and robins could have substituted mammals and elephants etc.

major advantages of this approach deductions are guaranteed to be correct to an extent that

other representation schemes have not yet reached easy to automate derivation of new facts

problems computational efficiency uncertain, incomplete, imprecise knowledge

Page 11: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 13

Validity and SatisfiabilityValidity and Satisfiability a sentence is valid or necessarily true if and only if it is true under

all possible interpretations in all possible worlds also called a tautology IsBird(Robin) V ~IsBird(Robin)

Stench[1,1] V ~Stench[1,1]OpenArea[square in front of me] V Wall[square in front of me] is NOT a tautology!

assumes every square has either a wall or an open area, so not true for all worlds"If every square has either a wall or an open area in it, then OpenArea[square in front of me] V

Wall[square in front of me]"

is a tautology... a sentence is satisfiable iff there is some interpretation in some

world for which it is true a sentence that is not satisfiable is unsatisfiable (also known as a

contradiction): It is raining and it is not raining.

Page 12: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 14

Summary of Logic LanguagesSummary of Logic Languages propositional logic

facts true/false/unknown

first-order logic facts, objects, relations true/false/unknown

temporal logic facts, objects, relations, times true/false/unknown

probability theory facts degree of belief [0..1]

fuzzy logic degree of truth degree of belief [0..1]

Page 13: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 15

Propositional LogicPropositional Logic

Syntax Semantics Validity and Inference Models Inference Rules Complexity

Page 14: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 16

SyntaxSyntax symbols

logical constants True, False propositional symbols P, Q, … logical connectives

conjunction , disjunction , negation , implication , equivalence

parentheses , sentences

constructed from simple sentences conjunction, disjunction, implication, equivalence, negation

Page 15: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 17

BNF Grammar Propositional LogicBNF Grammar Propositional Logic

Sentence AtomicSentence | ComplexSentence

AtomicSentence True | False | P | Q | R | ...

ComplexSentence (Sentence )

| Sentence Connective Sentence

| Sentence

Connective | | |

ambiguities are resolved through precedence or parentheses

e.g. P Q R S is equivalent to ( P) (Q R)) S

Page 16: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 18

SemanticsSemantics

interpretation of the propositional symbols and constants symbols can be any arbitrary fact

sentences consisting of only a propositional symbols are satisfiable, but not valid

the constants True and False have a fixed interpretation True indicates that the world is as stated False indicates that the world is not as stated

specification of the logical connectives frequently explicitly via truth tables

Page 17: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 19

Truth Tables for ConnectivesTruth Tables for Connectives

PTrueTrue FalseFalse

P QFalseFalseFalseTrue

P QFalseTrueTrueTrue

P QTrueTrueFalse True

P QTrueFalseFalseTrue

QFalseTrueFalse True

PFalseFalseTrueTrue

Page 18: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 20

Validity and InferenceValidity and Inference

truth tables can be used to test sentences for validity one row for each possible combination of truth values for

the symbols in the sentence the final value must be True for every sentence

Page 19: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 26

Inference Rules Inference Rules

more efficient than truth tables

Page 20: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 27

Modus Ponens Modus Ponens

eliminates =>

(X => Y), X

______________

Y If it rains, then the streets will be wet. It is raining. Infer the conclusion: The streets will be wet. (affirms the

antecedent)

Page 21: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 28

Modus tollensModus tollens (X => Y), ~Y _______________ ¬ X

If it rains, then the streets will be wet. The streets are not wet. Infer the conclusion: It is not raining.

NOTE: Avoid the fallacy of affirming the consequent: If it rains, then the streets will be wet. The streets are wet. cannot conclude that it is raining.

If Bacon wrote Hamlet, then Bacon was a great writer. Bacon was a great writer. cannot conclude that Bacon wrote Hamlet.

Page 22: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 29

SyllogismSyllogism

chain implications to deduce a conclusion)

(X => Y), (Y => Z)

_____________________

(X => Z)

Page 23: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 30

More Inference RulesMore Inference Rules

and-elimination and-introduction or-introduction double-negation elimination unit resolution

Page 24: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 31

Resolution Resolution

(X v Y), (~Y v Z)

_________________

(X v Z)basis for the inference mechanism in the Prolog

language and some theorem provers

Page 25: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 32

Complexity issuesComplexity issues truth table enumerates 2n rows of the table for any proof

involving n symbol it is complete computation time is exponential in n

checking a set of sentences for satisfiability is NP-complete but there are some circumstances where the proof only involves a

small subset of the KB, so can do some of the work in polynomial time if a KB is monotonic (i.e., even if we add new sentences to a KB, all

the sentences entailed by the original KB are still entailed by the new larger KB), then you can apply an inference rule locally (i.e., don't have to go checking the entire KB)

Page 26: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 33

Horn clauses or sentences Horn clauses or sentences

class of sentences for which a polynomial-time inference procedure exists P1 ^ P2 ^ ...^Pn => Q

where Pi and Q are non-negated atoms

not every knowledge base can be written as a collection of Horn sentences

Page 27: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 34

Reasoning in Knowledge-Based Systems

Reasoning in Knowledge-Based Systems

shallow and deep reasoningforward and backward chainingalternative inference methodsmetaknowledge

Page 28: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 35

Shallow and Deep ReasoningShallow and Deep Reasoning shallow reasoning

also called experiential reasoning aims at describing aspects of the world heuristically short inference chains possibly complex rules

deep reasoning also called causal reasoning aims at building a model of the world that behaves like the “real thing” long inference chains often simple rules that describe cause and effect relationships

Page 29: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 36

Examples Shallow and Deep Reasoning

Examples Shallow and Deep Reasoning

shallow reasoning deep reasoning

IF a car has

a good battery

good spark plugs

gas

good tires

THEN the car can move

IF the battery is goodTHEN there is electricity

IF there is electricity ANDgood spark plugsTHEN the spark plugs will fire

IF the spark plugs fire ANDthere is gas

THEN the engine will run

IF the engine runs AND there are good tires

THEN the car can move

Page 30: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 37

Forward ChainingForward Chaining

given a set of basic facts, we try to derive a conclusion from these facts

example: What can we conjecture about Clyde?

IF elephant(x) THEN mammal(x)

IF mammal(x) THEN animal(x)

elephant (Clyde)

modus ponens: IF p THEN qp

q

unification: find compatible values for variables

Page 31: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 38

Forward Chaining ExampleForward Chaining ExampleIF elephant(x) THEN mammal(x)

IF mammal(x) THEN animal(x)

elephant(Clyde)

modus ponens:IF p THEN qp

q

elephant (Clyde)

IF elephant( x ) THEN mammal( x )

unification:find compatible values for variables

Page 32: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 39

Forward Chaining ExampleForward Chaining ExampleIF elephant(x) THEN mammal(x)

IF mammal(x) THEN animal(x)

elephant(Clyde)

modus ponens:IF p THEN qp

q

elephant (Clyde)

IF elephant(Clyde) THEN mammal(Clyde)

unification:find compatible values for variables

Page 33: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 40

Forward Chaining ExampleForward Chaining ExampleIF elephant(x) THEN mammal(x)

IF mammal(x) THEN animal(x)

elephant(Clyde)

modus ponens:IF p THEN qp

q

elephant (Clyde)

IF elephant(Clyde) THEN mammal(Clyde)

IF mammal( x ) THEN animal( x )

unification:find compatible values for variables

Page 34: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 41

Forward Chaining ExampleForward Chaining ExampleIF elephant(x) THEN mammal(x)

IF mammal(x) THEN animal(x)

elephant(Clyde)

modus ponens:IF p THEN qp

q

elephant (Clyde)

IF elephant(Clyde) THEN mammal(Clyde)

IF mammal(Clyde) THEN animal(Clyde)

unification:find compatible values for variables

Page 35: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 42

Forward Chaining ExampleForward Chaining ExampleIF elephant(x) THEN mammal(x)

IF mammal(x) THEN animal(x)

elephant(Clyde)

modus ponens:IF p THEN qp

q

elephant (Clyde)

IF elephant(Clyde) THEN mammal(Clyde)

IF mammal(Clyde) THEN animal(Clyde)

animal( x )

unification:find compatible values for variables

Page 36: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 43

Forward Chaining ExampleForward Chaining ExampleIF elephant(x) THEN mammal(x)

IF mammal(x) THEN animal(x)

elephant(Clyde)

modus ponens:IF p THEN qp

q

elephant (Clyde)

IF elephant(Clyde) THEN mammal(Clyde)

IF mammal(Clyde) THEN animal(Clyde)

animal(Clyde)

unification:find compatible values for variables

Page 37: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 44

Backward ChainingBackward Chaining

Page 38: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 45

Backward ChainingBackward Chaining

try to find supportive evidence (i.e. facts) for a hypothesis

example: Is there evidence that Clyde is an animal?

IF elephant(x) THEN mammal(x)

IF mammal(x) THEN animal(x)

elephant (Clyde)

modus ponens: IF p THEN qp

q

unification: find compatible values for variables

Page 39: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 46

Backward Chaining ExampleBackward Chaining ExampleIF elephant(x) THEN mammal(x)

IF mammal(x) THEN animal(x)

elephant(Clyde)

modus ponens:IF p THEN qp

q

IF mammal( x ) THEN animal( x )

animal(Clyde)

unification:find compatible values for variables

?

Page 40: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 47

Backward Chaining ExampleBackward Chaining ExampleIF elephant(x) THEN mammal(x)

IF mammal(x) THEN animal(x)

elephant(Clyde)

modus ponens:IF p THEN qp

q

IF mammal(Clyde) THEN animal(Clyde)

animal(Clyde)

unification:find compatible values for variables

?

Page 41: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 48

Backward Chaining ExampleBackward Chaining ExampleIF elephant(x) THEN mammal(x)

IF mammal(x) THEN animal(x)

elephant(Clyde)

modus ponens:IF p THEN qp

q

IF elephant( x ) THEN mammal( x )

IF mammal(Clyde) THEN animal(Clyde)

animal(Clyde)

unification:find compatible values for variables

?

?

Page 42: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 49

Backward Chaining ExampleBackward Chaining ExampleIF elephant(x) THEN mammal(x)

IF mammal(x) THEN animal(x)

elephant(Clyde)

modus ponens:IF p THEN qp

q

IF elephant(Clyde) THEN mammal(Clyde)

IF mammal(Clyde) THEN animal(Clyde)

animal(Clyde)

unification:find compatible values for variables

?

?

Page 43: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 50

Backward Chaining ExampleBackward Chaining ExampleIF elephant(x) THEN mammal(x)

IF mammal(x) THEN animal(x)

elephant(Clyde)

modus ponens:IF p THEN qp

q

elephant ( x )

IF elephant(Clyde) THEN mammal(Clyde)

IF mammal(Clyde) THEN animal(Clyde)

animal(Clyde)

unification:find compatible values for variables

?

?

?

Page 44: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 51

Backward Chaining ExampleBackward Chaining ExampleIF elephant(x) THEN mammal(x)

IF mammal(x) THEN animal(x)

elephant(Clyde)

modus ponens:IF p THEN qp

q

elephant (Clyde)

IF elephant(Clyde) THEN mammal(Clyde)

IF mammal(Clyde) THEN animal(Clyde)

animal(Clyde)

unification:find compatible values for variables

Page 45: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 52

Forward vs. Backward ChainingForward vs. Backward Chaining

Forward Chaining Backward Chainingplanning, control diagnosis

data-driven goal-driven (hypothesis)

bottom-up reasoning top-down reasoning

find possible conclusions supported by given facts

find facts that support a given hypothesis

similar to breadth-first search similar to depth-first search

antecedents (LHS) control evaluation

consequents (RHS) control evaluation

Page 46: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 53

Alternative Inference MethodsAlternative Inference Methods

Page 47: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 54

MetaknowledgeMetaknowledge

Page 48: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 55

Post-TestPost-Test

Page 49: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 57

Use of ReferencesUse of References

[Giarratano & Riley 1998][Russell & Norvig 1995][Jackson 1999][Durkin 1994]

[Giarratano & Riley 1998]

Page 50: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 58

ReferencesReferences [Altenkrüger & Büttner] Doris Altenkrüger and Winfried Büttner. Wissensbasierte Systems -

Architektur, Enwicklung, Echtzeit-Anwendungen. Vieweg Verlag, 1992. [Awad 1996] Elias Awad. Building Expert Systems - Principles, Procedures, and

Applications. West Publishing, Minneapolis/St. Paul, MN, 1996. [Bibel 1993] Wolfgang Bibel with Steffen Höldobler and Torsten Schaub.

Wissensrepräsentation und Inferenz - Eine grundlegende Einführung. Vieweg Verlag, 1993. [Durkin 1994] John Durkin. Expert Systems - Design and Development. Prentice Hall,

Englewood Cliffs, NJ, 1994. [Giarratano & Riley 1998] Joseph Giarratano and Gary Riley. Expert Systems - Principles

and Programming. 3rd ed., PWS Publishing, Boston, MA, 1998 [Jackson, 1999] Peter Jackson. Introduction to Expert Systems. 3rd ed., Addison-Wesley,

1999. [Russell & Norvig 1995] Stuart Russell and Peter Norvig, Artificial Intelligence - A Modern

Approach. Prentice Hall, 1995.

Page 51: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 59

Important Concepts and TermsImportant Concepts and Terms natural language processing neural network predicate logic propositional logic rational agent rationality Turing test

agent automated reasoning belief network cognitive science computer science hidden Markov model intelligence knowledge representation linguistics Lisp logic machine learning microworlds

Page 52: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 60

Summary Chapter-TopicSummary Chapter-Topic

Page 53: © 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

© 2002 Franz J. Kurfess Logic and Reasoning 61