Quiz Logic Flashcards

1
Q

p -> q ==

A

-p v q

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

Universal Quantification

A

“for all”, “for every”, “for each”

upsidedown A

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

Existential Quantification

A

backwards E

“for some”, “there exists”, “there is one”

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

Monotonic

A

in logic systems means can a truth ever be retracted

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

Converse (of an implication)

A

is obtained by reversing the roles of the premise and conclusion. Example p -> q becomes q -> p.

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

Inverse (of an implication)

A

is obtain by negating the premise and the conclusion. -p -> -q

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

Contrapositive of p -> q

A

-q -> -p

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

Converse, Inverse and Contrapositive of p -> q. Which are always equal?

A

Converse = q -> p
Inverse = -p -> -q
Contrapositive = -q -> -p
Contrapositive is equivalent to p -> q

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

Statements that are always true or false under the same conditions are called?

A

tautologies. example p->q == -p v q

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

Associative Law
(p v q) v r = ?
(p ^ q) ^ r = ?

A

(p v q) v r == p v (q v r) == p v (q v r)
or
(p ^ q) ^ r == p ^ (q ^ r)

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

Distributive Laws
p v (q ^ r) = ?
p ^ (q v r) = ?

A

p v (q ^ r) == (p v q) ^ (p v r)
or
p ^ (q v r) == (p ^ q) v (p ^ r)

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

De Morgan’s Laws

A

-(p ^ q) == -p v -q
or
-(p v q) == -p ^ - q

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

p <> q ==

A

(p -> q) ^ (q -> p)
or
(-p v q) ^ (-q v p)

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

Resolution and how it works?

A

method assumes that the premises are true and what we are trying to prove is false, and then try to find a contradiction. If we find a contradiction then the proof is true.

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

An expression is in clausal form if there is no

A

implication ( -> )
conjunction ( ^ )
double negation - (-)

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

Steps to convert to CNF?

A
  1. Remove Biconditional a b == (a -> b) ^ (b -> a)
  2. Remove Implication a -> b == -a v b
  3. Move Negation Inwards -(a v b) == -a ^ -b
    or
    -(a ^ b) == -a v -b
    or
    -(-a) == a
  4. Apply Distribution and/or communitive law
    a ^ (b v y) == (a ^ b) v (a ^ y)
    or
    a v (b ^ y) == (a v b) ^ (a v y)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

CNF Step 1

A

Remove Biconditional

18
Q

CNF Step 2

A

Remove Implication

19
Q

CNF Step 3

A

Move Negation Inwards

20
Q

CNF Step 4

A

Apply Distribution and/or Communitive Law

21
Q

Forward Chaining

A

Bottom Up approach. Data driven thru knowledge base to check assertion

22
Q

Backward Chaining

A

Top Down approach. Goal driven. Divide Goal into Sub goals. seems to use recursion

23
Q

closed world assumption

A

means that the database contains all knowledge there is

24
Q

monotonic vs non-monotonic

A

in a monotonic KB the conclusions can never be removed. in non-monotonic kb the assertions to be revooked

25
Q

resolution with predicate logic

A

derive a contradiction by finding clauses that resolve to the empty clause

26
Q

Aspects of a good knowledge base

A

transparent (easy to understand)
we can detect it (understand how it got to where it is, or what choice it is suggesting… etc.)
it should be easy to relate to the real world entities it represents knowledge of

27
Q

extentional

A

explicit and specific 1, 3, 5, 7

28
Q

intensional

A

implicit (implied) short compact Natural Odd Numbers < 9

29
Q

executability vs comprehensibility

A

program can do it but can we know how?

30
Q

Types of knowledge representations

A
graphical sketches
graphs
conceptual graphs
concept maps
search trees

logic
production systems

oo
frames
scripts

semantic networks

agents

31
Q

graphical sketchs

A

good for humans, suppress data detals

32
Q

graphs

A

bridges of Konigsberg and search trees

33
Q

decision tree

A

yes no type flow chart

34
Q

production system

A

require control system and a database

rule set

35
Q

What was the first OO Language? What tools does OO offer?

A

small talk first purely OO language 1969.

Inheritance, Encapsulation, Polymorphism, separation of interface and implementation

36
Q

frames

A

objects are the same but differ only in the specific details. Frames give a method to store this. Can be represent as networks of nodes and relations

37
Q

weakness of frames

A

world is messy, definitions are important and getting them right first is hard. Cancelling default values is harder than it looks. As changes must percolate through the system

38
Q

Semantic Networks are often used in

A

natural language processing and knowledge classification, and can allow capture of arbitrary or complex associations

39
Q

Concept Maps Smart Books

A

develop concept map via interviews with subject matter experts.
translate final concept map Hypercard/Toolbox
Implement Working prototype
test with students

40
Q

Agents

A

independent programs/systems that specialize in small tasks, that when work together can solve larger problems. Agent acts intelligently (AI) Agents remember what they did and what inputs caused them to do it. Used in P2P Financial Trading

41
Q

The Major Components Of An AI Production System

A

Global Database
Rule Set
Control System

42
Q

Characteristics of expert systems:

A

High performance
Highly responsive
Reliable
Understandable