Download Representation of Knowledge: Data Structures, Interpretative Procedures | CAP 5635 and more Study notes Computer Science in PDF only on Docsity!
Representation of Knowledge
Data Structures
Interpretative Procedures
Analogy of an encyclopedia
Involves:
Types of Knowledge
- Normally thought of in terms of facts: āBirds have wingsā āSnow is whiteā
- Should be able to represent:
- Objects
- Classes or categories of objects
- Descriptions of objects
- Actions or occurrences in the world: āJohn kissed Mary in the carā āThe sky will fall tomorrowā
- Should be able to represent:
- The event
- The time course of a sequence of events
- The cause and effect relations between events
Objects
Events
Types of Knowledge
Performance
Meta-Knowledge
- How to do things ( performance of skills ): āRiding a bikeā āComposing Sentencesā āProving Theoremsā
- NOTE: It is often hard to draw a line between performance knowledge and object knowledge. Pushing too hard on this point leads back to the fundamental philosophical issue of what knowledge is
- Knowledge of what we know, including: āExtent and origins of knowledge on some subjectā āReliability of certain factsā āRelative importance of specific facts about the worldā
- Includes what we know about our own performance: our strengths, weaknesses, confusabilities, levels of expertise in different domains, and feelings of progress during problem solving
Using Knowledge Involves Three Stages:
- Involves more than just adding facts
- New data must be related to what we already know:
- New data must be classified so it can be later retrieved
- New data can interact with old, possibly resulting in inferences
- Would like to acquire new knowledge in a form that is natural to humans 1. Acquiring more knowledge
Involves two important and interlocking topics:
Concerned with:
We will examine:
Sound: Complete:
Logic
Syntax of statements Determination of truth through syntactic manipulation of formulas
- Propositional Logic
- Predicate Logic
- First-order Logic
- Non-monotonic Logic
Propositional Logic (Calculus)
Logical Propositions (Sentences)
- Properly formed statement having one of two possible truth values
- Symbols Timās car is green P Grass is green Q Today is Monday R
- Truth Values: T F
- Logical connectives ^ v ~
Facts are represented as:
Formed from:
X Y ~X X^Y XvY X=>Y X=Y T T T F F T F F
Connectives
Connectives allow expression of statements like: The book is on the table or the book is on the chair
If Socrates is a man, then Socrates is mortal
Equivalence or Tautology
~ ( ~ P ) = P P => Q = ~P v Q
DeMorganās ~ ( P v Q ) = ~P ^ ~Q ~ ( P ^ Q ) = ~P v ~Q
Distributive P v ( Q ^ R ) = ( P v Q ) ^ ( P v R ) P ^ ( Q v R) = ( P ^ Q ) v ( P ^ R)
Commutative ( P ^ Q ) = ( Q ^ P ) ( P v Q ) = ( Q v P )
Associative (( P ^ Q ) ^ R ) = ( P ^ ( Q ^ R )) (( P v Q ) v R ) = ( P v ( Q v R ))
Contrapositive P => Q = ~Q => ~P
Definitions
Lisp-like atomic symbol that can be: Truth Value Constant Variable Predicate Lower case symbol Starts with an upper case character
Returns a truth value representing the relationship between the n terms (or symbolic expressions) A single value predicate divides objects of the world into two distinct groups
Symbol
Constant Variable Predicate
Used to reference certain groups (through the use of variables)
Quantifiers
Universal Quantifier
Existential Quantifier
Equivalencies
~ ā X. p(X) = ā X. ~ p(X)
~ ā X. p(X) = ā X. ~ p(X)
ā X. p(X) = ā Y. p(Y)
ā X. p(X) = ā Y. p(Y)
ā X. ( p(X) ^ q(X)) = ā X. p(X) ^ ā Y. q(Y)
ā X. ( p(X) v q(X)) = ā X. p(X) v ā Y. q(Y)
Model
- A subset of all the legal propositions from our language
- All propositions in a model are true
- All propositions not in a model are false
- From the propositions in a model we can determine the truth of any compound statement
Constants: Relations: Models: