Docsity

Representation of Knowledge: Data Structures, Interpretative Procedures | CAP 5635, Study notes of Computer Science

Toggle sidebar
bg1
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
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

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: