094 - MA8351, MA6566 Discrete Mathematics - Notes 5
094 - MA8351, MA6566 Discrete Mathematics - Notes 5
com
A Course Material on
By
Ms. M.KAVITHA
ASSISTANT PROFESSOR
QUALITY CERTIFICATE
Being prepared by me and it meets the knowledge requirement of the university curriculum.
Name:
Designation:
This is to certify that the course material being prepared by Ms.M.Kavitha is of adequate quality. She has
referred more than five books among them minimum one is from aboard author.
Signature of HD
Name:
SEAL
www.BrainKart.com
AIM
To extend student’s Logical and Mathematical maturity and ability to deal with abstraction and to introduce
most of the basic terminologies used in computer science courses and application of ideas to solve practical
problems.
OBJECTIVES
At the end of the course, students would Have knowledge of the concepts needed to test the logic of a
program. Have an understanding in identifying structures on many levels. Be aware of the counting principles
UNIT II COMBINATORICS 9 + 3 Mathematical inductions- Strong induction and well ordering-.The basics
of counting-The pigeonhole
principle –Permutations and combinations-Recurrence relations-Solving Linear recurrence relations-generating
functions-inclusion and exclusion and applications.
TEXT BOOKS:
1. Kenneth H.Rosen, “Discrete Mathematics and its Applications”, Special Indian edition, Tata McGraw-Hill Pub. Co.
Ltd., New Delhi, (2007). (For the units 1 to 3, Sections 1.1 to 1.7 , 4.1 & 4.2, 5.1 to 5.3, 6.1, 6.2, 6.4 to 6.6, 8.1 to
8.5)
2. Trembly J.P and Manohar R, “Discrete Mathematical Structures with Applications to Computer Science”,
Tata McGraw–Hill Pub. Co. Ltd, New Delhi, 30th Re-print (2007).(For units 4 & 5 , Sections 2-3.8 & 2-3.9,3-1,3-2
& 3-5, 4-1 & 4-2)
REFERENCES:
1. Ralph. P. Grimaldi, “Discrete and Combinatorial Mathematics: An Applied Introduction”, Fourth Edition, Pearson
Education Asia, Delhi, (2002).
2. Thomas Koshy, ”Discrete Mathematics with Applications”, Elsevier Publications, (2006).
3.Seymour Lipschutz and Mark Lipson, ”Discrete Mathematics”, Schaum’s Outlines, Tata
McGraw-Hill Pub. Co. Ltd., New Delhi, Second edition, (2007).
www.BrainKart.com
www.BrainKart.com
CONTENT
Unit I
LOGIC AND PROOFS
1.1 INTRODUCTION
Proposition is a declarative statement that is either true or false but not both. The truth value
of proposition is true or false.
Truth table
Negation of a proposition
If P is a proposition, then its negation is denoted by ¬P or ~p and is defined by the following truth
table.
P ¬P
T F
FT
EXAMPLE
P - Ram is intelligent
proposition is a declarative sentence which is either true or false but not both.
COMPOUND PROPOSITION
The disjunction of two proposition P and Q is the proposition P˅Q [read as P or Q ] and is defined
by the following truth table.
P Q P˅Q
www.BrainKart.co
m
www.BrainKart.com
T T T
T F T
F T T
F F F
If P and Q are two propositions , then the conjunction of P and Q is denoted by P ˄Q ( read as P
and Q ) and is defined by following truth table.
P Q P˄Q
T T T
T F F
F T F
F F F
CONDITIONAL AND BI- CONDITIONAL PROPOSITION
If p and q are propositions, then the implication “If p then q “ denoted by p→q , called the
conditional statement of p and q , is defined by following truth table.
p q p→q
T T T
T F F
F T T
F F T
NOTE
The different situations where the conditional statements applied are listed below.
(1) If p then q
(2) p only if q
(3) q whenever p
(4) q is necessary for p
(5) q follows from p
(6) q when p
(7) p is sufficient for q
(8) p implies q
p q
T T T
T F F
F T F
F F T
NOTE
↔ is true if both p and q have same truth values. Otherwise ↔ is false.
EXAMPLE
p↔q: You can take the flight if and only if buy a ticket.
Example: 1
The automated reply can be sent when the file system is full.
Solution:
EXAMPLE: 2
Write the symbolized form of the statement. If either Ram takes C++ or Kumar takes
pascal, then Latha will take Lotus.
Solution:
www.BrainKart.com
Symbolic form: (R˅K)→L
Example 3
P:It is raining
Solution:
Symbolic form:
(1)
(2)
p→r
¬p → (¬q˄r)
(3) q ↔ ¬r
Example: 4
(1) If the moon is out and it is not snowing, then Ram goes out for a walk.
(2) If the moon is out, then if it is not snowing,Ram goes out for a walk.
(3) It is not the case that Ram goes out for a walk if and only if it is not snowing or the moon
is out.
Solution:
Q: It is snowing
Example: 5
Solution:
Symbolic form:
(1)
(2)
(3)
r→q
q→p
(s˄r) → q
EXAMPLE: 1
Show that the truth values of the formula ˄( → ) → are independent of their components.
Solution:
→ ˄( → ) ( ˄( → )) →
T T T T T
T F F F T
F T T F T
F F T F T
The truth values of the given formula are all true for every possible truth values of P and Q.
Therefore, the truth value of the given formula is independent of their components.
p q → ¬ ˅∨
T T T T
T F F F
F T T T
F F T T
EXAMPLE: 2
Write the symbolized form of the statement. If either Ram takes C++ or Kumar takes
pascal, then Latha will take Lotus.
Solution:
Tautology.
A statement that is true for all possible values of its propositional variables is
called
a tautology universely valid formula or a logical truth.
Example:1. Write the converse, inverse, contra positive of ‘If you work hard then you
will be rewarded’
Solution:
p: you will be work hard.
¬
q: you will be rewarded. ¬p: You will not be work hard.
q: You will no tbe rewarded.
Contrapositive: ¬ q→ p,if You will not berewarded then You will not be work hard.
rewarded.
Inverse: ¬ p→ ¬ q, if You will not be work hard then You will no tbe
Example:2. Write the converse, inverse, contra positive of ‘If you work hard then you
will be rewarded’
Solution:
www.BrainKart.com
Proof:
Let S: → ˄ → → →
To prove: S is a tautology
P Q R → → → → ˄ → S
T T T T T T T T
T T F T F F F T
T F T F T T F T
T F F F T T T T
F T T T T T T T
F T F T F T F T
F F T T T T T T
F F F T T T T T
Logical Equivalence:
Let p and q be two statements formulas, p is said to be logically equivalent to q if p & q have the same set of truth values or equivalently p & q are logically equivalent if ↔ is tautology.
Hence, ⇔ if and only if ↔ is a tautology.
A is called antecedent
www.BrainKart.com
B is called consequent.
Further ⇒ guarantees that B has the truth value T whenever A has the truth value T.
∴ In order to show any of the given implications, it is sufficient to show that an assignment of the truth value T to the antecedent of the given conditional leads to the truth value T for the consequent.
1. Prove without using truth table → ˄¬ ⇒¬
Proof:
Antecedent:
Consequent: ¬
→ ˄¬
p→ (q → p) ≡ p→ (¬q ∨p)
≡ ¬p∨ (¬q ∨p)
≡ ¬p∨ (p∨¬q)
≡ (¬p∨p)∨¬q
≡ T∨¬q
≡ T.
Example 2:Show that ¬(p↔q) ≡ (p∨q) ∧¬(p∧q) without constructing the truth table
Solution :
¬(p↔q) ≡ (p∨q) ∧¬(p∧q)
¬(p↔q) ≡ ¬(p→q) ∧ (q→p)
≡¬(¬p∨q) ∧ (¬q∨p)
≡¬(¬p∨q) ∨F∨F∨(q∧p)
≡¬(¬p∨q) ∨(q∧p)
≡(p∨q) ∧ (q∧p).
( ( P Q ) ( P Q ) ( P R ) ) ( ( P Q ) ( P R ) )
[ ( P Q ) ( P R ) ] [ ( P Q ) ( P R ) ] T
( ( P Q ) ( P Q ) ) ( P Q ) P
( ( P Q ) ( P Q ) ) ( P Q ) P
Consider,
( ( P Q ) ( P Q ) ) ( P Q ) P Reasons
( ( P Q ) ( P Q ) ) ( P Q ) (Demorgan‟s law)
(Commutative law)
((QP)(QP))(PQ) (Distributive law)
( P P T )
( ( Q Q ) P ) ( P Q )
(PT P)
Q ( P R ) ( ( P R ) Q )
( P Q R ) ( P Q R ) ( N e g a t i o n l a w )
Solution:
Q)
Let S = ( P Q ) ( P
T T F F F F T P Q
T F F T T T T P Q
F T T F T T T P Q
F F T T T F F P Q
P PQ P.
Obtain PDNF of
Solution:
P(P(~QP))
P P Q P ~
~ P(P~Q)(PP)
(~ PT)(P~Q)(PP)
(~ P(Q~Q)(P~Q))(P(Q~Q))
(~
(~
www.BrainKart.com
P Q) (~ P ~Q)
(P ~Q)
(PQ)
P Q) (~ (P~Q
)
P~Q)
(P~Q)
(PQ)
www.BrainKart.com
Quantifiers.
Universal Quantifiers:
The universal Quantification of P(x) is the proposition.”P(x) is true for
all values of x in the universe of discourse”.
The notation ¥x P(x) denotes the universal quantification of P(x).here
¥ is called the universal quantifier.
Existential Quantifier:
The existential Quantification of P(x) is the proposition.” There exists
an element x in the universe of discourse such that P(x) is true”.
We use the notation Ǝx P(x) for the existential quantification of p(x).here
Ǝ is called the existential quantifier.
Normal Forms:
DNF:
A formula which is equivalent to a given formula and which consists of sum
of elementary products is called a disjunctive normal form of the given
formula
Obtain PCNF of (¬p→ r) ∧(q↔ p). and hence obtain its PDNF.
Solution:
PCNF:
S⇔ ¬p → r ∧ q ↔ p .
⇔ ( p ∨ r ∨ q ∧ ¬q )∧((¬q∨ p).∨ r ∧ ¬ r ) ∧ ( ¬p ∨ q ∨ p ∧ ¬p ) .
∨ ¬r)
PDNF of S: (p∧q∧r) ∨ ¬p ∧ ¬q ∧ r ∨ ¬p ∨∧ ¬q ∧ ¬r .
2) ¬H(a,b)
3) Conslution is ¬S(a,b).
Solution :
EXAMPLE: 3 Show that ¬ p(a,b) follows logically from (x) (y) (p(x,y)
→w(x,y)) ¬ ,
www.BrainKart.com
Solution :
EXAMPLE:4.
2 2
Symbolise: For every x, these exixts a y such that x +y ≥ 100
Solution :
( x ) ( ∃ ) (x2+y2 ≥ 100)
r: I am in a good mood.
(3) If I am not in good mood, then I will not watch T.V. or I will study.
(1 ) ( p q ) r
( 2 ) r ( p q )
( 3 ) r ( q p )
www.BrainKart.com
Method of proofs :
Trival proof:
In an implication p q , if we can establish that q is true , then regardless of the truth
Suppose 2 is irrational.
p2
2 p2 2q2 .
q2
Since p2 is an even integer, p is an even integer.
Thus p & q are even . Hence they have a common factor 2. Which is a contradiction to our
assumption.
2 is irrational.
www.BrainKart.com
UNIT II COMBINATORICS
If (n=1) pigeon occupies „n‟ holes then atleast one hole has more than 1 pigeon.
Proof:
Assume (n+1) pigeon occupies „n‟ holes.
Claim: Atleast one hole has more than one pigeon.
Suppose not, ie. Atleast one hole has not more than one pigeon.
Therefore, each and every hole has exactly one pigeon.
Since, there are „n‟ holes, which implies, we have totally „n‟ pigeon.
Which is a to our assumption that there are (n+1) pigeon.
Therefore, atleast one hole has more than 1 pigeon.
www.BrainKart.com
+
SOLUTIO ……
N: + + =
+
Let P(n) ……
: + +
1.P(1): = is true.
2.ASSUME
+
P(k) ……
: + +
P(k+1 is
) true.
= (k+1)! – 1 is true
= (k+1)!-1 +(k+1)(k+1)!
= (k+1)! [(1+k+1)] – 1
= (k+1)! (k+2) – 1
= (k+2) ! – 1
= [(k+1) +
1]! - 1
P(k+1)is true.
SOLUTION
:
Let p(n): 30 + 31 +
…….. n =
0
3
1.p(0) : = = = 1 is true .
2.ASSUME
P(k): ): 30 31 + is
n
+ …….. = true.
CLAIM : p(k+1)is
true.
P (k+1) : ): 30 + 31 + 32+
…….. + k + 3k+1
=
=
www.BrainKart.com
P(k+1)is true.
P(n): ∑nm=0 3m
= is true for n>=0
= (1.707)
>√ + (1.414) is
√ +√ true
2.ASSUM
E
is true ->
√
> (1)
P(k): +….
that √ + √ + √
CLAIM : p(k+1) is
true. √
+ using (1)
….
P(k+1) : √ +√ + √
√ √
√
√
√
√
√
>
√
√
>
>
√
P(k+1)
> √
P(K+1) is true
SOLUTION :
Let p(n): 12 + 32 + 52 +……
n-1)2 = n(2n-1)(2n+1)
2
1.p(1): 1 1(2-1) .
= (2+1) = 3
=1 is true.
P(k+1) is true .
SOLUTION:
We summarize the two steps used to show that p(n)is true for all positive integers
n.
NOTE:
The two forms of mathematical induction are equivalent that is, each can be shown to
be valid proof technique by assuming the other
EXAMPLE 1: Show that if n is an integer greater than 1, then n can be written as the product of
primes.
SOLUTION:
Let P(n) be the proportion that n can be written as the product of primes
Basis Step : P(2) is true , since 2 can be written as the product of one prime
Inductive Step: Assume that P(j) is positive for all integer j with j<=k. To complete the Inductive
Step, it must be shown that P(k+1) is trueunder the assumption.
Then it can be written as the product of two positive integers a and b with
2<=a<b<=k+1. By the Innduction hypothesis, both a and b can be written as the
product of primes, namely those primes in the factorization of a and those in
the factorization of b .
www.BrainKart.com
Problem :
Theorem :
Proof:
Basis Step: 5 – 0 = 0
Inductive Step: Suppose that 5j = 0 for all non negative integers j with o<=j<=k. Write k+1 = i+j
where I and j are natural numbers less than k+1. By the induction hypothesis
5(k+1) = 5(i+j) = 5i + 5j = 0+ 0 =0
Example 1:
Among any group of 367 people, there must be atleast 2 with same birthday, because there are
only 366 possible birthdays.
Example 2:
In any group of 27 English words, there must be at least two, that begins with the same letter,
since there are only 26 letters in English alphabet
Example 3:
Show that among 100 people , at least 9 of them were born in the same month
Solution :
No of Holes = n = No of Month = 12
Combinations:
The number of combinations of ‘n’ things taken ‘r’ as a time means the
number as groups of ‘r’ things which can be formed from the ‘n’ things.
It denoted by nCr.
nCr x r! =n P r
nCr = n P r / r! --------------------(A)
nCr = n! / (n-r)!r!
Proof :
= n! / (n-r) ! r!
nCr=nCn-r
Example :
30C 30 C
28 = 30 – 28
=30 C2
30 x 29 / 1x2
Example 2:
Sol :
=10x9x8x7x6 / 1x2x3x4x5
= 9 x 28 ways.
Example 5 :
Sol : The 3 educanalist can be choosen from a educanalist in 9C3 ways. The 4
socialist can be choosen from 11 socialist in 11C4 ways.
=9C3.11C4
= 9! / 3! 6! . 11! / 4! 7!
www.BrainKart.com
= 84 x 330
27720 ways.
Example 6 :
Sol : Let one player be fixed the remaining players are 14 . Out of these 14
players we have to select 10 players in 14C10 ways.
14x13x12x11 / 1x2x3x4
1001 ways.
2. Let 2 players be fixed. The remaining players are 13. Out of these
players we have to select a players in 13C9 ways.
715 ways.
Example 9 :
r=9
Example 12 :
Sol :
(a) 3 men can be selected from 6 men is 6C3 ways. 4 women can
be selected from 7 women in 7C4 ways.
.`. By product rule the committee of 3 men and 4 women can
be selected in
(b) For the committee of atleast one women we have the following
possibilities
= 7x20+21x15+35x6+35x1
=140x315x210x35
=700 ways.
(d) For the committee of bath sexes we have the following possibilities .
=6C1x7C3+6C2x7C2+6C3x7C1
=6x35+15x21+20x7
=210+315+140
=665 ways.
Sol : (1) 4 balls of any colour can be chosen from 11 balls (6+5) in 11C 4 ways.
=330 ways.
(2) The 2 white balls can be chosen in 6C2 ways. The 2 red balls can be
chosen in 5C2 ways. Number of ways selecting 4 balls 2 must be red.
=6C2 + 5C2
www.BrainKart.com
=. 6x5 . + . 5x4 .
1x2 1x2
=15 + 10
=25 ways.
Number of ways selecting 4 balls and all Of same colour is = 6C4 + 5C4
=15+5
=20ways.
DEFINITION
.
A Linear homogeneous recurrence relation of
degree K with constant coefficients is a recurrence
relation of the form
f =2 ,Ɏ € N is give
f(n+1)=f(n)+2,n>=0 with f(0)=0
f(1)=f(0)+2=0+2=2
f(2)=f(1)+2=2+2=4 and so on.
It is a first order recurrence relation.
www.BrainKart.com
n
Example 1: If sequence an=3.2 ,n>=1, then find the
recurrence relation.
Solution:
For n>=1
n
an=3.2 ,
n-1,
now, an-1=3.2
n
‘ =3.2 / 2
n
an-1=a /2
an = 2(an-1)
an = 2an-1, an =
for n >1 with 3
Example 2 :
Find the recurrence relation for S(n) = 6(-5),n> 0
Sol :
n
Given S(n) = 6(-5)
S(n- = 6(-
n-1
1) 5)
n
=6(-5) /
-5
S(n- = S(n) /
1) -5
Sn = -5.5 (n-1) , n> 0 with s(0) =6
k k
Example 5: Find the relation from Yk =A.2 + B.3
Sol :
k k
Yk =A.2 + B.3 (1
Given -------------- )
www.BrainKart.com
k
=A.2
Yk +1 k+1
+1 + B.3
k k
=A.2 .2 + B3 .3
=2A. + 3B.3
k
(2
Yk k
+1 2 ------------------------ )
=4A. + 9B.3
k
(3
Yk k
+2 2 ------------------------ )
(3) – 5(2) + 6(1)
yk+2-5yk+1+ 6yk=4A.2k+ 9B.3k-10A.2k- 15B.3k+ 6A.2k+ 6B.3k
=0
Sol ;
Fibonacci sequence 0,1,2,3,4........ satisify the
recurrence relation
= 1+ 5 / 2
Sol :
fn = (1+ 5 / 2)n + α2 (1- 5 / 2)n
α1 ----(A)
given f0 =0 put n=0 in (A) we
get
0
f = (1+ 5 / 2) + α2 (1-
0
α1 5 / 2)
(A) +α =0
α ------------------------ (1)
given f1 =1 put n=1 in (A) we
get
1
f1 = α1 (1+ 5 / 2) + α2
1
(1- 5 / 2)
n n
(A)(1+ 5 / 2) + α2 (1- 5 / 2) α2 (2
= 1 ------- )
www.BrainKart.com
To solve(1) and
(2)
(1) X + 5 => + α1 + (1+ 5 / 2)
/ 5/ α2 =0 -----(3)
(1+ 5 / 2) α1 + (1+ 5 / 2)
α2 = 1------(2)
(-) (-) (-)
/ α2 + 5/ α2 - / α2 + 5/ α2
= -1
2 5 d2 = -1
α 2 = - 1/5
Put α2 = - /5 in eqn we get α1 1/5
Substituting these values in (A) we get
n n
Solution fn=1/5 (1+5/ 2 ) -1/5 (1+5/ 2 )
Example 13 ;
Sol :
r2 – 2r -2 =0
Roots are r= 2+ 2i / 2
=1+ i
www.BrainKart.com
NOTE:
(B) is obtained from (A) by omitting F(n) for example ,the recurrence relation
[ By omitting F(n) = 2n ]
STEP1:
Case1:if the base a of the RHS is the characteristric root,then the solution is of the
n n
can .therefore substitute ca in place of ,can-1 in place of c(n-1) an-1 etc..
n
Case2: if the base a of RHS is not a root , then solution is of the form ca
n n-1
therefore substitute ca in place of an , ca in place of an-1 etc..
STEP2:
Now, equating the LHS and compare the coefficients find the constants c0,c1,….
Example 1:
Solve +2n with a1 =3
Solution:
-2n=0
It’s associated homogeneous equation is
+2n becomes
+d =3(c(n-1)+d)+2n
+d =3cn-3c+3d+2n
2cn+2n-3c+2d=0
(2+2c)n+(2d-3c)=0
2+2c=0 and 2d-3c=0
Saving we get c=-1 and d=-3/2 therefore cn+d is a solution if c=-1
and d=-3/2
=-n-3/2
Is a particular solution.
General solution
= (n)+ (p)
n -n -3/2 ………………..(A)
Given put n=1 in (A) we get
1 -1-3/2
3=3 1-5/2
www.BrainKart.com
1=11/2
1=11/6
General solution
n
n=-n-3/2+(11/6)3
Example:2
Solve s(k)-5s(k-1)+6s(k-2)=2
Solution:
c-5c+6c=2
www.BrainKart.com
2c=2
c=2
sn(p)=1
1+ 2 +1
(A) => =1 = 1+ 2 +1
1+ 2 =0……………(1)
1=2, 2=-2
Solution is
Example :3
Solve + = +2n
= =1
Solution:
+ =0
+ n
1 2 )2
To find particular solution
The first term in RHS of the given recurrence relation is 3n.therefore ,the solution
is of the form + n
Replace b + n, b + n-1)
y y
- n+ n+ - =3n
+ n-4 =3n
www.BrainKart.com
n 2 n
Solution n =(-11+7/2n)2 +12+3n+1/2n 2
www.BrainKart.com
Example:
i) let A,B and C denote respectively the number of integer between 1 to 100
that are divisible by 7,11 and 13 respectively
now,
=[100/11]=9 |C|
=[100/13]=7 |A^B|
=[100/7]=1 |A^C|
=[100/7*13]=1 |B^C|
=[100/11*13]=0 |A^B^C|
=[100/7*11*13]=0
|AvBvC| =|A|+|B|+|C|-|A^B|-|A^C|-|B^C|+|A^B^C|
=14+9+7-(1+1+0)+0
=30-2=28
www.BrainKart.com
Now,
ii) let A and B denote the no. between 1 to 100 that are divisible by 3 and 7
respectively
|A| =[100/3]=33
|B|=[100/7]=14
| A^B |=[100/3*7]=14
=33-4=29
Example:
There are 2500 student in a college of these 1700 have taken a course in
C, 1000 have taken a course pascal and 550 have taken course in networking
.further 750 have taken course in both C and pascal ,400 have taken courses
in both C and Networking and 275 have taken courses in both pascal and
networking. If 200 of these student have taken course in C pascal and
Networking.
i)how many these 2500 students have taken a courses in any of these three
courses C ,pascal and networking?
ii)How many of these 2500 students have not taken a courses in any of
these three courses C,pascal and networking?
Solution:
Let A,B and C denotes student have taken a course in C,pascal and
networking respectively
www.BrainKart.com
Given
|A|=1700
|B|=1000
|C|=550
| A^B | =750
| A^C|=40
| B^C =275
| A^B^C |=200
Number of student who have taken any one of these course=| A^B^C |
By principle of inclusion and exclusion
|AvBvC| =|A|+|B|+|C|-|A^B|-|A^C|-|B^C|+|A^B^C|
=(1700+1000+550)-(750+400+275)+200 =3450-
1425=2025
Example:
basketball games and 30 watch football and hockey games.how many people
watch exactly one of the three games?
Solution:
Given
n(H)=285,n(F)=195,n(B)=115,n(H^F)=70,n(H^B),n(F^B)=30
let x be the number television watches who watch all three games
now, we have
Given 50 members does not watch any of the three games. Hence
(165+x)+(95+x)+(35+x)+(70+x)+(50+x)+(30+x)+x=500
=445+x=500
X=55
=295+3*55
=460
www.BrainKart.com
The generating function for the sequence ‘S’ with terms a0,a1,….. an
Of real numbers is the infinite sum. ∑
n
G(x)=G(s,x)= a0+a1x+,….. anx +…..
For example,
i) the generating function for the sequence ‘S’ with the terms 1,1,1,1…..i.s
given by,
G(x)=G(s,x)= =1/1-x
function for the sequence ‘S’ with terms 1,2,3,4…..is given
ii)the generation ∑
by
G(x)=G(s,x)=
∑
+……..
2
=1+2x+3x
-2 2
=(1-x) =1/(1-x)
2.Solution of recurrence relation using generating function
Procedure:
The following table represent some sequence and their generating functions
1 1 1/1-z
n
2 (-1) 1/1+z
n
3 a 1/1-az
n
4 (-a) 1/1+az
2
5 n+1 1/1-(z)
2
6 n 1/(1-z)
3
7 n2 z(1+z)/(1-z)
n 2
8 na az/(1-az)
solution:
let the generating function of {an} be
G(x)= ∑
∑
an=3an-1+1 +∑
=3∑
n
multiplying by x and summing from 1 to ∞,
∑ =3∑ +∑
G(x)-a0=3xG(x)+x/1-x
G(x)(1-3x)=a0+x/1-x
www.BrainKart.com
=1+x/1-x
G(x)(1-3x)=1=x+x/1-x
G(x)=1/(1-x)(1-3x)
G(x)=-1/2/1-x+3/2/1-3x
-1 -1
G(x)=-1/2(1-x) +3/2(1-3x)
2
G(x)[1-x-x ]=a0-a1x-a0x
2
G(x)[1-x-x ]= a0-a0x+a1x
2
G(x)=1/1-x-x [a0=1, a1=1]
√ √
√ + √
=
Now,
2 √ √
1/1-x-x = + …………(1)
1=A[ √ ]+ B[ √ ]……(2)
Put x=0 in (2)
√
(2)=> A+B=1
(2)=> 1=B[1- ]
√
√
√ √
1=B[ √ ]
www.BrainKart.com
B= √ √
1=B[ √ ]
√
√
(3) => A=
Sub A and B in (1)
-1
G(x)= √
[1-( √
)x]-1 - √
[1-( √ )x]
√
√√
=√ [1+( √ )x+ √ 2+…….
√
n
√ [1+( √ )x+ √
= 2+…….
an=coefficient of x in G(x)
solving we get
n+1
√ √
an= √ n+1 -√
www.BrainKart.com
FORMULA:4
Solution:
It is given that
n=500
|A|=200
|B|=120
www.BrainKart.com
|A^B|=60
|AvB|=|A|+|B|-|A^B|
|AvB|=200+120-60=260
=240
Example2:
Solution:
By the principle of inclusion-exclusion students who studied any one of the subject
is
|AvBvC|=|A|+|B|+|C|=|A^B|-|A^C|-|B^C|+|A^B^C|
=30+54+25-20-3-15+1
=110-38=72
www.BrainKart.com
=20-1=19
Example3:
How many positive integers not exceeding 1000 are divisible by 7 or 11?
Solution:
Let A denote the set of positive integers not exceeding 1000 are divisible by
7
Let B denote the set of positive integers not exceeding 1000 that are divisible by
11
Then |A|=[1000/7]=[142.8]=142
|B|=[1000/11]=[90.9]=90
|A^B|=[1000/7*11]=[12.9]=12
The number of positive integers not exceeding 1000 that are divisible
either 7 or 11 is |AvB|
By the principle of inclusion –exclusion
|AvB|=|A|+|B|-|A^B|
www.BrainKart.com
=142+90-12=220
There are 220 positive integers not exceeding 1000 divisible by either 7 or
11
Example:
A survey among 100 students shows that of the three ice cream flavours
vanilla,chocolate,and strawberry ,50 students like vanilla,43 like chocalate ,28 like
strawberry,13 like vanilla, and chocolate,11like chocalets and strawberry,12 like
strawberry and vanilla and 5 like all of them.
Find the number of students surveyed who like each of the following flavours
Solution:
|A^B^C|=5
|A^C|=12
|A^C-B|=7
Similarly |B^C-A|=6
www.BrainKart.com
7+5+6=18
Thus for we have accounted for 90 of the 100 students the remaining 10
students like outside the region AvBvC
Now,
1.|B-C|=24+8=32
2.|B^C-A|=6
Therefore 6 students like both chocolate and strawberry but not vanilla
3.|AvB-C|=30+8+24=62
Example 5: find the number of integers between 1 to 250 that are not divisible
by any of the integers 2,3,5 and 7
Solution:
|A|=[250/2]=125
|B|=[250/3]=83
|C|=[250/5]=50
|D|=[250/7]=35
Now, the number of integer between 1-250 that are divisible by 2 and
3=|A^B|=[250/2*3]=41
|A^D|=[250/2*7]=17
|B^C|=[250/3*5]=16
|B^D|=[250/3*7]=11
|C^D| =[250/5*7]=7
1. Solve the recurrence relation an+2- an+1-6 an=0 given a0=2 and a1=1
using generating functions
SOLUTION:
a -a -6 a
∑ n+2 n+1 ∑ n=0 ∑
2
1/x ∑ -1/x∑ -6∑ =0
2
1/x [G(x)-a0-a1x]-1/x[G(x)-a0]-6[G(x)] = 0
2
1/x [G(x)-2-x]-1/x[G(x)-2]-6G(x) = 0
2
Multiply by x we have
Generating functions
G(x)
Now apply partial fraction
n 2 n 2 n n
an = co efficient of x in [(1+3x+3x +….3x )+1-2x+2x ……+(-1) 2x ]
n n
an = 3 +(-1) 2n
Identify the sequence having the expression as a generating function
Solution:
Given G(x)= …….(1)
=
Now
= +
5+2x=A(1-2x)+B(1+2x)
G(x) = +
-1 -1
=2 [1+2x] +3[1-2x]
=2 [1-2x+2x2-2x3+….]+3[1+2x+2x2+….]
=2 ∑
www.BrainKart.com
For example, the edge e1 and e2 are called parallel edges since
e1 and e2 have the same pair of vertices (v1,v2) as their terminal
vertices.
DEFINITION: Incident:
If the vertex vi is an end vertex of some edge ek and ek is said to
be incident with vi.
In the above graph vertices V1 and V2, V2 and V3, V3 and V4, V3
and V5 are adjacent. Whereas V1 and V3, V3 and V4 are not adjacent.
Mixed Graph:
If some edges are directed and some are undirected in a graph,
the graph is called an mixedgraph.
Multi Graph:
A graph which contains some parallel edges is called a
multigraph.
Pseudograph:
www.BrainKart.com
Example 1:
d (v1) = 5 d (v4) = 3
d (v2) = 2 d (v5) = 1
d (v3) = 5 d (v6) = 0
In-degree and out-degree of a directed graph:
In a directed graph, the in-degree of a vertex V, denoted by deg-
(V) and defined by the number of edges with V as their terminal vertex.
2e
www.BrainKart.com
Proof:
Since every degree is incident with exactly two vertices,
every edge contributes 2 to the sum of the degree of the vertices.
Therefore, All the ‘e’ edges contribute (2e) to the sum of the degrees
of vertices.
Therefore, deg(v)= 2e
Theorem 2:
In an undirected graph, the numbers of odd degree vertices
are even.
Proof:
Let V1 and V2 be the set of all vertices of even degree and set of all
vertices of odd degree, respectively, in a graph G= (V, E).
Therefore,
d(v)= d(vi)+ d(vj)
By handshaking theorem, we have Since
each deg (vi) is even, is even.
As left hand side of equation (1) is even and the first expression on
the RHS of (1) is even, we have the 2nd expression on the RHS must be
even.
Since each deg (vj) is odd, the number of terms contained in i.e.,
The number of vertices of odd degree is even.
Theorem 3:
The maximum number of edges in a simple graph with ‘n’
vertices is n(n-1))/2.
www.BrainKart.com
Proof:
We prove this theorem by the principle of Mathematical
Induction.
For n=1, a graph with one vertex has no edges.
Therefore, the result is true for n=1.
GRAPH ISOMORPHISM
DEFINITION:
RESULT 1:
RESULT 2:
Note:
A matrix whose-rows are the rows of the unit matrix but not
necessarily in their natural order is called permutation matrix.
Example:
Test the Isomorphism of the graphs by considering the adjacency
matrices.
DEFINTTIONS:
Path:
A Path in a graphi s a sequence v1,v2,v3……vk of vertices each
adjacent
to the next.ln other words,starting with the vertex v1 one can
travel along edges(v1,v2),(v2,v3)..and reach the vertex vk.
Cycle or Circuit:
Example I :
Consider the graph:
www.BrainKart.com
P4 = (<V1;V2>,<V2,V4>,<V4,V1>,<V1,V2>, <V2,V3>)
P5 = (<V1,V2>,<V2,V4>,<V4,V1 >,<V1,V4>,<V4,V3>)
DEFINITION:
REACHABLE:
Connected Graph :
An directed graph is said to be connected if any pair
of nodes are reachable from one another that is, there is a
path between any pair of nodes.
A graph which is not connected is called disconnected graph.
www.BrainKart.com
Components of a Graph :
DEFINITION:
Unilaterally Connected:
A simple digraph is said to be unilaterally connected if for
any pair of nodes of the graph atleast one of the node of the
pair is reachable from the node.
Strongly Connected:
A simple digraph is said to be strongly connected if for any pair of
nodes of the graph both the nodes of the pair are reachable from
the one another.
Weakly Connected:
We call a digraph is weakly.connected if it is connected.as an
undirected graph in which the direction of the edges is neglected.
Note:
1.A unilateraaly connected digraph is weakly
connectedbut a weakly connected digraph is not necessarily
unilaterally connected.
2.A strongly connected digraph is both unilaterally
and weakly connected.
EXAMPLE:
For example consider the graph:
DEFINITION:
For a simple digraph maximal strongly connected subgraph
is called
strong component.
For the digraph:
Properties :
(1) A Hamiltonianc irbuitc ontainsa Hamiltonian path but
a graph , Containing a Hamiltonian path need not have
a Hamiltonian cycle.
(2) By deleting any one edge from Hamiltonian cycle,we can get
Hamiltonian path.
(3) A graph may contain more than one Hamiltonian cycle.
(4) A complete graph kn, will always have a Hamiltonian cycle, when n>=3
Note :
We don't have simple necessary and sufficient criteria for the
existence of Hamiltonian cycles. However, we have many
theorems that give sufficient conditions for the existence of
Hamiltonian cycles.
Also, certain properties can be used to show that a graph
Has no Hamiltonian cycle.F or example a, graph with a vertex
of degree one cannot have a Hamiltonian cycle, since in a
Hamiltonian cycle each vertex is incident with two edges in the
cycle.
The problem is to start from any one of the 4 land areas.A,B,C,D, walk
across each bridge exactly once and return to the starting point.(without
swimmimg across the river)
www.BrainKart.com
Theorem:
Proof:
Let v € V(G) and S be the set of all those vertices of G which are mutually
reachable with v.
EULER GRAPH:
(2)Cycle should contain all the edges of the graph but exactly once.
Theorem:
Proof:
=even degree.
Unit I
LOGIC AND PROOFS
PART – A
p→ (q → p) ≡ p→ (¬q ∨p)
≡ ¬p∨ (¬q ∨p)
≡ ¬p∨ (p∨¬q)
≡ (¬p∨p)∨¬q
≡ T∨¬q
≡ T.
2. Prove that p→ q is logically prove that (¬p∨q)
Solution:
p q → ¬ ˅∨
T T T T
T F F F
F T T T
F F T T
Example: p ∨ ¬q is a tautology.
4. When do you say that two compound statement proposition are equivalent.
Two compound proposition are said to be equivalent if then the have identical truth tables.
5. Give an indirect proof of the theorem if 3n+2 is odd, then n is odd.
Solution:
P: 3n+2 is odd
Q: n is odd
Hypothesis: Assume that → q is false.
If a statement of the form (x)A(x) is assumed to be true , then the universal quantifier can be
dropped to obtain A(y) is true for any arbitrary object y in the universe.
Solution: ¬ cannot be expressed using the connectives {∨,∧} .since no sets contribution of the statement exists {∨,∧} as input if T and the output is F.
8. Write the converse, inverse, contra positive of „If you work hard then you will be rewarded‟
Solution:
p: you will be work hard.
q: you will be rewarded. ¬p: You will not be work hard.
¬ q: You will no tbe rewarded.
Contrapositive: ¬ q→ p,if You will not be rewarded then You will not be work hard.
Inverse: ¬ p→ ¬ q, if You will not be work hard then You will no tbe rewarded.
9. let E={ -1, 0,1,2 denote a universe of discourse . If P(x ,y) : x +y =1 find the truth value of ( x ) ( ∃ ).
Solution: Given E={ -1, 0,1,2} P(x,y): x+y=1
( x ) ( ∃ ). P(x,y) is true since 2+(-1)=1
1+0=1.
10.obtain the disjunctive normal forms of p ∧(p→ q)
⇔ ∧(¬ ˅ ∨ )
⇔ ∧ ¬ ∨ (p ∧ q)
T T T T T
T F F F T
F T F T T
F F F T T 12.Write an
equivalent formula for p∧(q r) which contains neither the bi onditional nor conditional.
www.BrainKart.com
Solution :
p∧(q r) ⇔ ( ∧ (q → r) ∧ (r → )
⇔ ( ∧ (¬q ∨ r) ∧ (¬r ∨ ).
13. Show that (x) (H(x) →M(x)) ∧ ⇒ ()
Solution :
14. Show that ¬ p(a,b) follows logically from (x) (y) (p(x,y) →w(x,y))¬ ,
Solution :
2 2
15. Symbolise: For every x, these exixts a y such that x +y ≥ 100
Solution :
( x ) ( ∃ ) (x2+y2 ≥ 100)
www.BrainKart.com
PART – B
1. a) Prove that → ˄ → → →
Proof:
Let S: → ˄ → → →
To prove: S is a tautology
P Q R → → → → ˄ → S
T T T T T T T T
T T F T F F F T
T F T F T T F T
T F F F T T T T
F T T T T T T T
F T F T F T F T
F F T T T T T T
F F F T T T T T
2. Show that ¬(p↔q) ≡ (p∨q) ∧¬(p∧q) without constructing the truth table
Solution :
¬(p↔q) ≡ (p∨q) ∧¬(p∧q)
¬(p↔q) ≡ ¬(p→q) ∧ (q→p)
≡¬(¬p∨q) ∧ (¬q∨p)
≡¬(¬p∨q) ∨F∨F∨(q∧p)
≡¬(¬p∨q) ∨(q∧p)
≡(p∨q) ∧ (q∧p).
www.BrainKart.com
3. Obtain PCNF of (¬p→ r) ∧(q↔ p). and hence obtain its PDNF.
Solution:
PCNF:
S⇔ ¬p → r ∧ q ↔ p .
⇔ ( p ∨ r ∨ q ∧ ¬q )∧((¬q∨ p).∨ r ∧ ¬ r ) ∧ ( ¬p ∨ q ∨ p ∧ ¬p ) .
PDNF of S: (p∧q∧r) ∨ ¬p ∧ ¬q ∧ r ∨ ¬p ∨∧ ¬q ∧ ¬r .
p2
2 p2 2q2 .
q2
Since p2 is an even integer, p is an even integer.
www.BrainKart.com
p= 2m for some integer m.
(2m)2 2q2 q2 2m2
Thus p & q are even . Hence they have a common factor 2. Which is a contradiction to our
assumption.
2 is irrational.
5. Verify that validating of the following inference. If one person is more successful than
another, then he has worked harder to deserve success. Ram has not worked harder than Siva.
Therefore, Ram is not more successful than Siva.
Solution:
Let the universe consists of all persons.
Let S(x,y): x is more successful than y.
H(x,y): x has worked harder than y to deserve success.
a: Ram
b: Siva
2) ¬H(a,b)
3) Conslution is ¬S(a,b).
Unit – II
COMBINATORICS
PART - A
1. Pigeon Hole Principle:
If (n=1) pigeon occupies ‘n’ holes then atleast one hole has more than 1 pigeon.
Proof:
Assume (n+1) pigeon occupies ‘n’ holes.
Claim: Atleast one hole has more than one pigeon.
Suppose not, ie. Atleast one hole has not more than one pigeon.
Therefore, each and every hole has exactly one pigeon.
Since, there are ‘n’ holes, which implies, we have totally ‘n’ pigeon.
Which is a to our assumption that there are (n+1) pigeon.
Therefore, atleast one hole has more than 1 pigeon.
Solution:
n!
We know that nPr = (n r)!
n!
nPr -1= [n (r 1)]!
But n! = n*(n-1)!
n!
= (n-r+1) * [n (r 1)]!
(n - r +1) * n! n! = nPr
= =
[n r 1)! (n r)!
Solution:
Solution:
nP3 = 5nP2
n-2 = 5
n=7
6. How many ways are these to select five players from 10 member tennis team to make a
trip to match to another school.
Solution:
10!
Now, 10C5 = 5!5! = 252 ways.
www.BrainKart.com
n
7. If the sequence an = 3.2 , n ≥ 1, then find the corresponding recurrence relation.
Solution:
n
For n≥1 an = 3.2
n-1 n-1 2n
Now, an-1 = 3.2 = 3. 2 = 3.
2
n
an-1 = a an =2 (an-1)
2
an =2 an-1, for n ≥ 1, with a0 =3.
PART –B
1. Find the number of distinct permutation that can be formed. From all the letter of each
word (1) RADAR (2) UNUSAL.
Solution :
(1) The word RADAR contains 5 letters of which 2 A’s and 2 R’s are there
5!
The number of possible words = 2!2!
120
= = 30
2*2
7!
(2) The number of possible words = 3!
=840
No. of distinct permutation = 840.
1 1 1 1
1 2 3 n
2. Use mathematical Induction, prove that + + + ….+ > n for n ≥ 2.
Solution:
www.BrainKart.com
1 k. k 1 1
= k + k 1 = k 1
= k 1
P(k+1) > k 1 is true.
2 = C1 + C2. 2 = 1 + C2. C2 = 1
Substituting C1 = 1 & C2 = 1 in A
n n n
The required solution is an = ( 2 ) (cos + i.sin
4 4 )
www.BrainKart.com
UNIT – III
GRAPHS
PART -A
1. The Handshaking Theorem
Let G = (V, E) be an undirected graph with ‘e’ edges. Then vV deg( v) = 2е
The sum of degrees of all the verticies of an undirected graph is twice the number of edges of
the graph and hence even.
Proof:
Since every edge is incident with exactly two vertices, every edges contributes 2 to the sum
of the degree of the vertices.
All the ‘e’ edges contributes (2e) to the sum of the degrees of vertices.
deg( v) = 2e
2. Draw the graph with 5 vertices, A, B, C, D, E such that deg(A) = 3, 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
Let V1 and V2 be the set of all vertices of even degree and set of all v ertices of odd
degree, respectively, in a graph G= (V, E).
www.BrainKart.com
As left hand side of equation (1) is even and the first expression on the RHS of (1) is even, we
have the 2nd expression on the RHS must be even.
Since each deg (vj) is odd, the number of terms contained in i.e., The number of vertices of
odd degree is even.
c
4. If the simple graph G has 4 vertices and 5edges, then how many edges does G have?
Solution:
( 1)
E(G Gc ) =
2
( 1)
E(G) + E(Gc ) =
2
( 1)
e+ E(Gc ) =
2
E(Gc ) =
( 1)
( 1)
Gc has - e edges
2 2
c 4(4 1)
G have - 5 = 6 – 5 = 1 edges.
2
5. How many edges are there in a graph with ten vertices each of degree six.
Solution:
= 10*6 = 60.
6. How many vertices does a regular graph of degree 4 with 10 edges have.
www.BrainKart.com
Solution:
d (v) = 2e
Let ‘n’ be the number of vertices and ‘e’ is the number of edges.
4n = 2 * 10
n=5
A graph G is said to be bipartite if its vertex set V(G) can be partitioned into two disjoint non empty sets
V1 and V2, V1V2=V(G), such that every edge in E(G) has one end vertex in V 1 and another end vertex
in V2. (So that no edges in G, connects either two vertices in V 1 or two vertices in V2)
Solution:
a) Adjacency matrix
V 1 0 1 1 0
V 2 1
A = aij = V 3 1 0 0 1
0 0 1
0
V 4 1 1 0
b)
V 1 0 1 0 0
V 2 0 0 1 0
A = aij = V 3 1 1 0 0
V 4 0 1 1 0
9. Define: Graph Isomorphism
Two graph G1 and G2 are said to be Isomorphic to each other, if there exist a one-to-
one correspondence between the vertex sets which preserves adjacency of the vertices.
A directed graph is said to be connected if any pair of nodes are reachable from one another. That
is, there is a path between any pair of modes.
PART – B
1.Show that graph G is disconnected if and only if its vertex set V can be partitioned into two
nonempty subsets V1 and V2 such that there exists no edge in G whose one end vertex is V1
and the other in V2.
Solution:
Suppose that such a partitioning exists. Consider two arbitrary vertices a & b of G such that a
V1 and b V2. No path can exist between vertices a & b. Otherwise, there would be atleast
one edge whose one end vertex be in V1 and the other in V2. Hence if partition exists, G is not
connected.
www.BrainKart.com
Consider a vertex a in G. Let V1 be the set of all vertices that are joined by paths to a. Since
G is disconnected, V1 does not include all vertices of G. The remaining vertices will form a set V2.
No vertex in V1 is joined to any in V2 by an edge. Hence the partitio.
(n k)(n k 1)
2. A simple graph with „n‟ vertices and „k‟ components can have atmost edges.
2
Proof:
Let n1,n2, ……, nk be the number of vertices in each of k components of the graph G.
ni = nk
i1
= (ni k)
i1
(ni 1) = n-kk
i1
k
Squaring on both sides
ni k = (n-k)2
i1
2 2
(n1-1)2 + (n2-1)2 + …. + (nk -1)2 n + k -2nk
12 1 22 2 2 2 2
n +1-2 n +n +1-2n +…..+n k+1-2nk n + k -2nk
ni2 + k -2n n2 + k2 -2nkk
i1
ni2 n2 + k2 -2nk+2n-kk
i1
ni2 = n2 + k2 –k-2nk+2nk
i1
2
= n + k(k-1) -2n(k-1)
www.BrainKart.com
2
= n + (k-1) - (k-2n)
ni (ni 1)
Since, G is simple, the maximum number of edges of G in its components is .2
k
ni (ni 1)
Maximum number of edges of G =
i1 2
k (n 2 n)
= i i
i1 2
k k
= 1 ni2 - 1 ni
2 i1 2 i1
1 2 n
[n +(k-1)(k-2n)]-
2 2
1
2 2
= 2 [n -2nk+k +2n-k-n)]
1
2 2
= 2 [n -2nk+k +n-k]
1 2
= 2 [n-k) +(n-k)]
= = 1 (n-k) (n-k+1)
2
3. Determine which of the following graphs are bipartite and which are not. If a graph
is bipartite, state if its completely bipartite.
www.BrainKart.com
Solution:
i) In G1, since the vertices D, E, F are not connected by edges, the may be considered as
one subset V1. Then A, B, C belong to V2.
The vertices of V1 are connected by edges to the vertices of V2 , but the vertices A, B, C
V2 of the subset are the edges AB, BC.
ii) By taking
iii) By taking
Here the vertices A and F (Also C and D) are not connected by edges.
Proof:
For n =2, a graph with 2 vertices may have atmost one edge.
www.BrainKart.com
2(2 1) = 1
2
k(k 1)
Assume that the result is true for n =k ie., a graph with k vertices has atmost edges.
2
When n = k + 1, let G be a graph having ‘n’ vertices and G’ be the graph obtained from G by
deleting one vertex say V (G)
k(k 1)
Since G’ has k vertices, then by the hypothesis G’ has atmost edges. Now add the vertex ‘
2
’ may be adjacent to all the k vertices of G’.
k(k 1) + k = k 2 k 2k )
2 2
= k2
k2
= k (k 1)
2
= (k 1)(k 1 1)
2
n(n 1)
Hence the maximum number of edges in a simple graph with ‘n’ vertices is 2
5. If all the vertices of an undirected graph are each of degree k, show that the number of
edges of the graph is amultiple of k.
Proof:
6. Draw the complete graph K5 with vertices A, B, C, D, E. Draw all complete sub group of
K5 with 4 vertices.
Solution:
In a graph, if there exist an edge between every pair of vertices, then such a graph is called
complete graph.
ie., In a graph if every pair of vertices are adjacent, then such a graph is called complete graph.
Complete graph k5 is
k5
k4 k4
www.BrainKart.com
UNIT – IV
ALGEBRAIC STRUCTURES
PART - A
Proof:
Proof:
=H
Proof: x,y G
k t
x = a , y = a for integers k,t
k t k+t t+k t t
x*y = a *a = a =a = a *a = y*x
x*y = y*x (G,*) is an abelian group.
www.BrainKart.com
Proof:
(h g) (a*b) = h (g(a*b)
5. Define Group.
Solution:
A non empty set G together with the binary operation *, ie. , (G,*) is called a group if
* satisfies the following conditions.
Proof:
a*a = a
a = a* е
-1
= a*(a*a )
-1
= (a*a)*a
-1
= a*a
a =е
www.BrainKart.com
Proof:
We know that
-1 -1
a *a = е = a*a , a G
-1 -1 -1 -1 -1
(a ) *(a *a) = (a ) * е
-1 -1
= (a )
=a
-1 -1
(a ) = a [ Note: The above property is involution law]
2 -1
8. In a group G prove that an element a G such that a = е, a е if a = a .
Solution:
9. Isomorphism
Defination:
PART – B
1. Let S =QxQ, be the set of all ordered pairs of rational numbers and given
by (a,b)*(x,y)=(ax,ay+b)
Solution:
Now,
(a,b)*[(x,y)*(c,d)]
= (a,b) * [xc,xd+y]
= [axc,a(xd+y)+b]
=[axc,axd+ay+b]
=[acx,adx+ay+b] …………………….. (2)
Let us assume that H is a subgroup of G. Since H itself is a group, we have for a ,bH a*bH
(closure)
www.BrainKart.com
a*b-1 H ( H is a subgroup)
Sufficient condition:
-1
Let a*b H, for a,b H
-1
iii) Closure: Let b H b H
For a,b H a,b-1 H
3. If * is the operation defined on s=Q*Q, the set of ordered pairs of rational numbers and
given by (a,b)*(x,y)=(ax,ay+b),
Solution:
a) {(a*b)*(x,y)*(c*d)
=(ax,ay+b)*(c,d)
www.BrainKart.com
=(acx,adx+ay+b) Now,
(a,b)*{(x,y)*(c,d)}
=(a,b)*(cx,dx+y)
(acx,adx+ay+b)
Hence , * is associative on s.
{s,*} is a semigroup.
b) Let (e1,e2) be the identity element of {s,*} , Then for any (a,b)‟S,
(a,b)*(e1,e2)=(a,b)
Ie. (ae1,ae2+b)=(a,b)
Thus the element (a,b) has an inverse if a≠0 and its inverse is (1/a, - b/a).
4. Lagranges Theorem:
Let G be a finite group of order ‘n’ and H be any subgroup of G. then the order of H divides the
order of G. ie. O(H)/ O(G)
Proof:
O(H) = m
Since there is a one-one correspondence between the elements of H and H*a, the elements of
H*a are distinct.
N = m + m +….. + m (k times)
N = km
n n O(G)
k= ie. = k ie. k
mmO(m)
UNIT-5
LATTICES AND BOOLEAN ALGEBRA
PART-A
1. Prove that a ab a b
Soln:
L.H.S= a ab
a ab ab (since a=a+ab)
=a b(a a)
=a+b(1)
a ab =a+b
2. Define Lattice .
A Lattice is a partially ordered set (poset)(L, ), in which for every pair of elements a,b ЄL,
both greatest lower bound (GLB)and least upper bound (LUB)exist.
4. Let (L, , ) be a lattice . Then for any a,b,c L, a a=a and a a=a.
Proof:
a a = LUB(a,a) = LUB(a) = a
a a=a
Now a a = GLB(a,a) = GLB(a) = a
a a=a.
Solution:
a.0 = (a.0)+0
= a.(0.+ a ' )
www.BrainKart.com
= a. a '
=0.
6. Show that in a Boolean algebra the law of the double complements holds.
Soln:
(a ' ) ' =a
7. Draw the hasse diagram for {(a,b)/a divides b} on{1,2,3,4,6,8,12}.
Soln:
The Relation R is
1,2 1,3 1,4 1,6 1,8 1,12 2,4 2,6 2,8 2,12 3,6 3,12 4,8 4,12 (6,12)
8 12
4 6
2 3
Soln:
Given a b a b=a
c d c d=c
Claim: a c b d.
www.BrainKart.com
(a c) (b d)= a c
Now , L.H.S=(a c) (b d)
=a (c b) d
= a (b c) d
=( a b) (c d)
(a c) (b d)=a c.
a c b d.
Proof:
Let a b
LUB{a,b}=a b=b
f(a) f(b)=f(a)
If a b f(a) f(b)
Let(L, , ) be a given lattice. If it has both ‘0’ element and ‘1’ element then it
is said to be bounded lattice. It is denoted by (L, , 0,1) .
PART-B
www.BrainKart.com
m
1. If R is the relation on the set of integers such that (a,b) R if and only if b=a for some
positive integer m, show that R is a partial ordering.
Soln:
1
Since a=a , we have (a,a) R
Therefore R is reflexive ,
m n
b=a and a=b --------------------(1)
Therefore a=b
therefore a=b
Case(3):
Therefore a=b,
therefore, R is antisymmetric.
n m n mn
c= b =(a ) =a
mn
c= a
therefore (a,c) R,
therefore R is transitive.
2. Let R be a relation on a set A. then define R1 (a,b) AXA /(b, a) R.Prove that if
-1
(A,R) is poset then (A,R ) is also a poset.
Soln:
Claim:
-1
R ={(a,b)} is a partial order relatin.
Since (a,a) R
-1
R ={(a,b)} is a reflexive.
Given R is antisymmentric.
-1
a=b Therefore R is antisymmentric.
Given R is transitive,
-1 -1 -1
(c,b) R and (b,a) R (c,a) R
-1
Therefore R is transitive.
-1
Therefore R is partial order relation.
-1
Therefore , (A,R ) is a poset.
Statement :
Let (L, , ) be a given lattice for any a,b,c L, the following in equality holds.
(i) a (b c) (a b) (a c)
(ii) a (b c) (a b) (a c)
Proof:
Claim-1: a (b c) (a b) (a c)
aab (1)
and b c b a b
bcab (2)
Hence a b a (b c) (A)
aac (3)
bcac (4)
Hence a a (b c) (B)
c
www.BrainKart.com
Therefore
a (b c) (a b) ( c)
a
Claim -2:
a (b c) (a b) ( c)
a
We know that ,
a (a b) (1)
and b c b (a b)
b c ( b) (2)
a
Hence a b a (b c) (c)
aac (3)
bcac (4)
Hence a c a (b c) (D)
From (C) &(D) , we have a (b c) is a upper bound of {a b, a
c } Therefore a (b c) (a b) (a c)
www.BrainKart.com
Solution:
(i) (ii)
Let a b
=a0
=0.
Hence a b a b' =0
(ii) (iii)
Let a b' =0
a' b =1
a b' =0 a' b =1
(iii) (iv)
Let a' b =1
b' a'
(iv) (i)
'
Letb a'
a b =b
b a
b
Or a
b' a' a b.
a
5. In any Boolean algebra, show that a=b iff b ab 0
Claim: ab ab 0
= a..a a.a
=0+0 (( a.a' 0) )
ab ab =0
Conversely, Assume ab ab =0
www.BrainKart.com
a+ ab =a (Absorption law)
(a a ).(a b) a (distributive law)
1. (a b) a
(a b) a
ab
Consider, ab 0
ab ab b b (Right Cancelation law)
ab b b (Absorption law)
(a b).1 b
a+b=b
www.BrainKart.com