QB - All Units
QB - All Units
is a tautology.
2. Define tautology. Prove that for any propositions p , q , r , the compound proposition
is a tautology.
3. Define a logical equivalence. By constructing truth tables, show that
P q
P q r t
8. Simplify the expression and draw the corresponding circuit and give the switching
table.
9. Construct the truth values for NAND and NOR. For any statements p , q prove that
10. Define and write the converse, inverse and contrapositive of the statement given
below: If Kabir wears brown pant, then he will wear white shirt.
11. Express the statement of the following argument in symbolic form and test the
14. Given that p, q,r are propositions having the truth values 0,0,1 respectively. Find the
truth values of the following propositions.
Solution
Let S denote the set of all permutations of 26 letters of the English alphabet without
Let A1 be the sub set of S which contains the pattern CAR. Thus, A1 consists of all
permutations (of above mentioned 26 letters) which contain the 3-letter pattern CAR
Therefore
|A1| = number of permutations of distinct objects consisting of the single pattern
Similarly, if A2, A3, A4 are the subjects of S which respectively contain the pattern
DOG, PUN, BYTE, we find that |A2| = 24!, |A3| = 24!, |A4| = 23!
Likewise, we find that:
|A1 A2| = number of permutations of distinct objects consisting of the two
patterns CAR and DOG, and 20 letters not present in these two patterns = (2 + 22)! =
22!
Similarly,
|A1 A3| = |A2 A3| = (26 – 6 +2) = 22!
|A1 A4| = |A2 A4| = |A3 A4| = (26 – 7 +2)! = 21
|A1 A2 A3| = (26 – 9 +3)! = 20!
|A1 A2 A4| = |A1 A3 A4| = |A2 A3 A4| = (26 – 10 +3)! = 19!
|A1 A2 A3 A4| = (26 – 13 + 4)! = 17!
Therefore the required number of permutations is given by
(a * b) * c = a * (b * c)
ab bc
( )∗c=a∗( )
2 2
abc abc
=
4 4
⸫ Associative law is satisfied
Identitity law:
Let a ∈ Gthen their ∃e ∈ G a∗e=a
ae
=a
2
e=2 ∈ R is the identity element.
Inverse Law:
Let a ∈ Gthen their ∃a−1 ∈ G a∗a−1=e
−1
aa
=2
2
−1 4
a = ∈ Z . Is the inverse of a
a
Commutative law:
∀ a, b ∈ Z a∗b=b∗a
ab ba
=
2 2
⸫ commutative law is satisfied
⸫ ¿ is abelian group.
34. Let G be the set of all non-zero real numbers not equal to -1 and * be defined by
a∗b=a+ b+ab prove that ¿ is an abelian group.
35. Verify whether ( Z 5 , ¿5 ) is an abelian group.
36. Show that the set G = {1, –1, i, –i} where i 2=1 is an abelian group with respect to
multiplication as a binary operation.
Solution: Let us construct the composition table.
⋅ 1 -1 i -i
1 1 -1 i -i
-1 -1 1 -i i
i i -i -1 1
-i -i i 1 -1
From the above composition, it is clear that the algebraic structure (G, ⋅) is closed and
1 ⋅ (−1 ⋅ i) = 1 ⋅ − i = − i
Since
(1 ⋅ −1) ⋅ i = −1 ⋅ i = − i
⇒ 1 ⋅ (−1 ⋅ i) = (1 ⋅ −1) i
Commutativity: a ⋅ b = b ⋅ a ∀ a, b ∈ G hold in G
Thus all the axioms of a group are satisfied.
1 ⋅ 1 = 1 = 1 ⋅ 1, −1 ⋅ 1 = −1 = 1 ⋅ −1
i ⋅ 1 = i = 1 ⋅ i; i ⋅ − i = − i ⋅ i = 1 = 1 etc.
Hence (G, ⋅) is an abelian group.
commutative law is satisfied
37. Show that the set G = {0, 1, 2, 3, 4} is an abelian group with respect to addition
modulo 5.
Solution: We form the composition table as follows:
+5 0 1 2 3 4
0 0 1 2 3 4
1 1 2 3 4 0
2 2 3 4 0 1
3 3 4 0 1 2
4 4 0 1 2 3
Since all the entries in the composition table are elements of G, the set G is closed
same remainder
when divided by 5.
i.e., (a +5 b) +5 c = a +5 (b +5 c)
We have (1 +5 3) +5 4 = 3 = 1 +5 (3 +5 4) etc.
0 ∀a ∈G.
Existence of identity: Clearly 0∈G is the identity element we have 0 +5 9 = 9 = 9 +5
a +5 b = b +5 a ∀a, b ∈G
Commutativity: From the composition table it is clear that
38. Show that the identity and inverse elements in a group is unique.
Solution:
(i) Let us assume that there exists two identical elements of G.ie.,e and e/.
Since, Let and is an identity element,
We have
Also t and is an identity element. We have
(ii) Let us assume that be an element. Also , assume that and be two
inverse elements of a.
Now
Thus, the inverse of an element is unique.
39. Define Subgroup of a group. If (H1, *) and (H2, *) are both sub-groups of the group
(G, *), then prove that (H1 ∩ H2 , *) is also a sub-group.
Soln : Let (G, *) be a group and H, be a non-empty subset of G. If (H, *) is itself is a
group, then (H, *) is called sub-group of (G, *).
∈ H1
and a, b ∈ H2 , since (H1, *) and (H2, *) are sub-groups.
a, b ∈ H1 ⇒ a * b−1 ∈ H1 and
a, b ∈ H2 ⇒ a * b−1 ∈ H2
That is a * b−1 ∈ H1 ∩ H2 which implies (H1 ∩ H2 ) is a sub-group of (G, *).
40.
41. If H is a non-empty subset of a group G, then prove that H is a subgroup of G iff
and for all .
Solution: (i) Let H is a sub group of G . Then H itself is a group .
iii) For any (by (2)) thus every element has inverse in H.
.
iii) The operation “.” Is distribution over the operation “+” in R.
Example: The set M of all 2X2 matrices over integers under matrix addition and
multiplication forms a ring .
Field: An algebraic system (R,+,.) , where F is the set with two binary operations + and . , is
44. Prove that the set Z with binary operations and define by x y=x + y −1,
x y=x+ y−xy Is a commutative ring with unity.
Solution: For all x , y ∈ Z , we note that x + y−1 ∈ R∧x+ y−xy ∈ R there fore R is
closed under the addition . Also we note that, for any x , y , z ∈ Z ,
x y=x+ y−1= y+ x −1= y x ,
( x y ) z=( x + y−1 ) z= { ( x + y −1 )+ z }−1
={ x + ( y + z−1 ) } −1=x ( y z ) ,
x 1=( x+ 1 )−1=x= (1+ x )−1=1 x
x (2−x )=( x +2−x )−1=1={ ( 2−x )+ x } −1=(2−x )x
The above facts show that (Z, ) is a commutative group with 1 ∈ Z as the
identity and (2−x )∈ Z
As the inverse of x ∈ Z .
Further, we note that, for any x , y , z ∈ Z ,
x ( y z )=x ( y + z− yz)
¿ x + ( y + z− yz )−x ( y+ z − yz)
Example1
+¿¿
Consider the groups ¿ Define the function f : R → R by f ( x )=e x for all x ∈ R . then, for
all a , b ∈ R , we have
a+b a b
f ( a+b )=e =e e =f ( a ) f (b)
Hence f is a homomorphism.
Semi group
A non-empty set S together with a binary operation * is called as a semigroup if
(i) Binary operation * is closed(closure)
(ii) Binary operation * is associative
We denote the semigroup by (S, *)
Example : The N of natural numbers is a semi-group under the operation of usual
addition of numbers.
Monoids
Let M be a nonempty set with a binary operation * defined on it. Then (M, * ) is
called a monoid if
(i) * is associative
(i.e.) a * (b * c) = (a * b) * c ∀ a , b , c ∈ M and
48. Let R be a relation on the set A={1, 2, 3, 4} defined by xRy if and only if x divides
y. Prove that (A, R) is a poset. Draw its Hasse diagram.
Solution:
From the definition of R, we have
R={( x , y ) /x , y ∈ A∧x∣y }
¿ {( 1 , 1 ) , ( 1 , 2 ) , ( 1 , 3 ) , (1 , 4 ) , ( 2, 2 ) , ( 2, 4 ) , ( 3 ,3 ) , ( 4 , 4 ) }
We observe that ( a , a ) ∈ R for all a ∈ A . Hence R is reflexive on A.
We verify that the elements of R are such that if ( a , b ) ∈ R∧a ≠ b , then ( b , a ) ∉ R .
Therefore, R is antisymmetric on A.
Further, we check that the elements of R such that if ( a , b ) ∈ R∧( b ,c ) ∈ R then ( a , c ) ∈ R .
Therefore, A is transitive on A.
Thus R is reflexive, antisymmetric and transitive. Hence R is a partial order on A; that is,
(A, R) is a poset.
The Hasse diagram for R is as shown below.
4
2 3
1
49. Consider the Hasse diagram of a poset (A, R) given below.
g h
f
d e
c
a b
If B={c, d, e} find (if they exist)
(i) All upper bounds of B, (ii) all lower bounds of B,
(ii) the least upper bound of B. (iv) the greatest lower bound of B.
Soln:
a. All of c,d,e which are B are related to f,g,h. Therefore, Upper bounds of B are
f,g,h.
b. The elements a,b and c are related to all to c,d,e which are in B. Therefore, a,b
and c are lower bounds of B.
c. The upper bound f of B is related to the other upper bounds g and h of B.
Therefore, f is the least upper bound of B.
The lower bounds a and b are related to the lower bound c of B. Therefore, c is the
greatest lower bound of B
50. Find the maximal , minimal, least and greatest elements of the posets.
5
3
5 4
4
3 7
6
2 3 2 8
4
5
6 Fig(ii)
1 Fig(i) 1 2 9
1 Fig(iii)
Solution:
51. Let A= {1,2,3,4,6,12}.On A define the relation R by aRb if “a divides b” prove that R
is a partial order on A and draw the Hasse diagram of this relation.
52. Draw the Hasse diagram for the set of all positive divisors of 36 i.e
D36={1,2,3,4,6,9,12,18,36}
53. Given A={2,3,6,12} and the relation R defined on A by the Hasse diagram as show
below find, lub{2, 3}, glb{2,3},lub{2, 12} and glb{6, 12}. Is (A, R) is a Lattice? If
not give reason.
12
6
Solution: By observing the given Hasse diagram carefully
we find that
2 3
does not exist.
Since the meet for 2 and 3 does not exist. Therefore (A, R) is not lattice.
.
56. Let S= { a , b , c }∧P(S) be the power set of S. define the relation R by XRY if and only
if X ⊆ Y . Show that this relation is a partial order on P(S). Draw its Hasse diagram.
Soln:
57. Define lattice , Consider the poset whose Hasse diagram is shown below.is this lattice
Lattice A poset〈 A,≤ 〉is a lattice iff every pair of elements in have both a meet
and a join.
In other words, A poset 〈A,≤ 〉is lattice, if for all , the elements
and exist in A.
Let (A, R) be a poset. This poset is called a lattice if , for all x, y ∈ A, the elements
Soln:
Definition:
a, b ∈ L,
S is called a lattice homomorphism from the lattice (L, *, +) to (S, ^, V) if for any
Ans:
and table