Discrete Notes
Discrete Notes
www.BrainKart.com
x(x x)
2
x(x x)
2
T h e n e g a t io n o f x ( x 2 ) is x ( x 2 )
2 2
x(x 2)
2
x(x 2)
2
Click Here for Discrete Mathematics full study material.
9. Express in symbolic form, everyone who is healthy can do all kinds of work. [November 2012]
Ans: Let 𝑃(𝑥): 𝑥 is healthy and 𝑄(𝑥): 𝑥 do all work
Symbolic form x P ( x ) Q ( x )
10. Write the negation of the statement “If there is a will, then there is a way”.
Ans: Let p: „There is a will‟ and q: „There is a way‟ Given p q p q .
Its negation is given by p q
So, the negation of the given statement is “There is a will and there is no way”
11. When do you say that two compound propositions are equivalent?
Ans: Two statement formulas A and B are equivalent iff A B or A B is a tautology. It is denoted
by the symbol A B which is read as “A is equivalence to B”
12. Prove that p q p q p q [November 2010]
Ans:
p q p q q p p q q p
p q p p q q p q
p q p q
13. Rewrite the following using quantifiers “Every student in the class studied calculus”.
Ans: Let 𝑃(𝑥): 𝑥 is a student and 𝑄(𝑥): 𝑥 studied calculus
Symbolic form x P ( x ) Q ( x )
14. Check whether p q r p is a tautology.
Ans:
p q r p p q r p p q r p p q r p
r p p r p q T r p q r p q
The given statement is not a tautology
15. Write the statement in symbolic form “Some real numbers are rational”.
Ans: Let (𝑥): 𝑥 is a real number and 𝑄(𝑥): 𝑥 is rational
Symbolic form: x R x Q x .
16. Show that (p q) (q r) and ( p q ) r are logically equivalent. [November 2014]
Ans:For ( p q ) ( q r ) to be false, one of the two implications must be false, which happens exactly
when r is false and at least one of p and q is true, but these are precisely the cases in which p q is true
and r is false. Which is precisely when ( p q ) r is false. Since the two propositions are false in
exactly the same situations they are logically equivalent.
18. Write the statement in symbolic form “Some integers are not square of any integers”.
Ans: Let (𝑥): x is an integer and S(x): x is a square of any integer
Symbolic form: x I ( x ) S ( x ) .
19. Define Contradiction.
Ans: A propositional formula which is always false irrespective of the truth values of the individual
variables is a contradiction.
www.BrainKart.com
Click Here for Discrete Mathematics full study material.
[( P Q ) ( P R )] [( P Q ) ( P R )] T
1(b) Prove the following equivalences by proving the equivalences of the dual
(( P Q ) ( P Q )) ( P Q ) P
Solution: It‟s dual is
(( P Q ) ( P Q )) ( P Q ) P
Consider,
(( P Q ) ( P Q )) ( P Q ) P Reasons
((PQ)(PQ))(PQ) (Demorgan‟s law)
((QP)(QP))(PQ)
(Commutative law)
(Distributive law)
((QQ)P)(PQ)
(PP T)
(TP)(PQ)
( P T P)
P(PQ)
(Absorption law)
P
2(a) Prove that ( P Q ) ( R Q ) ( P R ) Q .
Solution:
(PQ)(RQ) Reasons
(PQ)(RQ) Since P Q P Q
Demorgan‟s law
(PR)Q
since P Q P Q
PRQ
www.BrainKart.com
Click Here for Discrete Mathematics full study material.
( Q ( P R )) (( P R ) Q ) ( D e m o rg a n la w )
( Q ( P R )) ( Q Q ) (( P R ) P R ) (( P R ) Q )
( E x te n d e d d is trib u te d la w )
( P Q R ) F ( F R R ) ( P Q R ) ( N e g a t io n la w )
( P Q R ) ( P Q R ) ( N e g a t io n la w )
3(a) Obtain Pcnf and Pdnf of the formula ( P Q ) ( P Q )
Solution:
Let S = ( P Q ) ( P Q )
P Q P Q PQ PQ S Minterm Maxterm
T T F F F F T PQ
T F F T T T T PQ
F T T F T T T PQ
F F T T T F F PQ
Solution:
(~ P Q ) (~ P ~ Q ) ( P ~ Q ) ( P Q ) ( P ~ Q )
(~ P Q ) (~ P ~ Q ) ( P ~ Q ) ( P Q )
4(a) Without constructing the truth table obtain the product-of-sums canonical form of the formula
( P R ) ( Q P ). Hence find the sum-of products canonical form.
Solution:
Let
S(PR)(QP)
( ( P ) R ) (( Q P ) ( P Q ))
(PR)(QP)(PQ)
[( P R ) F ] [( Q P ) F ] [( P Q ) F ]
[( P R ) ( Q Q ) [( Q P ) ( R R )] [( P Q ) ( R R )]
( P R Q ) ( P R Q ) ( Q P R ) ( Q P R )
(PQR)(PQR)
S ( P R Q ) ( P R Q ) ( P Q R ) ( P Q R ) ( P Q R ) (Pcnf)
www.BrainKart.com
Click Here for Discrete Mathematics full study material.
P ( P ( Q ( Q R )))
(PQR)
S(PQR)
S(PQR)(PQR)(PQR)
(PQR)(PQR)(PQR)(PQR)
S (( P Q R ) ( P Q R ) ( P Q R )
( P Q R ) ( P Q R ) ( P Q R ) ( P Q R ))
(PQR)(PQR)(PQR)
(PQR)(PQR)(PQR)(PQR)
5(a) Using indirect method of proof, derive p ~s from the premises p ( q r), q ~p, s ~r and p.
Solution:
Let ~ ( p ~s ) be an additional premise.
~( p ~s ) ~( ~p ~s ) (p s)
1) p ( q r) Rule P
2) p Rule P
3) ( q r) Rule T, 1,2
4) p s Rule AP
5) s Rule T,4
6) s ~r Rule P
7) ~r Rule T, 5, 6
8) q Rule T3,7
9) q ~p Rule P
10) ~P Rule T, 8, 9
11) p ~p Rule T, 2,10
12) F Rule T, 11
5(b) Prove that the premises a ( b c ), d ( b c ), an d ( a d ) are inconsistent.
Solution:
www.BrainKart.com
Click Here for Discrete Mathematics full study material.
6(a) Use the indirect method to prove that the conclusion z Q ( z ) follows from the premises
x ( P ( x ) Q ( x )) and yP ( y)
Solution:
1 z Q ( z ) P(assumed)
2 z Q (z ) T, (1)
3 yP ( y) P
4 P (a ) ES, (3)
5 Q ( a) US, (2)
6 P ( a) Q ( a) T, (4),(5)
7 ( P (a) Q (a)) T, (6)
8 x ( P ( x ) Q (x )) P
9 P (a) Q (a) US, (8)
10 P (a) Q (a) ( P (a) Q (a)) T,(7),(9) contradiction
Hence the proof.
6(b) Show that R S can be derived from the premises P (Q S ), R P & Q
Solution:
R Assumed premises
R P Rule P
R P Rule T
P Rule T
P (Q S ) Rule P
Q S Rule P
Q Rule P
S Rule T
R S Rule CP
www.BrainKart.com
Click Here for Discrete Mathematics full study material.
www.BrainKart.com
Click Here for Discrete Mathematics full study material.
Solution:
E : Nirmala misses many classes
S: Nirmala fails high school
A: Nirmala reads lot of books
H: Nirmala is uneducated
Statement:
(1) E S
(2) S H
(3) A ~ H
(4) E A
Premises are : E S , S H , A~H,E A
1) E S Rule P
2) S H Rule P
3) E H Rule T, 1,2
4) A ~ H Rule P
5) H ~A Rule T,4
6) E ~A Rule T,3,5
7) ~ E ~ A Rule T,6
8) ~(E A) Rule T,7
9) E A Rule P
10) (E A) ~ (E A) Rule T,8,9
Which is nothing but false
Therefore given set of premises are inconsistent
9(a) Show that the hypotheses,”It is not sunny this afternoon and it is colder than yesterday,” ” We will
go swimming only if it is sunny,” “If we do not go swimming then we will take a canoe trip,” and “If
we take a canoe trip, then we will be home by sunset “lead to the conclusion “we will be home by
sunset”.
Solution:
p – It is sunny this afternoon.
q- It is colder than yesterday
r- we will go swimming
s- we will take a canoe trip
t- we will be home by sunset
The given premises are p q , r p , r s & s t
Step Reason
pq Hypothesis
p step 1
rp Hypothesis
r moduus tollens step 2 &3
www.BrainKart.com
Click Here for Discrete Mathematics full study material.
rs Hypothesis
s modus ponens step 4 &5
st Hypothesis
t modus ponens step 6&7
Let P: 2 is irrational.
Assume ~P is true, then 2 is rational, which leads to a contradiction.
a
By our assumption is 2 , where a and b have no common factors ---------------- (1)
b
2
a
2 2
2b2a2a
2
is even. a = 2c
b
b2 2c2
2b
2
4c
2
b 2 is even b is even as well.
a and b have common factor 2 (since a and b are even)
But it contradicts (1)
This is a contradiction.
Hence ~P is false.
Thus P: 2 is irrational is true.
10(a) Let p, q, r be the following statements:
p: I will study discrete mathematics
q: I will watch T.V.
r: I am in a good mood.
Write the following statements in terms of p, q, r and logical connectives.
(1) If I do not study and I watch T.V., then I am in good mood.
(2) If I am in good mood, then I will study or I will watch T.V.
(3) If I am not in good mood, then I will not watch T.V. or I will study.
(4) I will watch T.V. and I will not study if and only if I am in good mood.
Solution:
(1) ( p q ) r
(2)r(pq)
(3)r(qp)
(4)(qp) r
10(b) Give a direct proof of the statement.”The square of an odd integer is an odd integer”.
Solution:
Given: The square of an odd integer is an odd integer”.
P: n is an odd integer.
Q:n2 is an odd integer
Hypothesis: Assume that P is true
Analysis : n=2k+1 where k is some integer.
n2=(2k+1)2=2(2k2+2k)+1
Conclusion: n2 is not divisible by 2.Therefore n2 is an odd integer.
P Q is true.
www.BrainKart.com
Click Here for Discrete Mathematics full study material.
UNIT II COMBINATORICS
PART – A
1. State pigeon hole principle.
Ans: If (n+1) pigeons occupies n holes then at least one hole has more than 1 pigeon.
2. State the generalized pigeon hole principle.
m1
Ans: If m pigeons occupies n holes (m>n), then at least one hole has more than 1 pigeons.
n
3. Show that, among 100 people, at least 9 of them were born in the same month.
Ans: Here no.of pigeon =m= no. of people =100
No. of holes = n= no. of month =12
1001
Then by generalized pigeon hole principle, 1 9 were born in the same month.
12
4. In how many ways can 6 persons occupy 3 vacant seats?
Ans: Total no of ways = 6 c3= 20 ways.
5. How many permutations of the letters in ABCDEFGH contain the string ABC .
Ans: Because the letters ABC must occur as block, we can find the answer by finding no of permutation of
six objects, namely the block ABC and individual letters D,E,F,G and H . Therefore, there are 6! =720
permutations of the letters in ABCDEFGH which contains the string ABC.
6. How many different bit strings are there of length 7?
Ans: By product rule, 27=128 ways
7. How many ways are there to form a committee, if the committee consists of 3 educationalists and 4
socialist, if there are 9 educationalists and 11 socialist?
Ans: The 3 educationalist can be chosen from 9 educationalists in 9 c 3ways.
The 4 socialist can be chosen from 11 socialist in 11C4 ways.
By product rule, the no of ways to select, the committee is = 9C3.11C4 = 27720 ways.
8. There are 5 questions in a question paper in how many ways can a boy solve one or more questions?
Ans: The boy can dispose of each question in two ways .He may either solve it or leave it.
Thus the no. of ways of disposing all the questions= 2 5 .
But this includes the case in which he has left all the questions unsolved.
The total no of ways of solving the paper = 2 1 = 31.
5
www.BrainKart.com
Click Here for Discrete Mathematics full study material.
5
Ans: Given S ( k ) 5 .2 k S ( k 1) 5 .2 k 1 = .2
k
2 S ( k 1) 5 .2
k
S(k)
2
2 S ( k 1) S ( k ) 0 , w ith S ( 0 ) 5 is the required recurrence relation.
12. Find the associated homogeneous solution for na 3a 2n.
n 1
= a xn .
n
n
infinite sum . G(x) = G(s,x) = a 0 a1 x ......... an x .....
n0
15. Find the generating function for the sequence „s‟ with terms 1,2,3,4……..
1
( n 1) x = (1 x ) 2
n
Ans: G ( x ) G(s,x) =1 2 x 3 x 2 .......... .
(1 x )
2
n0
1
Click Here for Discrete Mathematics full study material.
PART – B
n
1(a) n(n1)(2n1)
Using Mathematical induction prove that 2
i
i 1
6
Solution:
n ( n 1) ( 2 n 1)
Let P(n) : 12 + 22 + …..+ n2 =
6
1 (1 1) ( 2 .1 1)
(1) Assume P(1) : 12 = is true
6
k ( k 1) ( 2 k 1)
(2) Assume P(k) : 12 + 22 + …..+k2 = is true, where k is any integer.
6
k ( k 1) ( 2 k 1)
(3) P(k + 1) = 12 + 22 + …..+k2 + (k + 1)2 = ( k 1)
2
( k 1) [ ( k 1) 1] [( 2 ( k 1) 1]
=
6
Hence, i
2
is true for all n.
i 1 6
1(b)
Use mathematical Induction to prove that 3n 7n 2 is divisible by 8, for n 1.
Solution:
Let Pn : 3n 7n 2 is divisible by 8.
(i) P1 : 31 71 2 8 is divisible by 8, is true.
12
Click Here for Discrete Mathematics full study material.
13
Click Here for Discrete Mathematics full study material.
14
Click Here for Discrete Mathematics full study material.
i
a.
j
6(a) In A survey of 100 students, it was found that 30 studied Mathematics, 54 studied Statistics, 25
studied Operations Research, 1 studied all the three subjects, 20 studied Mathematics and Statistics,
3 studied Mathematics and Operation Research and 15 studied Statistics and Operation Research.
Find how many students studied none of these subjects and how many students studied only
Mathematics?
Solution.
n(A) = 30; n(B) = 54;n(C) = 25;
n(AB) = 20; n(AC) = 3; n(BC) = 15;
n(ABC)=1
n(ABC) = n(A)+n(B)+n(C) – n(AB) – n(BC) – n(AC) + n(ABC) = 72
None of the subjects = 28.
Only mathematics = 8.
6(b) A total of 1232 students have taken a course in Spanish, 879 have taken a course in French, and 114
have taken a course in Russian. Further, 103 have taken courses in both Spanish and Russian, 23
have taken courses in both Spanish and French and 14 have taken courses in both French and
Russian. If 2092 students have taken atleast one of Spanish, French and Russian, how many students
have taken a course in all three languages?
Solution: S-Spanish,F-French, R-Russian
|S|=1232 |F|=879 |R|=114 |S∩R|=103 |S∩F|=23 |F∩R|=14
|S∪F∪R|=2092
|S∪F∪R=|S|+|F|+|R|-|S∩F|- |S∩R|-|F∩R|+|S∩F∩R|
|S∩F∩R|=7
7(a) Find all the solution of the recurrence relation an = 5an–1 – 6 an–2 + 7n
Solution:
Given non-homogeneous equation can be written as an – 5an–1 + 6 an–2 – 7n = 0
Now, its associated homogeneous equation is an – 5an–1 + 6 an–2 = 0
Its characteristic equation is r2 – 5r + 6 = 0
Roots are r = 2,3
(h) n n
Solution is a n c1 2 c 2 3
To find particular solution
Since F(n) = 7n, then the solution is of the form C.7n, where C is a constant.
Therefore, the equation an = 5an–1 – 6 an–2 + 7n becomes C7n = 5C7n–1–6C7n–2+7n ……(1)
Dividing the both sides of (1) by 7n–2.
n n 1 n2 n
C .7 5C7 6C7 7 49
(1) C
n2 n2 n2 n2
7 7 7 7 20
15
Click Here for Discrete Mathematics full study material.
(p) 49
Hence the particular solution is a 7n
n
20
n n 49 n
Therefore, a n c 1 ( 2 ) c 2( 3 ) 7
20
7(b) Find the number of integers between 1 and 250 that are not divisible by any of the integers 2, 3, 5 &7.
Sol: Let A, B, C,D are the set of integers between 1 and 250 that are divisible by 2, 3, 5, 7 respectively.
250 250
| A | [ ] 125 , | B | [ ] 83
2 3
250 250
| C | [ ] 50 , | D | [ ] 35
5 7
250 250 250
| A B | 41
LCM ( 2 ,3 ) 2 3 6
250 250 250
| A C | 25
LCM ( 2 ,5 ) 2 5 10
250 250 250
| A D | 17
LCM ( 2 ,7 ) 2 7 14
250 250 250
| B C | 16
LCM ( 3 ,5 ) 53 15
250 250 2 5 0
| B D | 11
L C M (7 , 3) 7 3 2 1
250 250 2 5 0
| C D | 7
L C M ( 5, 7 ) 5 7 3 5
250 250
| A B C | 8
LCM ( 2 ,3 ,5 ) 2 3 5
250 250
| A B D | 5
LCM ( 2 ,3 ,7 ) 2 3 7
250 250
| A C D | 3
LCM ( 2 ,5 ,7 ) 2 5 7
250 250
| B C D | 2
LCM ( 3 ,5 ,7 ) 3 5 7
250 250
| A B C D | 1
LCM ( 2 ,3 ,5 ,7 ) 2 3 5 7
|ABCD||A||B||C||D||AB||AC||AD||BC|
|BD||CD||ABC||ABD||ACD|
|BCD||ABCD|
=125+83+50+35-41-25-17-16-11-7+8+5+3+2-1=193
The number of integers between 1 and 250 that is divisible by any of the integers 2, 3, 5 and 7=193
Therefore not divisible by any of the integers 2, 3, 5 and 7=250-193=57.
16
Click Here for Discrete Mathematics full study material.
2 4 4 (2) 2 i2
1 i
2 2
1 i ,1 i
Solution A (1 i ) B (1 i )
n n
is a
n
r [cos i sin ]
1 y
tan
x
By Demoivre‟s theorem we have,
n n
(1 i ) [ 2 cos i sin ]
4 4
n n n
[ 2 ] cos i sin
4 4
n n n n
and (1 i ) [ 2 ] cos i sin
4 4
Now,
n n n n n n
a n A [[ 2 ] c o s i s in ] B [[ 2 ] c o s i s in ]
4 4 4 4
n n
[ 2]n (A B)cos i ( A B ) s in
4 4
n n
a [ 2] n
C cos C s in ] (1)
n 1 2
4 4
Is the required solution. Let C 1 =𝐴 + 𝐵, C 2 =𝑖(𝐴 − 𝐵)
Since 𝑎0 = 1, 𝑎1 = 2
17
Click Here for Discrete Mathematics full study material.
1C
1
1
a1 [ 2 ] C 1 cos C 2 sin ]
4 4
1 1
2 2 C1 C 2 sin ]
2 2
2CC
1 2
C 1
2
n n n
a [2] cos sin ]
n
4 4
8(b) Solve the recurrence relation of the Fibonacci sequence of numbers f n f n1 f n2, n 2
2 2
1 5 1 5
f 1 f 1
2 2 1
2 2
2
(1 (1
2 2
5) 5)
1 2
1
4 4
(1 5) (1 5) 4
2 2
...( 5 )
1 2
18
Click Here for Discrete Mathematics full study material.
( 4 ) (1 5 )
(1 (1 5 ) (1 5) 2
2
5)
1 2
(1 5) ...( 6 )
(1 5)[25]225
1
(1 5 ) [ 2 5 ] 2 (1 5)
1
1
1
5
1
4 ) (1 5) (1 5 ) 2 2
5
1
1 (1 5 ) 2 2
5
1
(1 5 ) 2 2 1
5
1
1
5
5 1
(1 5 ) 2
5
1
2
5
n n
1 1 5 1 1 5
( 3 ) fn
2 2
5 5
9(b) A factory makes custom sports cars at an interesting rate. In the first month only one car is made, in
the second month two cars are made and so on, with n cars made in the nth month.
(1) Set up recurrence relation for the number of cars produced in the first n months by this factory.
(2) How many cars are produced in the first year?
Solution:
(i) a n n a n 1 , a o 0 ( a 1 1, a 2 2 a 1 , e tc )
(ii) By recursively a12 78
10(a) Solve 𝑺(𝒏 + 𝟏) − 𝟐𝑺(𝒏) = 𝟒𝒏, with 𝑺(𝟎) = 𝟏 and 𝒏 ≥ 𝟏
Solution: Given 𝑎𝑛+1 − 2𝑎𝑛 − 4𝑛 = 0
Multiply by x n , and sum over all n 0 to .
19
Click Here for Discrete Mathematics full study material.
a a 4x0
n1x
n
2 nx n nn
1 3x
G ( x )
(1 2 x )(1 4 x )
1 1
By Applying Partial fractions we get A ,B
2 2
1 1
G ( x)
2
2 n xn 4
2 n0
n
xn
n 0
henceweget
n 1 n 1
an 2 2 ( 4)
G ( z ) f f z z ( G ( z ) f ) z ( G ( z ))
2
0 1 0
G ( z ) f nz
n
n0
Where ( i.e ) G ( z ) z G ( z ) z G ( z ) f f0 z z 1f
2
z
G ( z )
1 z z
2
V1 V4
V6 V5
20
MA8351 Discrete Mathematics
1(b) In any graph show that the number of odd vertices is even.
Let G = (V, E) be the undirected graph. Let 𝑣1 and 𝑣2 be the set of vertices of G of even and odd degrees
respectively. Then by hand shaking theorem,
2e = d eg ( vi ) d eg ( v j ) . Since each deg(vi) is even, d eg ( vi ) is even. Since LHS is even, we
v i v1 v j v2 v i v1
get d eg ( v j ) is even. Since each deg(vj) is odd, the number of terms contain in d eg ( v j ) or v2 is
v j v2 v j v2
23
MA8351 Discrete Mathematics
k ( k 1) ( n k )( n k 1)
C ( k , 2 ) C ( n k , 2 )
2
n 2
n
k 2 n k
2
This quadratic function of f is minimized at k = n/2 and maximized at k = 1 or k = n – 1
Hence, if G is not connected, then the number of edges does not exceed the value of this function at 1 and
( n 1)(n 2 )
at n-1, namely .
2
3(b) If a graph G has exactly two vertices of odd degree, then prove that there is a path joining these two
vertices.
Proof:
Case (i): Let G be connected.
Let v1 and v2 be the only vertices of G with are of odd degree. But we know that number of odd vertices is
even. So clearly there is a path connecting v1 and v2, because G is connected.
Case (ii): Let G be disconnected
Then the components of G are connected. Hence v1 and v2 should belong to the same component of G.
Hence, there is a path between v1 and v2.
4(a) ( n k )( n k 1 )
Prove that a simple graph with n vertices and k components can have at most
2
edges.
Let the number of vertices of the ith component of G be 𝑛 , 𝑛𝑖 ≥ 1..
k k
n i n ( n i 1) ( n k )
i 1 i 1
2
Then ( n i 1)
k
n 2 2n k k 2
i 1
(n n
k k
th a t is i 1)2 n2 2 n k k 2
i 2n 2 2n k k 2 n 2 k
i 1 i 1
n ( n 1) 1 k
2 n
i i
Now the maximum number of edges in the ith component of G = ni
2 2 i 1 2
(n 2
2nk k 2
2n k ) n ( n k )( n k 1)
2 2 2
4(b) If all the vertices of an undirected graph are each of degree k, show that the number of edges of the
graph is a multiple of k.
Solution: Let 2n be the number of vertices of the given graph….(1)
Let n e be the number of edges of the given graph.
By Handshaking theorem, we have
2n
degv i 2 ne
i 1
2 n k 2n (1)
e
n e n k
Number of edges =multiple of 𝑘.
Hence the number of edges of the graph is a multiple of k
24
MA8351 Discrete Mathematics
5(a) Draw the graph with 3 vertices A,B,C, D & E such that the deg(A)=3,B is an odd vertex, deg(C)=2
and D and E are adjacent.
Solution:
d(E)=5 ,d(C)=2,d(D)=5 ,d(A)=3 d(B)=1
6(a) Prove that a given connected graph G is Euler graph if and only if all vertices of G are of even
degree.
Solution:
Case (i) Prove If G is Euler graph→ Every vertex of G has even degree.
Case (ii) Prove If Every vertex of G has even degree.→ G is Euler graph ( by Contradiction Method).
25
MA8351 Discrete Mathematics
Answer:
0 2 0 0 0 0
1 1 0 1 2 0 1 1 0 0
0 0
(i ) 0 0 0 1
(ii )
1 2 1 0
0 0 0
0 0 0 1 1 2 0
0
1 0 1 0 0 0 0 0 3
0 0 0 1 3
0
7(a) Show that isomorphism of simple graphs is an equivalence relation. [November 2014]
Solution:
G is isomorphism to itself by the identity function, So isomorphism is reflexive. Suppose that G is
isomorphic to H.Then there exists a one –to-one correspondence f from G to H that preserves adjacency
1
and nonadjacency.It follows that f is a one-to-one correspondence from H to G that preserves adjacency
and non-adjacency.Hence isomorphism is symmetric.If G is isomorphic to H and H is isomorphic to K then
there are ono-to-one correspondences f and g from G to H and from H to K that preserves adjacency and
nonadjacency.It follows that g f is a one-to-one correspondencies from G to K that preserves adjacency
and non-adjacency.Hence isomorphism is transitive.
7(b) Find the incidence matrix for the following graph.
(i) (ii)
26
MA8351 Discrete Mathematics
Answer:
1 1 1 0 0 0 1 0 1
0 0 1 1 0 1 0 1 0
(i) ( ii )
1 0 0 0 1 0 1 0 1
0 1 0 1 0 1 0 1 0
8(a) Examine whether the following pair of graphs are isomorphic. If not isomorphic, give the reasons
u1 u2 v1
v2
v5
u3
u5 u4
v4 v3
Solution:
Same number of vertices and edges. Also an equal number of vertices with a given degree.
The adjacency matrices of the two graphs are
0 1 0 1 1
0 1 0 1 1
1 0 1 1 1
1 0 1 1 1
0 1 0 1 0
and 0 1 0 1 0
1 1 1 0 1
1 1 1 0 1
1 1 0 1 0
1 1 0 1 0
since the two adjacency matrices are the same, the two graphs are isomorphic.
8(b) Prove that if a graph G has not more than two vertices of odd degree, then there can be Euler path in
G.
Statement: Let the odd degree vertices be labeled as V and W in any arbitrary order. Add an edge to G
between the vertex pair (V,W) to form a new graph G‟.
Now every vertex of G‟ is of even degree and hence G‟ has an Eulerian Trail T.
If the edge that we added to G is now removed from T, It will split into an open trail containing all edges of
G which is nothing but an Euler path in G
9(a) Show that K 7 has Hamiltonian graph. How many edge disjoint Hamiltonian cycles are there in K 7 ?
List all the edge-disjoint Hamiltonian cycles. Is it Eulerian graph ?
27
MA8351 Discrete Mathematics
g(a*a)g(a)
g(a)g(a)g(a)
This shows that g ( a ) is an idempotent element in T.
Therefore the property of idempotency is preserved under semigroup homomorphism.
10. Define cyclic group.
Ans: A group (G,*) is said to be cyclic if there exists an element a G such that every element of G can
be written as some power of „a‟.
29
MA8351 Discrete Mathematics
30
MA8351 Discrete Mathematics
Inverse
1 1
g(a*a )g(e)g(a *a)
G
1 1
g (a ) g (a ) e g (a ) g (a )
H
1(b) Let (S, *) be a semi-group. Prove that there exists a homomorphism g: S SS. where < SS, > is a
semi-group of functions from S to S under the operation f (left) composition.
Solution:
For any element a S, let g(a) = fa, where fa SS and fa is defined by fa(b) = a * b for any b S.
Now g(a * b) = f a*b, where f a*b (c) = (a * b) * c = a * ( b* c) = fa (fb (c)) = ( f a f b ) (c)
Therefore, g(a* b) = f a*b = f a f b = g(a) g(b). Hence g is a homomorphism.
For an element a S, the function fa is completely determined from the entries in the row corresponding to
a in the composition table of (S, *). Since fa = g(a), every row of the table determines the image under the
homomorphism of g.
2(a) Show that the set N of natural numbers is a semigroup under the operation x * y = max {x, y}. Is it a
Monoid?
Proof:
Clearly if x, y N then max{x,y} = x or y N. Hence closure is true.
Now (x*y)*z = max {x*y, z} = max {x,y*z} = x*(y*z). Hence N is associative.
e = is the element in N such that x*e=e*x=e.
Hence (N, *, ) is Monoid.
2(b) Prove that if (G, *) is an Abelian group, if and only if (a * b)2 = a2 * b2
Proof:
Let G be an abelian group.
Now (a * b)2 = (a * b) * (a * b) = a * (b * a) * b = a * (a * b) * b = a2 * b2.
Conversely, let (a * b)2 = a2 * b2
(a* b) * (a*b) = (a * a) * (b * b)
(a * a) * (b * a) * (b* b–1) = (a–1 * a) * a * b * (b * b–1) b * a = a * b.
–1
Hence G is abelian.
3(a) Prove that the necessary and sufficient condition for a non empty subset H of a group (G, *) to be a
subgroup of G if a , b H a * b 1 H
Proof:
Necessary Condition:
Let us assume that H is a subgroup of G. Since H itself a group, we have if a, b H implies a*b H
3
MA8351 Discrete Mathematics
Hence A B is a subgroup of G.
Consider the following example,
Consider the group, (Z, +), where Z is the set of all integers and the operation + represents usual addition.
Let A 2 Z {0 , 2 , 4 , 6 ,.......} and B 3 Z {0 , 3, 6 , 9 ,.......} .
(2Z, +) and (3Z, +) are both subgroups of (Z, +).
Let H 2 Z 3 Z {0 , 2 , 3, 4 , 6 .......... }
Note that 2 , 3 H , but 2 3 5 H 5 2 Z 3 Z
i.e 2 Z 3 Z is not closed under addition.
Therefore 2 Z 3 Z is not a group
i.e. 2 Z 3 Z is not a subgroup of (Z, +).
Therefore (H, +) is not a subgroup of (Z, +).
4(a) Show that the Kernel of a homomorphism of a group (G, *) into another group (H, ) is a subgroup
of G.
Proof:
Let K be the Kernel of the homomorphism g. That is K { x G g ( x ) e } where e the identity element
of H. is
Let x, y K. Now
1 1 1
g(x*y )g(x)g(y )g(x) g(y) e e 1 e e e
1
x*y K
Therefore K is a subgroup of G.
4(b) State and prove Cayley‟s theorem on permutation groups.
Statement:
Every finite group of order “n” is isomorphic to a group of degree n.
32
MA8351 Discrete Mathematics
Proof:
Let G be the given group and A(G) be the group of all permutations of the set G.
For any a G , define a map f : G G such that f(x) = ax and we have to prove the following things
(i) fa is well defined.
(ii) fa is one – one
(iii) fa is onto
Now let K be the set of all permutations and define a map : G K such that ( a ) f a
Clearly is one-one, onto and homomorphism and hence is isomorphism which proves the theorem.
5(a) Prove that every subgroup of a cyclic group is cyclic.
Proof:
Let (G,*) be the cyclic group generated by an element a G and let H be the subgroup of G. If H contains
identity element alone, then trivially H is cyclic. Suppose if H contains the element other than the identity
element. Since H G, any element of H is of the form ak for some integer k. Let “m” be the smallest
positive integer such that am H. Now by division algorithm theorem we have
k = qm + r where 0 r < m. Now ak = aqm + r = (am)q. ar and from this we have ar = (am)- q. ar. Since am, ak
H, we have ar H. Which is a contradiction that am H such that “m: is small. Therefore r = 0 and ak =
(am)q. Thus every element of H is a power of am and hence H is cyclic.
5(b) Prove that every cyclic group is an Abelian group.
Proof:
Let (G,*) be the cyclic group generated by an element a G.
Then for any two element x, y G, we have x = an, y = am, where m, n are integer.
Now x*y = an * am = an + m = am + n = am * an = y * x
(G,*) is abelian.
Since there is a one to one correspondence between H and Hx, the members of Hx are distinct. Hence, each
right coset of H in G has „m‟ distinct members.
We know that any two right cosets of H in G are either identical or disjoint.
i.e. let H be a subgroup of a group G. Let x , y G . Let Hx and Hy be two right cosets of H in G. we need
to prove that either Hx = Hy or Hx∩Hy = .
Suppose H x H y . Then there exists an element H x H y
Thus by proving O(G)/O(m)=k
O(H) is a divisor of O(G) → O(H) divides O(G).
6(b) Let (G, *) and (H, ) be groups and g : G H be a homomorphism. Then the Kernal of g is a
normal subgroup.
Proof:
Let K be the Kernel of the homomorphism g. That is K { x G g ( x ) e } where e the identity element
of H. is
Let x, y K. Now
33
MA8351 Discrete Mathematics
1 1 1
g(x*y )g(x)g(y )g(x) g(y) e e 1 e e e
1
x*y K
Therefore K is a subgroup of G. Let
xK,fG
1 1 1 1
g(f*x*f )g(f)*g(x)*g(f )g(f)e g(f) g(f) g(f) e
1
f*x*f K
Thus K is a normal subgroup of G.
7(a) State and prove the fundamental theorem of group homomorphism
Statement:
If f is a homomorphism of G onto G with kernel K, then G / K G .
Proof: Let f : G G be a homomorphism. Then K = Ker (f) = {x G f ( x ) e } is a normal subgroup
and also the quotient set ( G / K , ) is a group.
Define : G / K G given by ( K a ) f ( a ) .
Now we have to prove
(i) is well defined.
(ii) is a homomorphism.
(iii) is one – one.
(iv) is onto.
From this proof‟s we have G / K G
7(b) Prove that intersection of any two normal subgroups of a group (G, *) is a normal subgroup of a
group (G, *)
Proof:
Let G be the group and H and K are the subgroups of G.
Since H and K are subgroups of G,
e H and e K e H K . Thus H K is nonempty.
1 1 1
Since ab H and ab K ab HK
34
MA8351 Discrete Mathematics
x*H*x1H,xG
H is a normal subgroup of G.
Conversely, let us assume that H is normal subgroup of G.
x*H*x1H,xG
Now x G x 1 G
1
i.e . x
1
* H* x 1
H,xG
1
x *H*xH
1 1 1
x*(x *H*x)*x x*H*x
1
e*H*e x*H * x
1
H x*H * x
1
x *H*x H
9(a) Prove that every subgroup of a cyclic group is normal.
Proof:
We know that every cyclic group is Abelian.
That is x * y = y * x.
Let G be the cyclic group and let H be a subgroup of G.
Let x G and h H then
x * h * x 1 x * h*x x* x
1 1
*h (x*x 1
)*he*hhH
1
Thus for x G an d h H, x*h*x H
Thus H is a normal subgroup of G.
Therefore every subgroup of a cyclic group is normal
9(b) Prove that every field is an integral domain, but the converse need not be true.
Proof:
Let ( F , , ) be a field. That is F is a commutative ring with unity. Now to prove F is an integral domain itis
enough to prove it has non-zero divisor.
Let a , b F such that a . b = 0 and let a 0 then a 1 F
Now
1 1
a ( a b ) ( a a )ba
1
0 1 b
0b.
Therefore F has non-zero divisor
10(a) If R is a commutative ring with unity whose ideals are {0} and R, then prove that R is a field.
Proof:
We have to show that for any 0 a R there exists an element 0 b R such that ab = 1.
Let 0 a R
Define Ra {ra r R }
Proof of Ra is an ideal
Since e R ea R a a R a
Ra {0} (since a 0)
35
MA8351 Discrete Mathematics
1 b a , fo r so m e 0 b R
ab 1
10(b) Prove that {Zp, +p, *p}is an integral domain if and only if p is prime.
Solution:
Let us assume that Zp be an integral domain and to prove that p is prime.
Suppose p is not prime then p = mn, where 1< m < p, 1 < n < p. Hence mn = 0.
Therefore „m‟ and „n‟ are zero divisors and hence Zp is not an integral domain.
Which is a contradiction.
Hence p is a prime.
Conversely,
Suppose p is prime.
Let a , b Z p and ab = 0
Then ab = pq where q Z p then p divides ab
i.e p divides a (or) p divides b
therefore a = 0 (or) b = 0
thus Zp has no zero divisors. Also Zp is a commutative ring with identity.
Hence Zp is an integral domain.
UNIT-V LATTICES AND BOOLEAN ALGEBRA
PART – A
01. Define lattice.
Ans: A partially ordered set (L,≤) in which every pair of elements has a least upper bound and greatest
lower bound is called a lattice.
02. Define lattice homomorphism and isomorphism.
Ans: If ( L1, , ) a n d ( L ,2 , ) are two lattices, a mapping f : L 1L is called
2
a lattice
homomorphism from L 1 to L 2 , if for any a , b L1 ,
f ( a b ) f ( a ) f (b ) and f ( a b ) f ( a ) * f (b ) .
36
MA8351 Discrete Mathematics
07. Prove that D {S D } is a complemented lattice by finding the complements of all the elements.
42 4 2,
Ans: D {1, 2 , 3 , 4 , 7 , 1 4 , 2 1, 4 2}
42
The complement of 1 is 42, the complement of 2 is 21, the complement of 3 is 14, the complement of 6 is
7, the complement of 14 is 3, the complement of 21 is 2, the complement of 42 is 1. the complement of 7 is
6. Every element has a complement. Hence D 4 2 { S 4 2 , D } is a complemented lattice
08. In the poset ( Z , /), are the integers 3 and 9 comparable? Are 5 and 7 comparable?
Ans: Since 3/9, the integers 3 and 9 are comparable.
For 5, 7 neither 5/7 nor 7/5. Therefore, the integers 5 and 7 are not comparable.
09. When a lattice is called complete?
Ans: A lattice <L, *, > is called complete if each of its non-empty subsets has a least upper bound and a
greatest lower bound.
10. Define direct product of lattice.
Ans: Let ( L , , ) and ( S , , ) be two lattices. The algebraic system ( L S , , ) in which the binary
operation + and on L x S are such that for any ( a1 , b1 ) a n d ( a 2 , b 2 ) in LxS
( a1 , b1 ).( a 2 , b2 ) ( a1 a 2 , b1 b2 )
( a1 , b1 ) ( a 2 , b2 ) ( a1 a 2 , b1 b2 )
is called the Direct product of the lattice ( L , , ) and ( S , , ) .
Therefore b does not have any complement .the given lattice is not complemented lattice.
12. Check the given lattice is complemented lattice or not.
Ans:
37
MA8351 Discrete Mathematics
13.
Ans: a . a b =0.b = 0
14. Prove the involution law ' '
(a ) a.
The maximal elements are 12, 20, and 25 and The minimal elements are 2 and 5.
38
MA8351 Discrete Mathematics
PART – B
1(a) Draw the Hasse diagram for (i) P1 = {1, 2, 3, 4, 12} and ≤ is a relation such that x ≤ y if x divides y
(ii) Let S = {a, b, c} and à = P(S) = {ϕ, {a}, {b}, {c}, {a, b}, {a, c}, {b, c}, {a, b, c}} Consider the partial
order of set inclusion (⊆).
Answer:
(i) (ii)
1(b) Draw the Hasse diagram for D24 = {1, 2, 3, 4, 6, 8, 12, 24},D30 = {1, 2, 3, 5, 6, 10, 15, 30},
D36 = {1, 2, 3, 4, 6, 9, 12, 18, 36} considering the partial order divisibility.
Answer:
39
MA8351 Discrete Mathematics
( a b ) ( a c ). b c b
a ( b c ) ( a b ) ( a c ).
Also ,
a(bc)(ac)a
(ab)(ac)(aa)a
a(bc)(ab)(ac)
Hence, ( L , , ) is a distributive lattice. This indicates that every chain is a distributive lattice.
2(b) State and prove Isotonicity property in lattice.
Statement:
Let ( L , , ) be given Lattice. For any a, b, c L , we have,
b c
1) a b a c
2) a b a c
Proof:
Given b c Therefore G L B {b , c} b c b and L U B {b , c} b c c
Claim 1: a b a c
To prove the above, it‟s enough to prove G L B { a b , a c} a b
Claim 2: a b a c
To prove the above it‟s enough to prove L U B { a b , a c} a c
3(a) Prove that the De Morgon‟s laws hold good for a complemented distributive lattice ( L , , ) .
Solution:
The De Morgon‟s Laws are
(1) ab ' a ' b ' (2) a b ' a ' b ' , for all a,b B
Proof:
Let ( L , , ) be a complemented distributive lattice. Let a, b L. Since L is a complemented lattice, the
complements of „a‟ and „b‟ exist.
Let the complement a be a ' and the complement of b be b '
Now
40
MA8351 Discrete Mathematics
( a b ) ( a b ) { ( a b ) a } { ( a b ) b }
{ a ( b a )} { a ( b b )}
{ ( a a ) b } ( a 1)
(1 b ) ( a 1)
11
1
( a b ) ( a b ) { ( a b ) a } { ( a b ) b }
{ a ( b a )} { a ( b b )}
{ ( a a ) b } ( a 1)
(1 b ) ( a 1)
00
0
hence a b ' a ' b '
By the principle of duality, we have a b ' a ' b '
3(b) Show that direct product of any two distributive lattices is a distributive lattice.
Proof:
Let L1 and L2 be two distributive lattices. Let x, y, z L1 L 2 be the direct product of L1 and L2 Then x =
(a1, a2), y = (b1, b2) and z = (c1, c2)
Now
x ( y z ) ( a1 , a 2 ) ( b1 , b 2 ) ( c1 , c 2 )
( a1 , a 2 ) ( b1 , b 2 ) ( a1 , a 2 ) ( c1 , c 2 )
x y x z
Thus direct product of any two distributive lattice is again a distributive lattice
4(a) State and prove the necessary and sufficient condition for a lattice to be modular.
Statement:
A lattice L is modular if and only if none of its sub lattices is isomorphic to the pentagon lattice N5
Proof:
Since the pentagon lattice N5 is not a modular lattice. Hence any lattice having pentagon as a sub lattice
cannot be modular.
Conversely, let ( L , ) be any non modular lattice and we shall prove there is a sub lattice which is
isomorphic to N5.
4(b) Prove that every distributive lattice is modular. Is the converse true? Justify your claim.
Proof:
Let ( L , ) be a distributive lattice, for all a, b, c L , we have
a (b * c ) ( a b ) * ( a c )
Thus if a c , th en a c c
a (b * c ) ( a b ) * c
So if a c , the modular equation is satisfied and L is modular.
However, the converse is not true, because diamond lattice is modular but not distributive.
5(a) In a lattice L , , , prove that ( a b ) (b c ) ( c a ) ( a b ) (b c ) ( c a )
4
MA8351 Discrete Mathematics
Solution:
( a b ) ( b c ) ( c a ) ( a b ) [( b c ) c ] [( b c ) a ]
( a b ) [ c [( b c ) a ]
[( a b ) c ] [( a b ) [( b c ) a ]
[( a b ) c ] [( b c ) a ]
[ c ( a b )] [ a ( b c }]
[( c a ) ( c b )] [( a b ) ( a c )]
[ ( c a ) ( b c )] [( a b ) ( c a )]
(ca)(bc)(ab)
(ab)(bc)(ca)
5(b) Prove that every finite lattice is bounded.
Proof:
Let ( L , , ) be given Lattice.
Since L is a lattice both GLB and LUB exist.
Let “a” be GLB of L and “b” be LUB of L.
For any x L , we have
axb
G L B {a , x} a x a
L U B {a , x} a x x
and
G L B { x , b} x b x
L U B{x, b} x b b
Therefore any finite lattice is bounded.
6(a) In a lattice if a b c , show that
(i)abb*c
( i i ) ( a* b ) ( b * c ) ( a b ) * ( a c ) b
Proof:
(i) Given a b c
Since
a b a b b , a * b a ... (1)
b c b c c , b * c b ... ( 2 )
a c a cc,a*c a ... ( 3 )
From (1) and (2), we have a b b b * c
(ii) LHS ( a* b ) (b * c ) a b b
RHS ( a b ) * ( a c ) b * c b
Therefore ( a* b ) (b * c ) ( a b ) * ( a c ) b
6(b) In a Distributive lattice L , , if an element a L is a complement then it is unique.
Proof:
Let a be an element with two distinct complement b and c. Then a*b = 0 and a*c = 0
Hence a*b = a*c
Also
42
MA8351 Discrete Mathematics
a b1 and a c 1
abac
Hence b = c.
7(a) Show that in a distributive lattice and complemented lattice a b a * b 0 a b 1 b a
Proof:
a b a * b 0 a b 1 b a
Claim 1: a b a * b 0
Since a b a b b , a * b a
Now a * b (( a * b ) * b ) ( a * b * b ) a * 0 0
Claim 2: a * b 0 a b 1
We have a * b 0
Taking complement on both sides, we have
a * b 0 a b 1
Claim 3: a b 1 b a
a b 1 a b * b 1 * b a * b b * b b a * b 0 b
a * b b b a
Claim 4: b a a b
We have b a taking complement we get b a a b
7(b) In a Boolean algebra prove that a b ' a ' b '
Proof:
( a b ) ( a b ) { ( a b ) a } { ( a b ) b }
{ ( a a ) ( b a )} { ( a b ) ( b b )}
{1 ( b a )} { ( a b ) 1}
b b
1
( a b ) ( a b ) { ( a b ) a } { ( a b ) b }
{ a a b } { a b b }
{ 0 b } { a 0}
0
Hence proved.
8(a) In any Boolean algebra, show that ab a b 0 if and only if a = b
Proof:
Let a = b
Now ab a b aa a a 0 0 0
Conversely let ab a b 0
Now
a b a b 0 a b a b a b
and a a .1 a ( b b ) a b a b a b a b a a b 1 .b b
43
MA8351 Discrete Mathematics
8(b)
Simplify ( i ) a * b a b ( ii ) a * b * c a * b * c a * b * c
Solution:
( i ) a * b a b a b a * b
a b a * a b b a * b
(ii ) a * b * c a * b * c a * b * c ( a a ) * (b * c ) b * c
9(a) In a Boolean algebra prove that ( i ) a * a b a ( ii ) a a * b a for all a , b B
Proof:
( i ) a * a b ( a 0 ) * a b
a(0*b)
a(b*0)a0a
a b cc b c a a c a b b
ab0 b c 0 c a 0
a b b c c a
10(a) Show that in any Boolean algebra, a b b c c a a b b c c a .
Solution:
Let (B, +, 0, 1) be any Boolean algebra and a, b, c B.
a b b c c a a b .1 b c .1 c a .1
ab(cc)bc(aa)ca(bb)
a b c a b c ab c ab c a bc a bc
( a b c a bc ) ( ab c a b c ) ( ab c a bc )
(aa)bc(bb)ac(cc)ab
1.bc1.ac1.ab
ab bc ca
abbccaabbcca
10(b) Apply Demorgan‟s theorem to the following expression
(i) x y ( x y) ( ii ) ( a b c )d
44
MA8351 Discrete Mathematics
Solution:
(i) xy (xy) xy (xy)
x . y x .y
x . y x .y
xy
( ii ) ( a b c ) d a b c d
a.b. c d
45