arithmetic and boolean algebra Flashcards

(13 cards)

1
Q

what is idempotence? plus mathematical definition

A

an operation is idempotent if doing it several times is the same as once
X ^ X = X
X or X = x

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

how do we check idempotence

A

check with truth table, that they hold for both cases, when x = 0 and when x = 1

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

what is commutativity?

A

you can swap the order of inputs to an and-gate or an or-gate without changing the result

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

mathematical definition of commutativity

A

X ^ Y = Y^X
X or Y = Y or X

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

what is associativity?

A

gives a way to compute the logical and/or of many inputs, by using several 2-input and/or gates

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

definition of associativity

A

x ^ (y^z) = (x^Y) ^ z
x or (y or z) = (x or y) or z

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

what is the function of the half adder?

A

adding two bits

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

draw a half adder circuit

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

logic gate for half adder

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

what is the function of the full adder?

A

to add two binary numbers, we must add three bits for each column

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

draw the full adder circuit?

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

what are rules for sum and carry in the full adder circuit?

A

the sum is 1 if an odd number of inputs are 1
the carry is 1 if two or more inputs are 1

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

what is carry and sum function?

A

the carry function is just and2, and the sum function is just xor2

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