Introducing KRR Flashcards

1
Q

Knowledge Representation and Reasoning

A

Concerns
… the representation of knowledge in a form suitable for computational manipulation and exchange,
… together with the use of reasoning
… to process knowledge represented in this way
… in order to both generate new knowledge and uncover properties of existing knowledge.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

RDF

A

Resource Description Framework

A way to represent knowledge using triples.

(Subject, predicate, object)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Advantage of RDF

A

A set of triples forms a graph where the nodes are labelled by things that can be subjects or objects, and the directed links are labelled by predicates.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Ontology

A

An engineering artifact, usually a model of (some aspect of) the world.

It introduces vocabulary describing various aspects of the domain being modelled and provides an explicit specification of the intended meaning of that vocabulary.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

OWL

A

Web Ontology Language.

A W3C standard designed for the Semantic Web, and much more expressive than RDF.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Logic

A

The study of entailment (and syntax, semantics, rules of inference).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Propositional logic

A

The only things manipulated are propositions; things that are true or false.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

First order logic

A

Besides statements that can be true or false, there are also individual things that the statements can refer to.

There is quantification over the collection of individuals.

That means you can say that all of them have some property, or that at least one of them has some property.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Higher order logic

A

Differs from first order logic by allowing quantification over sets of individuals (second order logic), or sets of sets, or sets of sets of sets, etc of the individuals. This can make some things easier to express at the expense of being more impractical to do than any computation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Modal logics

A

These arose traditionally in expressing statements about propositions such as necessity and possibility.

Modal logics can be used to represent concepts such as an agent knowing something, a person believing something, someone being obliged to do something, one event happening in the future or the past of something else (temporal logics).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Non monotonic logics

A

In classical logic, adding new facts does not make something false that was previously true.

But in a log of human situations we do this in the sense of assuming things to be true that can be rejected after getting more information.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Compound proposition

A

A statement that consists of simpler propositions combined together.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Propositional logic builds statements out of: (3)

A
  • Letters (or words) for atomic propositions, often called propositional variables or just variables
  • The logical connectives
  • Parentheses ‘(‘ and ‘)’ to avoid ambiguity.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

5 Logical Connectives

A
  • ∧ (and),
  • ∨ (or),
  • ¬ (not),
  • → (implies / if – then –),
  • ↔ (iff / – if and only if –).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Operator precedence

A
  1. ¬ (not),
  2. ∧ (and),
  3. ∨ (or),
  4. → (implies / if – then –),
  5. ↔ (iff / – if and only if –).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Tautology

A

This means a proposition is true under all values given to the variables it contains.

E.g. p ∨ ¬p is a tautology.

17
Q

Contingency

A

This means a proposition that is true overall when its variables are given some truth values, but false in other cases.

This means a proposition is true under all values given to the variables it contains.

E.g. p ⋁ q is a contingency.

18
Q

Contradiction

A

This means a proposition that is false overall whatever truth values its variables are given.

E.g. p ∧ ¬p is a contradiction.

19
Q

Satisfiable proposition

A

A proposition is said to be satisfiable when there is some choice of values for the variables that makes it true.

All tautologies and all contingencies are satisfiable.

20
Q

Logical implication

A

We say that proposition ɑ logically implies a proposition β if whenever ɑ evaluates to true, then β does so as well.

ɑ ⊫ β

21
Q

Literal

A

A variable or the negation of a variable

22
Q

Elementary product

A

A formula that is a conjunction of literals.

E.g. p ∧ q ∧ ¬p

23
Q

Elementary sum

A

A formula that is a disjunction of literals

E.g. p ∨ q ¬p

24
Q

Conjunctive normal form

A

A formula that is a conjunction of elementary sums.

25
Q

Disjunctive normal form

A

A formula that is a disjunction of elementary products.

26
Q

6 Rules to find CNF

A
  • p → q is replaced by ¬p ∨ q
  • ¬ ( p ∨ q ) is replaced by ¬p ∧ ¬q
  • ¬ ( p ∧ q ) is replaced by ¬p ∨ ¬q
  • ¬¬p is replaced by p
  • p ∨ ( q ∧ r) is replaced by ( p ∨ q ) ∧ ( p ∨ r )
  • ( p ∧ q ) ∨ r is replaced by ( p ∨ r ) ∧ ( q ∨ r )
27
Q

5 Rules to find DNF

A
  • p→q is replaced by ¬p ∨ q
  • ¬ ( p ∨ q ) is replaced by ¬p ∧ ¬q
  • ¬¬p is replaced by p.
  • p ∧ (q ∨ r) is replaced by ( p ∧ q ) ∨ ( p ∧ r )
  • ( p ∨ q ) ∧ r is replaced by ( p ∧ r ) ∨ ( q ∧ r )
28
Q

Principal CNF & DNF

A

There are lots of different formulas in DNF/CNF which are all logically equivalent to a given formula.

To get a unique form, we need to use the principal CNF & DNF.

These are “essentially unique” in the sense that they only differ in the ordering of the elementary sums or products involved.

29
Q

Implication →

A

p → q
* p is called the antecedent
* q is called the consequent.

The implication p→q asserts that:
if the antecedent p is true, then the consequent q bust also be true.

However, when p is false, p→q does not make any specific claim about the truth value of the consequent q, therefore it is considered true by default.

30
Q

Implication equivalence

A

A → B

is equivalent to

~B → ~A

and equivalent to

¬A ∨ B

31
Q

Maxterm

A

An elementary sum is a maxterm over a given set of variables iff it uses every variable in the set exactly once.

E.g..
* p over {p}
* ¬p over {p}
* p ∨ q over {p, q}
* p ∨ q ∨ ¬r over {p, q, r}

32
Q

Minterm

A

An elementary product is a minterm over a given set of variables iff it uses every variable in the set exactly once.

E.g.
* p over {p}
* ¬p over {p}
* p ∧ q over {p, q}
* p ∧ q ∧ ¬r over {p, q, r}

33
Q

Define

Principal DNF

A

A formula is in principal DNF over a set of variables iff
* it is in DNF, and
* every elementary product is a minterm (over the set)

34
Q

Principal CNF

A

A formula is in principal CNF over a set of variables iff
* it is in CNF, and
* every elementary sum is a maxterm (over the set)

E.g.
* T
* p over {p}
* p ∨ q over {p, q}
* ( p ∨ q ) ∧ ( ¬p ∨ q ) over {p, q}
* ( p ∨ ¬q ∨ r ) ∧ ( p ∨ q ∨ ¬r ) over {p, q, r}