DSTL Unit 2-1
DSTL Unit 2-1
4.Iden ty func on
if we have a func on f:X→X, then f is called the iden ty
func on if f(a)=a for every element a in X.
In other words, every element of the set X is mapped to
itself by the func on f.
i. x2 ii.x3 iii.(x2+1)/(x2+2)
N:1 If f: A -> B and g: B -> C are one-one func ons, show that g
o f is a one – one func on.
f and g are inver ble func ons then both are one-one and
onto func on
f (x1 ) = f (x2 ) x1 = x2 (from one-one)
g (y1 ) = g (y2 ) y1 = y2 (from one-one)
since (g f) (x1 ) = (g f) (x2 )
g [f(x1 )] = g [f (x2 )]
f (x1 ) = f(x2 ) [g is one-to-one]
Theta(Θ) notation:
x1 = x2 [f is one-to-one]
It is the method of expressing the both lower and
Since g is onto, for z C, there exists y B such that g (y) = z. upper bound of an function running time.
Also f being onto there exists x A such that f (x) = y. It is the measure of the average amount of time. The
Hence z = g (y) = g [f (x)] = (g f) (x) function f (n) = Θ(g (n))
Thus, g f is one-to-one onto func on and hence (g f) –1 c1.g(n) <= f(n) <= c2.g(n) where n>n0
exists.g o f is inver ble Example: 3n-3=O(n) as 2n<= 3n-3 <= 4n for all n≥3
Prove:(g f) –1 = f –1 g –1
(g f) –1 (z) = x
(g f) (x) = z g (f (x)) = z
g (y) = z where y = f (x)
y = g –1 (z)
f –1 (y) = f –1 (g –1 (z)) = (f –1 g–1) (z)
Idempotent law :
Boolean algebra works with variables that can have only To prove : a + a = a and a.a = a
two values: true (1) or false (0).
Let a = a + 0 by Iden ty
It defines opera ons like AND (⋅), OR (+), and NOT (x’) to
= a + a. a by Complement
manipulate these binary variables.
True is represented by 1 and false by 0. These values are = (a + a).(a + a) by Distribu ve
used to represent the outcomes of logical opera ons. = (a + a).1 by Complement
Using these opera ons, you can combine true/false = a + a by Iden ty
Now let a = a.1 by Iden ty
statements to form new statements and analyze their truth
= a.(a + a) by Complement
values.
Applica ons: in digital circuit design, computer = a.a + a.a by Distribu ve
programming, and logical reasoning. = a.a + 0 by Complement
= a.a by Iden ty
De Morgan’s law :
Fundamental rules defining proper es of logical opera ons
and variables. To prove : (a + b) = a.b
1. Iden ty laws: x+0=x and x⋅1=x To prove the theorem we will show that (a + b) + a.b = 1
2. Complement laws: x+x¯=1 and x⋅x¯=0 Consider ,
3. Associa ve laws: x+(y+z)=(x+y)+z and x⋅(y⋅z)=(x⋅y)⋅z (a + b) + a.b = {(a + b) + a}.{(a + b) + b} by Distribu ve
4. Distribu ve laws:x⋅(y+z)=(x⋅y)+(x⋅z) and x+(y⋅z)=(x+y)⋅(x+z) = {(b + a) + a}.{(a + b) + b} by Commuta ve
= {b + (a + a)}.{a + (b + b)} by Associa ve
= (b + 1).(a + 1) by Complement
Derived from axioms, they represent algebraic = 1.1 by Dominance
manipula ons applicable to Boolean expressions. =1
Idempotent laws : a. a + a = a b. a.a = a Also consider
Boundedness (Dominance) laws : (a) a + 1 = 1 (b) a.0 = 0 (a + b).ab = ab.(a + b) by Commuta ve
Absorp on laws : (a) a + (a.b) = a (b) a.(a + b) = a = ab.a + ab.b by Distribu ve
Associa ve laws : = a.(ab) + a.(b b) by Commuta ve
(a) (a + b) + c = a + (b + c) (b) (a.b).c = a.(b.c) = (a. a).b + a(b. b) by Associa ve
Uniqueness of complement : = 0. b + a.0 by Complement
a + x = 1 and a.x = 0, then x = a = b.0 + a.0 by Commuta ve
Involu on law : (a) = a = 0 + 0 by Dominance
De-Morgan’s laws : (a) (a + b) = a.b (b) (a.b) = a + b = 0 So, ab is complement of (a + b) i.e.(a + b) = a b
commuta ve laws: (a) a+b=b+a (b) a.b=b.a
No zeros allowed.
No diagonals.
Only power of 2 number of cells in each group.
Groups should be as large as possible.
Every one must be in at least one group.
Overlapping allowed.
Wrap around allowed.
Fewest number of groups possible.