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
resolution with predicate logic
derive a contradiction by finding clauses that resolve to the empty clause
26
Aspects of a good knowledge base
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
extentional
explicit and specific 1, 3, 5, 7
28
intensional
implicit (implied) short compact Natural Odd Numbers < 9
29
executability vs comprehensibility
program can do it but can we know how?
30
Types of knowledge representations
``` graphical sketches graphs conceptual graphs concept maps search trees ``` logic production systems oo frames scripts semantic networks agents
31
graphical sketchs
good for humans, suppress data detals
32
graphs
bridges of Konigsberg and search trees
33
decision tree
yes no type flow chart
34
production system
require control system and a database | rule set
35
What was the first OO Language? What tools does OO offer?
small talk first purely OO language 1969. | Inheritance, Encapsulation, Polymorphism, separation of interface and implementation
36
frames
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
weakness of frames
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
Semantic Networks are often used in
natural language processing and knowledge classification, and can allow capture of arbitrary or complex associations
39
Concept Maps Smart Books
develop concept map via interviews with subject matter experts. translate final concept map Hypercard/Toolbox Implement Working prototype test with students
40
Agents
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
The Major Components Of An AI Production System
Global Database Rule Set Control System
42
Characteristics of expert systems:
High performance Highly responsive Reliable Understandable