CS2002 - Basics and Logic Laws

?
  • Created by: Chris
  • Created on: 10-05-16 00:38
What are boolean variables called?
Propositions
1 of 30
Which combination of A->B is the only false one
True ->False
2 of 30
What are short circuits?
The way in which C processes logical conditions.
3 of 30
How do short circuits work?
The expression is parsed from left to right, it exits (returns true or false) when the first validating argument has been met.
4 of 30
Example of short circuit A&&B
if A is false, exit and return false, else continue
5 of 30
Example of short circuit A || B
if A is true, exit and return true, else continue
6 of 30
Why should Boolean operations be absolutely simplified?
Because unnecessary components waste time in a circuit
7 of 30
What is a tautology
if and only if A and B ( when A and B are equivalent)
8 of 30
Name two ways in proving a tautology
by creating truth table of ab or by comparing table a to table b
9 of 30
Write the equation for replacement
G (three lines) G[E/F]
10 of 30
how many combinations can a truth table have
2^n, where n = number of variables
11 of 30
What is the clue for the associative law
Order of brackets does not matter
12 of 30
Associative Laws
(A | B) | C = A | (B |C) AND (A & B) & C = A & (B & C)
13 of 30
What is the clue for distribution laws
Expanding brackets
14 of 30
Distribution Laws
A V (B &C) = AvB & AvC
15 of 30
What is the clue for the complement laws
rejecting complements
16 of 30
Complement laws
-0 = 1
17 of 30
Complement laws
-1 = 0
18 of 30
Complement laws
-A | A = 1
19 of 30
Complement laws
-A v A= 0
20 of 30
De morgans clue
negation = opposite -> opposite signs and negated variables
21 of 30
De morgan
-(a & b )= -a | -b
22 of 30
De morgan
-(a | b) = -a & -b
23 of 30
What the clue is Absorption Law
flip flop operators ABSORB minority variable
24 of 30
Absorption law
A | (A&B) = A
25 of 30
Absorption law
A &(A|B) = A
26 of 30
Zero and unit law
A&0 = 0 A & 1 = A
27 of 30
Zero and unit law
A | 1 = 1 A | 0 = A
28 of 30
Idempotence Laws
A & A = A A | A = A
29 of 30
Commutative Laws
A & B = B & A A | B = B | A
30 of 30

Other cards in this set

Card 2

Front

Which combination of A->B is the only false one

Back

True ->False

Card 3

Front

What are short circuits?

Back

Preview of the front of card 3

Card 4

Front

How do short circuits work?

Back

Preview of the front of card 4

Card 5

Front

Example of short circuit A&&B

Back

Preview of the front of card 5
View more cards

Comments

No comments have yet been made

Similar Computing resources:

See all Computing resources »See all Computational Logic resources »