Lec2. Boolean algebra Flashcards
A function from S to S is also called a ____ on S
unary operation
A function from S^2 to S is called a _____ on S
binary operation
True/False: unary operation and binary operation assuming that DOD = domain
true
notion for unary operation?
~
True/False: ~u= u^ ~ = ~(u)
false - the first 2 is true but the last one is false
Notation for binary operation?
any symbol
True/False: u * v = *((u,v))
False
State the idempotent property
for any u in S we have u★u=u
State the commutative property
for any (u,v0 in S^2 we have u★v=v★u
State the associate property
for any (u,v,w) in S^3 we have u★(v★w) =(u★v)★w
Example of commutative and associative
+, x, min, and max
Example of idempotent
average of 2 equal numbers, min, max
State the distribute property: ★ is distribute over *
for any (u,v,w) in S^3 we have u★ (vw) = (u★v) * (u ★ w) and (vw) ★ u = (vu) ★ (wu)
Example of distributive
x is distribute over +, min is distribute over max and vice versa
State the neutral element
n is a neutral / zero element for ★ if n ★ u = u ★ n = u for any u in S