MA3354
MA3354
LEARNING MATERIAL
Department of Mathematics
Semester III
HOD
UNIT - 1
Proposition is a declarative statement that is either true or false but not both. The truth value of
proposition is true or false.
Examples:
The statement 1 has the truth value “true”, while the statement 2 has truth value “false”.
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.
Example:
P P
P – Ram is intelligent
F T
T T T Example:
P Q P Q
Note: P Q is true when both P and Q are
T T T true.Otherwise P Q is false.
R: Mohan is rich ; H: Mohan is Happy ,Write the following statements in symbolic form
P Q Q P Q
T T F T
T F T T
F T F F
F F T T
(ii) P (P Q)
P Q (P Q) P (P Q)
T T T T
T F T T
F T T F
F F F F
P Q pq
Note: p q is false when p is true and q is false, otherwise it is
T T T
true.
T F F
Note: In P Q , P is called anticedent and Q is called the
F T T consecquent.
F F T
If P and Q are two propositions, then the preposition P if and only if Q, denoted by
P Q called the biconditional statement and is defined by the following truth table.
P Q PQ
Note: P Q is true if both P and Q have same truth values.
T T T
Otherwise P Q is false.
T F F
Example:
F T F
P: You can take the flight
F F T Q: You buy a ticket.
P Q : You can take the flight ticket if and only if you buy a ticket
Problems:
T T F T T T
T F F F F T
F T T T T T
F F T T T 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 given formula independent of their components.
P Q P Q Q (P Q) (Q (P Q)) P
T T T T T
T F F F T
F T T T F
F F T F T
P Q R PQ QR (P Q) (Q R) (P R) (P Q) (Q R)
(P R)
T T T T T T T T
T T F T F F F T
T F T F T F T T
T F F F T F F T
F T T T T T T T
F T F T F F F T
F F T T T T T T
F F F T T T T T
The Truth values of the given formula are all true for every possible truth values of P,Q and R.
Therefore, the truth value of given formula independent of their components.
Tautology:
A statement formula which is always true regardless of the truth values of the variables in it is
called a Tautology (or) universally valid formula.
Contradiction:
A statement formula which is false always for the truth values of the components is called a
Contradiction.
Contingency:
Example: (P Q) (P Q) is a Contingency
Problems:
1. Check whether the following formulas are tautology, contradiction and contingency.
T T T F T
T F F T T
F T F T T
F F F T T
(ii) (P (Q R)) (P Q) (P R)
T T T T T T T T T
T T F T F F F F T
T F T F T T T T T
T F F F F T T T T
F T T T T T T T T
F T F T T F T T T
F F T T T T T T T
F F F T T T T T T
T T T T T T T F T
T T F F T T T F T
T F T F T T T F T
T F F F T T T F T
F T T T T T T F T
F T F F F F F T F
F F T F F T F T F
F F F F F F F T F
Logical Equivalence:
Let P and Q be two statement formulas, P is said to be logically equivalent to q If P and q have
the same set of truth values or equivalently p and q logically equivalent if P q is a tautology.
Problems
P Q PQ P Q P (P Q) (P Q) (P (P Q))
T T T T T T
T F F F F T
F T T F T T
F F T F T T
From the above table the truth values of P Q and P (P Q) are same
DeMorgan’s Law:
p q P Q ( p q) p q
P Q ( p q)
T T F F T T F F
T F F F T F T T
F T F F F T T T
F F T T F F T T
Laws of Logic:
1. Idempotent Law
p p p p p p
2. Identity Law
p F p p T p
3. Dominant Law
pT T pF F
4. Complement Law
p p T p p F
5. Commutative Law
pq q p pq q p
6. Associative Law
( p q) r p (q r) ( p q) r p (q r)
7. Distributive Law
p (q r) ( p q) ( p r) p (q r) ( p q) ( p r)
8. Absorption Law
p ( p q) p p ( p q) p
9. DeMorgon’s Law
( p q) p q ( p q) p q
Conditional Equivalences:
p q p q
p q q p ( contra positive)
p q p q
(p q) p q
( p q) r p (q r)
( p q) ( p q)
( p q) ( p r) p (q r)
( p r) (q r) ( p q) r
( p q) ( p r) p (q r)
( p r) (q r) ( p q) r
Biconditional Equivalences:
p q ( p q) (q p)
p q p q
p q (p q ) (q p)
( p q) ( p q) (p q)
p q p q
( p q) p q
Proof:
(P Q) (P Q) (Q P) Biconditional
2. Show that ((P Q) (P (P Q)) P Q without using truth table.
Proof:
(P Q) (P Q) P P P
T (Q P) P T T, P P P
P Q P T P, Commutative Law
Hence Proved
3. Show that (P (Q R)) ((Q R) (P R)) R Using Law of Logic
Proof:
T R Complement Law
R Identity Law
Duality Principle:
If S is any formula involving in logical connectives then S * is the logical expression which is
obtained from S by replacing by and by T by F and F by T then S * is also tautology. S * is
called the Dual of S. We note if S is a tautology.
Normal Forms:
Elementary Product:
The product of variables and their negation is called the elementary product.
Example: P, Q, P Q, P Q, Q P, P Q
Elementary Sum:
The Sum of variables and their negation in a formula is called the elementary sum.
Example: P, Q, P Q, P Q, P Q, P Q
A formula which is equivalent to a given formula and which consists of a sum of elementary
products is called the disjunctive Normal Forms (DNF) of the given formula.
A formula which is equivalent to a given formula and which consists of a product of elementary
sum is called the Conjunctive Normal Forms (CNF) of the given formula.
Principle Disjunctive Normal Form (PDNF) (or) Minterms-Normal Form (or) Sum of product
Form
Principle Conjunctive Normal Form (PCNF) (or) Maxterms-Normal Form (or) Product of sum
Form
The PCNF of a given formula P is an equivalent formula consisting of conjunction of maxterms only.
For every truth value T in the truth table (or) given formula, select minterms which also has the
truth value T for the same combination of truth values of T.
For every truth value F in the truth table (or) given formula, select maxterms which also has the
truth value F for the same combination of truth values of F.
11
T T P Q T T F F P Q
T F P Q F T F F P Q
F T P Q F T F F P Q
F F P Q F F T F PQ
T T T P Q R T F T T T P Q R
T T F P Q R T F F T T P Q R
T F T P Q R F F F F F P Q R
T F F P Q R F F F F F P Q R
F T T P Q R F T T T T P Q R
F T F P Q R F F F F F P Q R
F F T P Q R F T F T T P Q R
F F F P Q R F F F F F PQ R
12
1. Replace the conditional and bi-conditional formula by the equivalent formula containing
, and only
2. Use Demorgan’s law and Distributive Law
3. Drop any elementary P P product [ or elementary sum] which is a contradiction [or
tautology].
4. Obtain minterms [maxterms] in the disjunction [or conjunction] by introducing missing factor.
5. Delete the identical minterms [or maxterms] keeping only one that appear in the disjunction [ or
conjunction]
Note:
A PDNF of A
(A) A is the PCNF of A. In the same way, we can obtain PDNF from the PCNF
Solution:
PCNF:
(P R) (Q P)
(P) R (Q P) (P Q)
(P R) (Q P) (P Q)
(P R F ) (Q P F ) (P Q F )
13
PDNF:
(P Q R) (P Q R) (P Q R)
2. Obtain the sum of product of canonical form of product of sum of canonical form of
P [P (Q (Q R))]
(P P) (Q R) P (Q R) P (Q R)
Which is the required PCNF
PDNF: S P Q R
3. P [P (Q P)]
P [ P (Q P)]
T [(P P) Q]
T [T Q]
T T
T
Which is tautology,
14
Type I:
[Direct Proof]
Problems:
Solution:
A (B C) (B C)
P Q Q A P
(P Q) Q P
15
Solution:
Indirect Proof:
H1, H2 , .... Hn are given Premises and C is a conclusion then the principle involved in indirect
method of proof is C (H1 H2 ...... Hn ) F Where F stands for a contradiction
Procedure:
Indirect method of proof take the negation of conclusion as a additional premise from the addition
premises together with the given premises. We derive a contradiction.
Problems:
Solution:
By Indirect method of proof takes ((P Q)) as a additional premise and derive a
contradiction F.
16
(2) P Q T (P) P
From (1)
(5) P T From(4) P Q P
(7) F Contradiction
Solution:
17
(2) P T (P) P
(14) F Contradiction
If we can derive S from R and a set of premises then we can derive R S from the set of
premises alone. i.e This rules states that if R S is a conclusion obtained from the given set of
H1, H2 ,......Hn premises it is enough to conclude S alone from H1, H2 ,......Hn and P.
18
Problems:
Solution:
P (Q S), R P, Q and R
(9) RS CP
Hence it is proved.
19
Solution:
P (Q R) (P Q) R
Inconsistency of Premises:
A set of premises H1, H2 .............Hn is said to be inconsistent H1 H2 ..... Hn F Where F
stands for a contradiction.
20
Problems:
1. Show that the set of premises A (B C); D (B C); A D are inconsistent.
Proof of sequence:
1. A D P Given premise
2. A T From (1), P Q P
5. D T (1), (5), (P Q) Q
7. B C T (5), (6), (P Q) P Q
8. (B C) T From (7)
(B C)= ( B C)=B C)
2.Show that the following premises are inconsistent “If Ram misses many classes through illness
then he fail high school. If Ram fails high school then he is uneducated. If Ram reads a lot of books
then he is not uneducated. Ram misses many classes through illness and reads a lot of books”
D: Ram is uneducated
21
Proof sequence:
1. A B P Given Premise
2. B D P Given Premise
4. C D P Given Premise
5. D C T From (4),
P Q Q P
(P Q) P R
9. A C P Given premise
( P1 P2 P3 ..... Pn Q ) Where P1 , P2 , P3 ,......Pn are given statements, called the hypothesis of the
argument and Q is the conclusion of the argument .
Problems.
1. Show that the following statements constitute a valid argument, “If there was a ball game
then travelling was difficult. If they arrived on time, then travelling was not difficult. They
arrived on time. Therefore there was no ball game”
Solution: Let A: There was a ball game B: Travelling was difficult C: They arrived on time
22
1. A B P Given Premise
2. C B P Given premise
3. B C T (1)&(2)
P Q Q P
4. A C T (1)&(3) (P Q)
(Q R) P R
5. C A T (4) P Q R P
6. C P Given Premise
7. A T P Q, P Q
The truth of all premises implies the truth of their conclution The given argument is valid
2. Show that the hypothesis, “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”
1. p q P Given Premise
2. p T (1), p q p
3. r p P Given Premise
4. r T (3), (2),
(p q) p q
5. r s P Given Premise
7. s t P Given Premise
23
Theory of Inference
(x) A(x) A( y)
A(x) (y) A( y)
A(x) (y) A( y)
Solution:
P Q, Q R P R
2.Show that (x)( p(x) Q(x)) (x) p(x) (x)Q(x) What can you say about that formula
Solution:
24
4 Q(x) T From(3) P Q Q
5 (x)P(x) EG From(3)
6 (x)Q(x) EG From(4)
U ={2,3,4,5}
Solution:
(y)(m( y) w( y))
The conclusion is
25
Proof:
2 m( y) w( y) ES From(1)
P Q (P Q)
Q , P Q P
Demorgan’s law
Conditional equivalence
Type: II
1. Show that x P
x Q x x P x x Q x using indirect method.
Soultion:
26
Proof:
S.No Premises Rule Reason
P Q P
P QQ
5 x 7P x T From (3)
7 x P x x 7P x
7 x P x x 7P x
P1 Q P Q
10 7 P x Q x T From (9)
Demorgan’s law
11 x P x Q x P Given premises
12 P x Q x Us From (11)
13
7 P x Q x P x Q x T From (10) , (12)
P, Q P Q
14 F contradiction
27
Solution: By Using indirect method of proof assume that Z Q Z as additional premise and
derive a contradiction.
1 7 Z Q Z P Additional Premises
3 Y P Y P Given Premise
4 P(a) Es From(3)
6 P a Q a Us From (5)
P, Q Q Q
9 Q Z 7Q Z T From (8),(9)
P, Q P Q
x P x Q x x P x x Q x
Soultion:
derive x Q x
28
2 P(x) Us From(1)
4 P x Q x Us From(3)
P, P Q Q
7 x P x Q x UG From(5)
Validity of Arguments:
29
1 P Given Premise
x P x A x
2 P x A x Us From (1)
5 A a H a T From(4)
P, P Q Q
P, P Q Q
2. Verify the validity of inference : “ If one he has worked sucessful then another, then john
has not worked harder than peter. Therefore john is not successful then peter.
Soultion:
Let, S(x,y) : x is more sucessful than y. W(x,y) : x is worked harder than y.
J : john P : peter
Given premises are The symbolic form:xy S x, y W x, y , W j , p
The conclusion is s(J, P)
S.No Premises Rule Reason
1 xy S x , y W x , y P Given Preimses
3 S j , p W j , p T From (2)
4 W(j, p) P
5 S(j, P) T From (3) , (4)
Q, P Q P
30
UNIT – II
COMBINATORICS
MATHEMATICAL INDUCTION
Solution:
1(11)(2(1) 1)
Basis p(1) : 1
6
1(2)(3) 6
1Which is true p(1) is true.
6 6
k (k 1)(2k 1)
ie.12 22 32 ... k 2
6
31
Consider (k 1)3 2(k 1) k3 3k2 3k 1 2k 2 (k3 2k) 3(k2 k 1)
3(m k 2 k 1) k 3 2k 3m
(k 1)3 2(k 1)
Is divisible by 3 p(k+1) is true. Ie., p(k ) p(k 1) Hence by induction, n3 2n is divisible by 3.
p(1) is true.
8k1 3k1 is divisible by 5 p(k 1) is true Hence by induction 8k1 3k1 is divisible by 5
Ie., 8n 3n is divisible by 5.
32
Since 2 is a Prime number. p(2)is true we use the 2nd Principle to Prove the induction part.
To Prove:
2 a k and 2 b k
The inductive hypothesis applies to both a and b. So, a or b are either Prime or they are Product of Primes.
Suppose a a1, a2....ar and b b1,b2....bs where ai ' s and bj ' s are Prime numbers. Then (k+1) is
either Prime or it is a Product of Primes.
p(k+1) is true
Pigeonhole principle:
The Pigeonhole Principle states that if there are more pigeons than pigeonholes, then thereMust
be atleast one pigeonhole with atleast two pigeons in it. (Or)
If (K + 1) or more objects are placed into K bones, then there is atleast one box containing two or
more of the objects.
Note:
(1) If Kn+1 or more pigeons occupy n pigeonholes, there will be more than K pigeons in atleast one
pigeonhole, Where K is a positive integer.
(2) The Pigeonhole Principle is also called Dirichlet drawer principle.
Example:
(1) Among any group of 367 boys, there must be atleast two with the same birthday, because there are
only 366 Possible birthdays.
33
If N objects are placed in to K bones, then there is atleast on box containing atleast [ N/K]
N
Objects. [N/K] is the smallest integer greater than or equal to .
K
100
Example: Among 100 people, there are atleast
= 9 who where born in the same month.
12
Note: If n Pigeons are accommodated in m Pigeonholes and n > m, then one of the Pigeonholes Must
n 1
contain atleast + 1 Pigeons where [x] denotes the greatest integer lessthan or equal to x, which is
m
a real number.
Problems.
1. Prove that there exists a positive integer n such that m divides 2n – 1 where m being a positive
odd integer.
By the Pigeonhole principle, when these are divided by m two of the numbers will give the same
remainder. [(m + 1) numbers are the (m + 1) Pigeons and the m remainders, namely 0, 1, 2, .... (m-1) are
the m Pigeons].
Let the two numbers be 2s 1 and 2t 1 which give the same remainder r, upon division by m, Where
1 S <t m+1
2 s 1 q1m r and 2t 1 q 2m r
2s 2t (q q )m
1 2
2t 2 1 q q m
st
1 2
But m is odd and hence cannot be a factor of 2t m divides 2st 1. Taking n s t, m divides
2n 1Hence we get the result.
2. If n pigeonholes are occupied by kn 1 pigeons, Where K is a positive integer, prove that
atleast one pigeonhole is occupied by k 1 or more pigeons
Solution: If atleast one pigeonhole is not occupied by k 1 or more pigeons , each pigeonhole contain
atmost k pigeons. Hence, the total number of pigeons occupying the n pigeonholes is at most
kn . But there are kn 1 pigeons. This results is a contadiction. Hence the results.
34
3. Find the minimum number m of integers to be Selected from s 1, 2,...9 So that
Solution:
Let us divide the set S into 2 sub sets 1, 3, 5, 7, 9and 2, 4, 6,8 , which may be treated as pigeonholes
.Thus n=2 . Atleast 2 numbers must be chosen either from the first subset or from the second set.
k 1 2 k 1 .
The minimum number of pigeons required (or) the minimum number of integers selected
kn 1 (2) 1 3
(ii) Let us divide the set S into the 5 subsets, 1, 6,2, 7,3,8,4, 9,5 .Which may be treated as
pigeonholes. Thus n=5.If m=6 then 2 of the integers of s will belong to one of the subsets and their
difference is 5.
Permutation
Eg: The permutations of the letters x,y,z taken two at a time are xy, yx, xz,zx,yz,zy
The number of permutations of n-different things taken ‘r’ at a time is denoted by the symbol npr (or)
n!
p(n,r). p n, r
n r !
Permutations with restrictions
1. The number of permutations of n different objects taken r at a time in which ‘p’ particular objects do
not occur is n p pr
2. The number of permutations of n different objects taken r at a time in which ‘p’ particular objects are
present is n p pr p X rpp
35
Problems
1. Prove that
Solution:
(i) p(n, n) n!
n! n!
p(n, n 1) n!
n (n 1)! 1!
p(n, n) p(n, n 1)
(ii)(n r 1) p(n, r 1)
n!
(n r 1)
n r 1!
n!
p(n, r)
n r !
(n 1)! r(n 1)!
(iii)R.H.S
n r 1! n r !
1
(n 1)! r (n 1)! nr r
n r 1
! n r !
n r (n r 1)! n r !
n r r n(n 1)! n! p(n, r)
(n 1)!
n r ! n r ! n r !
R.H.S L.H.S
2. In how many different ways can the letters of the word HEXAGON be permuted?
Solution: The word HEXAGON has 7 different letters. Which can be arranged among themselves in
p(7,7)=7!=5040 ways.
The number of permutations of n objects of which n1 objects are alike of one kind, n2 are alike of
second kind, n 3 are alike of third kind and so on, such that
n1 n2 n3 ... ni n is givenby
n!
n1 !n2 !...ni !
36
Problems.
Solution:
12!
Required nom of arrangements =
5!4!3!
27720
3. Find the distinct Permutations that can be formed from all the letters of each word
Solution:
(1) The word RADAR has 5 letters of which the letter R appears 2 times, A appears 2 times
and D appear once.
5! 5 43 2 ! 5 43
The Required number of permutations.= = = = 30
2!2! 2! 2 ! 2
(2) The word UNUSUAL has 7 letters of which the letter U appears 3 times, and the Remaining
letters appear once.
7! 765 43!
The Required number of permutations = = = 840
3! 3!
Combination:
A combination of n objects taken ‘r’ at a time is any selection of r objects out of n objects where
the order does not count.
The number of Combinations of n different things taken r at a time is denoted by ncr (or) C(n, r)
n n!
(or) . i.e. nc r = where r n.
r r !(n r)!
37
Pascal’s Identity:
Proof:
n! n!
L. H. S = +
r !(n r)! (r 1)! (n r 1)
= n! 1 1 n r 1 r
n!
r !n r 1!
Vandermonde’s Identity:
Let m,n and r be non-negative integers with r, not exceeding either m or n, then
m n r m n
r k r k
k 0
Proof: Suppose there are m items in one set and n items in a second set. Then the total number of ways to
m n
pick r elements from the union of these sets is Another way to pick r elements from the union is
r
to pick ‘k’ elements from the first set and (r-k) elements from the second set where k is an integer such
that 0 k r .
Hence the total number of ways to pick relements from the union also equals
n
m n m n
k r k Since there are ways of selecting k objects from the first set and
r k
ways
k 0 k
of selecting (r-k) objects from the second set.
m n r m n
Thus we have r k r k Hence the proof
k 0
Problems:
1.A committe of 5 is to be selected from 6 boys and 5 girls determine the number of ways of
selecting the committee if it is to consists of atleast1 boys and 1 girl
(i)1 boy, 4 girls (ii) 2 boys, 3 girls (iii)3 boys, 2 girls (iv)4 boys, 1 girls
38
654
The number of committees of type (iii) 6C 5C 200
3 2
123
2. There are 6 white marbles and 5 black marbles in a bag. Find the number of ways of drawing 4
marbles from the bag. If (i) they can be of any colour (ii) 2 must be white and 2 must be black (iii)
They must all be of the same colour.
1110 98
(i) No of ways of drawing 4 marbles of any colour 11C4 330
1234
(ii) No of ways of drawing 2 white and 2 black Marbles 6C25C2 1510150
(iii) No of ways of drawing 4 white marbles 6C4 15
No of ways of drawing 4 black marbles 5C4 5
No of ways of drawing 4 marbles of same colour = 15 + 5 = 20
RECURRENCE RELATION:
Solution:
39
4 9 yn
2 3 yn1 0
1 1 yn2
4 3yn2 yn1 9 2 yn2 yn1 yn 2 3 0
12 yn2 4 yn1 18y n2 9 yn1 2 yn 3yn 0
30 yn2 5yn1 5yn 0
yn yn1 6 yn2 0
Recurrence relation:
If {an } n≥0 represents a sequence of numbers, then an expression that relates a term of the
sequence to one or more of its preceeding terms is called a recurrence relation.
Fn Fn1 Fn2 , n 2 is called the fibonacci recurrence relation for the sequence of
numbers {1,1,2,3,5,8,13,….}
function of ‘n’ only.This recurrence relation is non-homogeneous type.When f(n)=0, the recurrence
relation is said to be homogeneous.
40
1. f (n 2) 5 f (n 1) 6 f (n) 0.
2. yn2 5 yn1 6 yn 0
3. Fn Fn1 Fn2 0
4. yx2 4 yx x2 x 1
Solution of recurrence relation
yn H.S P.S
where H.S Homogeneous Solution
P.S Particular Solution
c0 x2 c1x c 2 0
Step:2
Step:3
If 1 and 2 are the roots of the chatacteristic equation the following forms of H.S are given below:
r n A1 cos n A2 sin n
r 2 2 and tan1
Where
Rules to find P.S The general form of particular solution to be assumed for the special forms of f(n) to
find the exact solution, is shown in the table.
41
k n f (n)wheref (n)is a
polynomial of deg ree r A0nr An
1
r 1
... An k n
in ' n ' and k is a constant
Problems.
1. Solve the recurrence relation y 5y 6 y 5n subject to the conditions y 0 and y 2
n2 n1 n 0 1
(x 2)(x 3) 0 x 2, 3
2
2 2 2c 2c
1 2
6
7
3 2c 3c
1 2
6
9
c2
6
3
c2
2
sub ' s
3
c in (2)
2
2
3 1
c
1
2 6
1 3 5
c c
1 1
6 2 3
3 n 5 5n
Hence (1) yn (3) (2) n
2 3
s
t
h
e
s
o
l
u
t
i
o
n
.
6
2. Find a recurrence formula for the Fibonacci sequence of numbers and obtain its solution.
From the term F2 onwards, each term is the sum of the preceeding two terms.
Fn Fn1 Fn2 , F0 1, F1 1
Therecurrencerelationis Fn Fn1 Fn2 0 satisfying theinitial conditions
F0 1, & F1 1
Thecharacteristicequationis x2 x 1 0
43
44
1 n
5 c2 1 5
n
Fn c1 2 2 (1)
From (1)
F0 1 c1 c2 1and
1 5 1 5 1 5 1 5
F 1 c c 2 1 c 1 (1 c 1) 1
1 1 2 2 2 2
1 5 1 5 1 5
c1 2 2 c 1 2 1
1 5 1 5 1 5 1 5
c 1 c 5
1 2 2 2 1
2
1 5 1 5
c , c 1 c 1 c 5 1
1 2 1 2 5 2 2 5
2 5
5 1 1 5 n 5 1 1 5 n
The solution is given by Fn 2 5 2 2 5 2
3. Solve the recurrence relation y n2 5y n1 6 y n n2
3 3 3
2 2 2 2 2
( p) n2 3n 5 1
The particular solution is y Hence the solution is y c 2n c 3n (n2 3n 5)
n n 1 2
2 2 2 2
45
The homogeneous solution y(H ) c 3k c (2)k Assume that the particular solutions is y( p) A
k 1 2 n
Generating Function:
Let a , a , a .....be a sequence of real numbers. The function f(n)= a a x a x ...... a x is
2 i
0 1 2 0 1 2 i
i0
46
m
For example (1 x)n is the generating function of the sequence ( ) 0 r n
r
Sequence General term (an ) Generating funciton
1
an 1n , n 0
1,1,1,1,.... 1 x
1
a (1)n , n 0 1 x
1,-1,1,-1,.... n
1
an , n 0 1 ax
1
1, a , a 2 , a3 ,...
(a)n , n 0 1 ax
1,- a , a 2 ,- a3 ,... x
n, n 0 (1 x)2
0,1,2,3,... 1
(1 x)2
(n 1), n 0
1,2,3,4
x 1
(1 x)3
(n 1)2, n 0
12, 22,32,...
x(x 1)
n ,n 0
2
(1 x)3
02,12, 22,32,...
1 1
1,1, , ,... 1 ex
2! 3! ,n 0
n1
2x
n(n 1), n 1
(1 x)3
(1) (1 x) x
1 n
(2) (1) n
x (1 x)
n 1
(3) a n
x n (1 ax)1
n0 n0 n0
(n 1)(n 1) n
(1)n an xn (1 ax)1 (5)
(4) (n 1)xn (1 x)2 (6)
2
x (1 x)3
n0 n0 n0
Note:
If f (x) a x , then the following results are very useful to solve recurrence relations.
n n
n0
47
f (x) a0 a1x
f (x) a0
(4) a
n1
xn x f (x) a
0
(5) a
n
xn f (x) a a x
0 1
n2 n2
1. Solve the recurrence relation yn2 5yn1 6yn 0, n 0 by the method of generating
function with the initial condition y0 1, y1 1
Solution:
Given the relation.
yn2 5yn1 6yn 0 (1)
Assume that G(x) y n x
n
n0
n2
xn 5 y
n1
xn 6 y xn 0
n
n0 n0 n0
W .K.T a
n2
xn
G(x) a0 a1x
n0 x2
n
G(x) a0
a
n0
n1x2 x
G(x) y20 y1x G(x) y0
x 5 x 6G(x) 0
G(x) y 0 y1x 5x G(x) y0 6x2G(x) 0
G(x) 1 x 5x G(x) 1 6x2G(x) 0
G(x) 1 x 5xG(x) 5x 6x2G(x) 0
6x2G(x) 5xG(x) G(x) 4x 1 0
6x 2 5x 1 G(x) 1 4x
(1 5x 6x2 )G(x) 1 4x
1 4x
G(x)
(1 5x 6x2 )
G(x) 1 4x (2)
(1 2x) (1 3x)
Let
1 4x A B
(1 2x) (1 3x) (1 2x) (1 3x)
1 4x A(1 3x) B(1 2x)
(1 2x) (1 3x) (1 2x)(1 3x)
1 4x A(1 3x) B(1 2x)
48
1
Put x
2
1 3
1 4 A 1
2 2
1
1 A A 2
2
Put x 1
3
1 1
1 4 B 1 2
3 3
4 2
1 B 1
3 3
1 B 1
1
B
3 3
From (2).
2 1
G(x)
(1 2x) (1 3x)
22 n x 3 nxn n
n0 n0
(2.2n 3n )xn
n0
y x
n n1 n n
n (2 3
y 2n1 3n
n0 n0
Solution:
Given a 4a 4a 4n , n 2 and a 2 , a 8
n n1 n2 0 1
a n 4a n1 4a n2 4n , n 2 1
Multiply the equation 1 by xn and summing from n=2 to we have
a x
n
n
4 a x n 4 a
n1
n2
x n 4n x n
49
Put G(x) a n x n
n2
W .K.T a
n
xn G(x) a a x
0 1
n2
a
n 2
n2 x x G(x)
n2
2 16x2
G(x) a0 a1x 4x G(x) a0 4x G(x)
(1 4x)
16x2
G(x) 2 8 x 4xG(x) 8 x 4x2G(x)
(1 4x)
G(x) 4x2 16x2
4x 1 2
1 4x
2 16x2
G(x)(1 4x 4x ) 2
1 4x
16x2 2(1 4x)
G(x)(1 2x)(1 2x)
1 4x
16x 8x 2
2
G(x)(1 2x)(1 2x)
1 4x
16x2 8x 2
G(x) (2)
(1 2x)2 (1 4x)
16x2 8x 2 A B C
Let
(1 2x)2 (1 4x) (12x) (1 2x)2 (1 4x)
16x2 8x 2 A(1 2x)(1 4x) B(1 4x) C(1 2x)2
1
Putx
2 2
1 1 4
16 8 2 B 1
2 2 2
16 8
2 B(1)
4 2
4 4 2 B
B 2
50
1
put x
4 2 2 2
1 1 2
16 8 C 1
4 4 2
4
1
1 2 2 C 1
22
2 1
1 C
2
1
1 C
4
C4
16=8A+4C
16=8A+4(4)
16=8A+16
8A=0
A0
16x2 8x 2 2 4
2
2
(1 2x) (1 4x) (1 2x) (1 4x)
4 2
G(x)
(1 4x) (1 2x)2
G(x) 4(1 4x)1 2(1 2x)2
a
n0
n x 4 4 x 2(n 1)(2x)n
n
n0
n n
n0
an x n 4(4
n
) 2(n 1).2n x n
n0 n0
4
n1
(n 1)2 n1 x n
n0
an 4 n1
(n 1)2n1
51
Solution:
a
n1
n x 3
n
n1
an1 x
n
n1
n
(2)
Let G x) a n xn
n0
From (2) wehave
G(x) a 0 3xG(x) x 2x 2 3x3 ...
x(1 2x 3x2 ...)
G(x)[1 3x] 1 x(1 x)2
x 1
Gn)
(1 x)2 (1 3x) (1 3x)
x (1 x)2
G x) (3)
(1 x)2 (1 3x)
x (1 x)2 A B C
Let
(1 x)2 (1 3x) (1 x) (1 x)2 (1 3x)
52
7
1 3A C 3A 1
4
7 3
3A 1
4 4
1
A
4
1 1 7
G(x)
4(1 x) 2(1 x)2 4(1 3x)
1 1 7
(1 x)1 (1 x)2 (1 3x)1
4 2 4
3n x n
1 1 7
an xn 4 xn 2 (n 1)xn 4
a n
xn (1 ax)1]
n0
1 1 7
(n 1) 3n xn
4 2 4
n0
74 3
a x
n n n 3
3 4 xn , n 0
n
n0 n0
7 n 3
an 3n
4 3 4
Solution:
a1 8a0 1
sin ce a1 9 9 8a0 1
8a0 1 9
a0 1
53
a x (2)
n n n1 n
n 8 an 1 x 10
n1 n1 n1
put G(x) a n xn
n0
W .K.T a xn G x) a
n 0
n1
a
n1
n1 xn xG(x)
from (2)
G(x) a0 8x G(x) x 10x 2 102 x3 ....
1
Put x , 1 A 2
1
A
8 8 8 2
1 1
Put x , 1 B 2 B
10 10 10 2
1 9x 1 1 1 1
(1 8x)(110x) 2 1 8x 2 110x
1 1 1 1 1 (1 8x)1 1 (110x)1
G(x)
2 1 8x 2 110x 2 2
1 1 n n
a n x 8 x 10 x
n n n
1 1
a xn [
n
(8n ) (10n )]x n
n0 n0 2 2
1
a (8n 10n )
n
2
54
1) If A and B are two sets, then the number of elements in their union set (A B) is given by
A B A B A B
( A B) ( A) (B) ( A B)
A B C A B C A B B C A C A B C or
A B C ( A) (B) (C) ( A B) (B C) ( A C) A B C
A B C ( A) (B) (C)
Let A be any set and U be universal set then () (A) (Ac )
A1 A2 A3 A4 A1 A2 A3 A4 A1 A2 A1 A3
A1 A4 A2 A3 A2 A4 A3 A4
A1 A2 A3 A1 A2 A4 A1 A3 A4
A2 A3 A4 A1 A2 A3 A4
Problems:
1.A computer company must hire 25 programmer handle system programming task and 40
programmer for application programming of these hire 10 will be except to perform task of each
type. How many programmer must be hire?
2. Among 100 students, 32 studied maths, 20 studied physics, 45 studied chemistry, 15 studied
maths and chemistry, 7 studied maths and physics, 10 study chemistry and physics, 30
donot studied those three subjects. Find (i) number of students studying all three subjects
(ii) number of
55
students studied one of the subject (exactly). (iii) number of students like maths and doesnot
like physics and chemistry.
Solution:
n( ) = 100, n(A) = 32, n(B) = 20, n(C) = 45, n(A B) = 7, n(B C) = 10, n(A C) = 15
n A B C = 30.
By addition,
n(A B C) = 32 + 20 + 45 – 7 – 10 – 15 + n(A B C)
70 = 97-32 + n(A B C)
n(A B C) = 70 – 97 + 32.
n(A B C) = 5.
n A B C = 30.
(i) No. of students studying all three subject n(A B C) = 5.
(ii) No. of students studying one subject 15 + 8 + 25 = 48 (iii) No. of students like only maths: 15
(iv) No. of students studying Physics: 8 (v) No. of students studying chemistry: 25
56
3. Determine the number of integers between 1 and 250 that are not divisible by 2,3 or 5.
Number of integers that are not divisible by 2,3 or 5 = 250 – 184 = 66.
4. Find the number of integers between 1 and 250 both inclusive that are divisible by any of the
integers 2,3,5,7?
A B C D A B C D A B AC A D B C B D
C D A B C A B D A C D B C D A B C C
125 83 50 36 41 25 17 16 11 7 8 5 3 2 1
312 118 194
57
UNIT-III
GRAPHS
BASIC DEFINITIONS
GRAPH:
A graph is a pair of sets (V,E). Where V is a non-empty set. The set V is called the set of vertices or
nodes and the set E is called the set of edges
Any pair of vertices which are connected by an edge in a graph is called adjacent vertices
Here V1,V2 ;V2,V4 ; V2, V3 are adjacent vertices, V1, V3 ; V3, V4 ; V1, V4 are not adjacent
If two distinct edges are incident with a common vertex then they are called adjacent edges
In any graph, a vertex which is not adjacent to any other vertex is called an isolated vertex. Otherwise
the vertex has no incident edge.
Here V3 has no incident edge. Therefore the vertex V3 is called isolated vertex.
A graph in which each vertex is assigned a unique name or label is called a label graph.
Let G=(V,E) be a graph. If the elements of E are ordered pairs of vertices, then the graph G is
called a digraph.If e is an edge of a digraph G, and e=(u,v) then e is a directed edge which starts
at node u and ends at node v
Undirected graph:
Let G=(V,E) be a graph. If the elements of E are unordered pairs of vertices of G, then G is called an
undirected graph.
59
A loop is an edge whose vertices are equal. i.e., An edge of a graph which joins a vertex to itself
is called a loop.
Multigraph:
Any graph which contains some parallel edges and no loops is called a multigraph.
60
Null graph
A graph G=(V,E) in which the set of edges E is empty is called a null graph.
Weighted graph : A graph G in which weights are assigned to every edge is called a weighted graph.
Finite graph: A graph G=(V,E) in which both V(G) and E(G) are finite sets is called a finite graph.
Otherwise the graph is infinite.
Simple directed graph: When a directed graph has no loops and no multiple directed edges it is called
a simple directed graph
Pseudo graphs: Graphs that may include loops and possibly multiple edges connecting the same pair of
vertices, are sometimes called pseudographs. i.e, An undirected graph that may contain multiple edges &
loops.
Examples
Solution: G is not a simple graph since it contain multiple edges e4, e5 also a loop e7.
61
Solution: G= (V,E)
V={V1,V2,V3,V4}
E={e1,e2,e3,e4,e5}
Definition: Incidence
Indegree: In a digraph G, the number of edges ending at vertex V of G is called the indegree of V.
Out degree:
Let G be a digraph and V be vertex of G. The out degree of v is the number of edges beginning at V
and is denoted by d () (V )
Degree of a vertex:
In an undirected graph G, the degree of a vertex V is defined as the number of edges incident with V with
self loop counted twice and is denoted by d(V).
In case of digraph G, d(V ) d () (V ) d () (V ) ie, degree of v=Indegree of V + out degree of V.
Example.
1. Find the indegree and the outdegree of each vertex in the following graph.
62
Sol:
d (V ) d (V )
V1 0 4
V2 2 1
V3 2 0
V4 4 0
V5 1 3
V6 1 3
V7 2 1
Isolated vertex:
Pendent vertex:
K-regular graph:
Complete graph
A simple graph G in which every pair of distinct vertices are connected by an edge is called a
complete graph. If G is a complete graph n vertices then it is denoted by Kn
Examples
K6
63
Simple theorems
Theorem 1: State & Prove Handshaking theorem
Statement:
(i) The sum of degrees of the vertices of an un-directed graph G is twice the number of edges in
G
n
Ie deg(vi)2| E | and
i1
(1) Let G be an undirected graph. Each edge of G is incident with two vertices and hence contributes 2
to the sum of degrees of all the vertices of the undirected graph G.
The sum of degrees of all the vertices in G is twice the number of edges in G
n
(ii) Let G be digraph and e be an edge associated with a vertex pair (Vi, Vj).
The edge e contributes one to the outdegree of Vi and one to the indegree of Vj
This is true for all the edges in G.
Hence
n n
d ()(vi) d ()(vi)| E |
i1 i1
d (v) 2| E |
64
Example:1
Verify that the sum of the degree of all the vertices is even for the graph
Solution:
d(v1)d (v2 )d (v3 )d (v4 )d(v5 ) d (v6 ) d (v7 ) d (v8 )
=2+3+5+3+3+4+2+2
= 24 which is even
Example: 2
=2+4+4+3+4+1
= 18
65
Complement of a graph
Graph G Complement G of G
Definition (walk):
V0e1V1e2V2e3 . Vn1enVn beginning and ending with two vertices immediately proceeding and following
V0 V1 V2 ..... Vn1 Vn and is shortly called V0 Vn walk. If V0 Vn then the walk is an open walk
and if V0 Vn then the walk is called a closed walk. A walk is also called a chain.
Length of a Walk: The number of edges in walk is called the length of the walk
Example:
66
Path:
If v0 vn, the path is called open path and if v0 vn the path is called a closed path
Path length:
The number of edges used to define the paths is called the path length of path
Simple path:
If all the edges and vertices in a path are distinct except possibly the end points, then the path is called
a simple path ie. A path that does not contain an edge more than once
Circuit : A closed path in which all the edges are distinct is a circuit.
Eg:
2e3 3e4 4e7 5e6 1e5 2e1 4e2 2 is a circuit 1-2-3-4-5-1 is a simple path 2-4-3-2 is a cycle.
67
Bipartite graph:
A graph G is called a bipartite graph if its vertex set V can be divided in to two disjoint subsets A and
B such that every edge in G joins a vertex in A to a vertex in B.
Example
A Bipartite graph G in which every vertex of A is adjacent to every vertex in B is called a complete
Bipartite graph, where A and B are partitioned subset of the vertex set V
If |A| = m and |B| = n, then the complete bipartite graph is denoted by Km, n and it has mn edges
K 4,2 K3,3
68
A graph can be represented by a matrix. There are two ways of representing a graph by a matrix
namely
Adjacency matrix:
Let G be a graph with n vertices. The adjacency matrix of G is n n symmetric binary matrix.
1
A(G) (a ) a if vi and v j in G are adjacent
where ij if v and v in G arenot adjacent
ij nn
0
i j
(i) symmetric
(ii)The principal diagonal entries are all 0’s if and only if G has no loops, and
th th
(iii) Thei rowsumand i columnof A(G)isthe deg reeof V i
Example:
Let G be a digraph with n vertices. The adjacency matrix A(G) of a graph G is an nxn
Matrix defined by A(G) aijnxn Where aij=1 if there is an edge directed from vi to vj and
Aij=0 otherwise
Example:
Problems
Solution:
K4 graph is
1 1 1 0
0 0 1 0
1 0 1 0
1 1 1 0
70
Solution:
Let
Incidence Matrix
Let G be a graph with n vertices and m edges. The incidence matrix denoted by B(G) is defined as
n m matrix B=(bij), where bij=1 if jth edge ej is incident on ith vertex vi and bij=0 otherwise.
Example:
The incidence matrix of a digraph (with no loops) is defined as follows. If ek is an edge from vi to vj,
all elements in column k are zero except bik=1 and bjk= -1 i.e, if edge ej is directed from vi
Bij = 1
= -1 if edge ej is directed to vj
= 0 otherwise.
71
Problems
Solution:
72
GRAPH ISOMORPHISM
Two graphs G and G’ are isomorphic if there is a f :V (G) V (G ') from the vertices of G
(i) f is one-one
(ii) f is on to and
(iii) f presence adjacency
ie., If for vertices u and v in G(u, v)E(G) , if { f (u), f (v)} E(G ') Two graphs are
isomorphic if They have same number of vertices, They have same number of edges & Equal number
of vertices with same degree
a 3 V1 3
b 3 V2 3
c 3 V3 3
d 4 V4 4
e 1 V5 1
f (a)V1, f (b) V2 , f (c) V3 , f (d ) V4 f (e) V5 The adjacency matrix for the
ordering a, b, c, d, e and the adjacency matrix of G’ for the
73
Self-Complementary graph
Consider v1 a, v2 b, v3 c, v4 e, v5 d
74
Problems
1. Show that a graph G is self complementary if it has 4n or 4n+1 vertices
(n is a non-negative integer)
Solution:
Let G= (V,E) be a self complementary graph with m vertices. Since G is self complementary G is
isomorphic to G’
E(G
)F(G')
(m
m 1)
E(G)F(G ') sincekn GG'
2
m(m 1)
2E(G)
2
m(m 1)
E(G)
4
m(m1)
is an integer and one of m or m-1 is odd
4
m or m-1 is multiple of 4 Hence m is of the form. 4n or 4n+1
Note:-
From the above it is clear that a graph with n vertices is isomorphic to its complement if n or n-1 is a
n(n 1)
multiple of 4 and number of edges in G=
4
2. Show that graphs G1 and G2 are not isomorphic where G1 and G2 are as given below.
Solution:
75
Definition: Subgraph:
Example:
A graph G is said to be connected if every pair of vertices in G are joined by a path. If G is not
connected then G is called a disconnected graph.
n 1
Theorem: If G is a graph with n vertices and (G) , then G is connected
2
Proof:
Let us assume that G is not connected Then g has more than one component. Consider any
n 1 n 1
component G1= (v1, E1) of G . Let v V , since (g) , thereexist at least vertices in G1
1 1 2 2
which are adjacent to v1 in G1
n1
v1 1 v1 n 1 Thus each component of G has at least n 1
vertices and G has atleast
2 2 2
n1
two components .Hence the number of vertices in G 2 n Ie. V(G) n1
which is a
2
contradiction . G is connected.
76
Theorem:
A graph G is connected if and only if for any partition of V into subsets V1 and V2 there is an edge
joining a vertex of V1 to a vertex of V2.
Proof:
Let u V1 and v V2 since the graph G is connected a path in G say u v0 , v1, v2 , ......, vn v
Let i be the least positive integer such that viV2 Then Vi-1 V1 and the vertices vi-1 ,vi are adjacent.
Conversely,
Let V1 be the set of all vertices of one component and V2 be the set of remaining vertices of G. Clearly,
V1 V2= V and V1 V2=
The collection {V1, V2} is a partition of V and there is no edge joining any vertex of V1 to any vertex of
V2.
Theorem:
A graph G is disconnected if its vertex set V is partitioned in to two non-empty disjoint subsets V1 and
V2 such that there is no edge in G whose one end vertex is in subset V1 and the other is in subset V2
Proof:
Consider, two arbitrary vertices v1 and v2 of graph G=(V,E) such that v1V1 and v2V2. As
per our assumption, no path can exist between vertices v1 and v2, otherwise there would be atleast one
edge whose one end vertex would be in v1 and other in v2. Hence if a partition exists, the graph G is not
connected.
Conversely, let us assume G is disconnected let v1 be vertex in G. Consider v1 be the set of all
vertices that are joined by paths to v1. Since graph G is disconnected, v1 does not include all vertices of
G. And the remaining vertices will form a non-empty set v2. Now it is clear that no vertex in v1 is joined
to any in v2 by an edge.
77
Theorem:
A graph without parallel edges or self loops with n nodes and k components can have atmost (n-
k) (n-k+1)/2 edges.
Proof:
Let n1, n2 , n3 , .... nk be the number of vertices in each of the k components of a graph G.
n1 n2 ... nk n where ni 1
(n
i
1
)nk
1 i
k
(Or)
(n 2
ni)k
2
i
non negative cross terms = n2 k2 2nk
i
1
n i n (k 1)(2n k) (1)
2 2
i1
ni(ni 1)
We know the maximum number of edges in the ith component of the graph G is
2
The maximum number of edges in G
1 k
ni(ni 1)
2 i 1
1 k ni2 n
2 i 1 2
1
2 (k1)
(2
n k)from (1)
n
2
12 1 1
2nk2n 2
k k 2 2n
k
nk2
k2
)(
n
k)
n
n n k (
n
2
2
1 2
Hence the theorem.
(n)
k(nk1)
2
78
Connectedness in digraphs.
A simple digraph is said to be unilaterally n connected if for any pair of vertices of the graph
atleast one of the vertices of the pair is reachable from the other vertex.
If for any pair of the graph both the vertices of the pair are reachable from one another, then the
graph is called strongly connected.
In an undirected graph if any pair of vertices are reachable from one another, then the graph G is
connected. A simple digraph is said to be weakly connected. If its underlying undirected graph is
connected.
Example:
Problems:
1) Consider the following digraph use its adj matrix to find how many paths of length 3 from v1 to v2.
As(1,2)th entry in A3 is 2, there are two directed paths of length 3 from v1 to v2.
79
2)How many paths of length 4 are there from a to d in the simple graph G given below.
Let G be a muligraph. An Euler path in G is a path that includes each edge of G exactly once and
intesects each vertex of G atleast once.
Eulerian circuit: An Eulerian circuit in G is an Eulerian path whose end points are identical.
80
Theorem:
1) G is Eulerian
2) Every vertex has even degree
3) The set of edges of G can be partitioned into cycles.
Proof: (1) (2)
Let P be an Euler path in G. Each occurrence of a given vertex in P contributes two to the degree of
that vertex and since each vertex of G appears exactly once in the path P, every vertex of G must be even
degree.
(2) (3)
G is connected and non-trivial, therefore degree of every vertex in G is atleast two and G contains a
cycle say Z1. The removal of the edges of Z1 results in a spanning subgraph G1, in which every vertex has
even degree.
If G1 has no edges, then all the edges of G form a cycle and holds ,otherwise the arguments can be
repeated until we obtain a totally disconnected graph Gn. Z1, Z2, Z3, …..,Zn contains the set of edges of
G1 which partition G into G cycles . Hence proved.
(3) (1)
Let G be partitioned into cycles and Zi be the cycles. If Z1 is the only cycle graph, G is Eulerian
otherwise,
Theorem:
If G is connected graph and has exactly two vertics of odd degree, there is an Euler path in G. Any
Euler path in graph G must begin at vertex of odd degree and ends at the other.
Proof:
Let u and v be two vertices of odd degree in G. By adding the edge {u.v} to G, we can produce a
connected graph say G1, all of whose vertices are of even degree.
81
Since G1 is a connected graph and every vertex of G1 is of even degree, we can find an Euler circuit C in
G1. Deleting the edge{u,v} from the circuit C, we get an Euler path that beings at u (or v) ends at v (or u).
Problems:
1. Show that the following graph G is Eulerian and find an Eulerian circuit in G.
Each vertex is of even degree in G and no vertices of odd degree. Therefore G is Eulerian
ABCDEACEBDA is Eulerian circuit in G.
Solution:
Theorem:
A connected graph G with no loops has an Eulerian path if and only if it has exactly two odd
vertices.
Proof:
If G has an Eulerian path from u to v both u and v are odd and since this path passes through
every vertex and traverses each edge once, every other vertex is necessarly even.
On the other hand, suppose that G is connected with exactly two odd vertices u and v. Now either u
and v are adjacent of they are not.
If U and V are adjacent, let e be an edge between them. Delete e to get the graph G’ (with
atmost two components) in which each vertex is even.
If G’ is connected, an Eluerian circuit is obtained in G’ starting from U and adjoin the edge e to
this circuit to get an Eulerian path between U and V. If G’ has two components, let the component that
contains U be G1 and the component that contains V be G2. Clearly both these components are Eulerian.
We obtain an Eulerian circuit from u in the first component and an Eulerian circuit from V in the
second component. Then the path consisting of the edges of the first circuit, the edge e, and the edges of
the second circuit constitute an Eulerian path between U and V. Finally, If U and V are not adjacent in G.
Construct an arc e joining then, producing a new graph H, which is Eulerian.
We obtain an Eulerian circuit in H from U in which the last edge is e. If we delete e, We have an
Eulerian path in G from U to V. This completes the proof.
Theorem
A connected graph G with no loop is Eulerian If and only if the degree of each vertex is even.
Proof: Assume that G is connected with no loops and is Euler. Then G has an Euler circuit.
Any Eulerian circuit in G leaves each vertex as many times as it enters. So each vertex of G is
even.
Suppose that G is connected graph in which each vertex is of even degree. We prove that G is
Eulerian by actually constructing an Eulerian circuit in it. An Eulerian circuit is obtained in G by
procedure in which circuits are spliced until to get the circuit.
Start from any vertex V. Traverse distinct edges of G until we return to V. This is certainly
possible since each vertex is of even degree. Let C1 be the circuit this obtained.
If this circuit C1 contains all the edges of the graph G1 then C1 is an Eulerian circuit.
Otherwise, delete all the edges of this circuit C1 and all vertices of degree O from G to obtain the
connected subgraph H1. In which each vertex is also even
Furthermore, Since G is connected, there is a vertex u. Now start from u and obtain a circuit c 2 by
traversing distinct edges of the subgraph H1
We note that the two circuits have no common edges, even though they may have common
vertices. If V = U, the two circuits, can be joined together to form an enlarged circuit C3.
83
If U and V are distinct, let P and Q be the two distinct simple paths between U and V consisting
of edges from C1. Then P, Q and C2 are spliced together to form a new circuit C3. If this enlarged circuit
has all the edges of G, We conclude that it is Eulerian. Otherwise, We continue until we obtain a circuit
that has all the edges of G.
A path between two vertices in a graph is a Hamiltonian path if it Passes through each vertex
exactly once.
Hamiltonian cycle:
A Closed Path that passes through each vertex exactly once and in which all the edges
Hamiltonian Graph:
Theorem:
Let G = (V, E) be a loop free undirected graph with |V| = n 3. If deg (X) + deg (Y) n for all
non-adjacent vertices X, Y V, then G contains a Hamilton cycle.
Proof:
Assume that G does not contain a Hamilton cycle, We add edges to G until we arrive at a
Subgraph H of Kn where H has no Hamilton cycle, but, for an edge e (of kn) not in H, H + e has a
Hamilton cycle. Since H Kn, there are vertices a and b in V where {a, b} is not an edge of H but H +
{a, b} has Hamilton cycle C. The graph H has no such cycle, so the edge {a, b} is a part of cycle C are
listed as follows.
84
For each 3 i n, If the edge {b, vi} is in the graph H1 then we claim that the edge{a,
Vi-1} cannot be an edge of H. For if both of these edges are in H1 for some 3 i n, then we get the
Hamilton cycle.
For each 3 i n, atmost one of the edges {b, Vi} {a, Vi-1} is in H.
Also, degH (a) + degH (b) < n, Where degH (V) = degree of V in H.
This is a contradiction to the hypothesis that deg (X) + deg (Y) n for all non-adjacent
Problems:
85
2. Find a Hamilton Path in the following graph. Does a Hamilton cycle exist in G?
A Hamiltonian cycle in Kn can be formed starting at any vertex, such as Hamiltonian cycle can
be build by visiting vertices in any order. We choose, as long as the path begins and each end at the same
(n 1)!
vertex and visits each other exactly once, as it is possible in Kn, n 3, Also there are
2
Hamiltonian cycles in Kn.
4. Draw a graph with six vertices which is Hamiltonian but not Eulerian.
Theorem:
n2 3n 6
A graph G has a Hamilton circuit m Where m and n denote the number of vertices
2
and the edges of G respectively.
Proof:
Let V1 and V2 be the two vertices of G. Which are adjacent, Eliminate V1 and V2 from G together
with any edges which have these vertices as end points, and obtain a new graph H.
86
Now,
n2 5n 6
m (degV1 ) (deg V2 )
2
n2 5n 6
ie, (degV1 ) (degV2 ) m ( )
2
n2 3n 6 n 5n 6
2
deg(V1 ) deg (V2 ) n
2 2
deg(V1) deg (V2 ) n
for nonadjacent vertices V1 and V2
Problems
1. Show that the graph given below has no Hamiltonian cycle but it has a Hamiltonian path
Solution:
G has 9 vertices
n=9
The number of edge in any Hamiltonian cycle in G is 9. There are 3 vertices of degree two in G.
Therefore all the incident edges on the vertices d, e and f must be included in any Hamiltonian
cycle.
The edges a, d; d , g; b, e; e, h; c, f ; f ,i must be included in
constructing a Hamiltonian cycle.
The degree of b is 3 when the edges given above are included and we include the edge
a , b in the Hamiltonian cycle, we delete the edge b, c . Then we must include a, c in the
Hamiltonian cycle. Thus the degree of a would be 3.
Hence no Hamiltonian cycle exists in G. However there exists a Hamiltonian path in G.
a-d – g- h –e – b – c – f- i.
87
Definition:
Two graphs G1 and G2 with Adjacency matrices A1 and A2 respectively are isomorphic.If and
only if there exists a permutation matrix P such that P A1PT = A2
Note: A permutation matrix having the rows of the unit matrix in a different order
Problems
1. Show that the following graphs G1 and G2 are isomorphic.
Solution:
The two graphs G1 and G2 are isomorphic such that AV1 , B V3 ,C V2 , D V4 .
88
89
4. Find an Euler path or an Euler circuit if it exit in each of the following graphs.
Solution:
In G1 there are only two vertices namely A and B of degree 3 and other vertices are of
even degree.
Hence there exist an Euler path between A and B. The actual path is
A -B - E - D - A - C - D - B
This path uses each of the 7 edges exactly once, so it is an Euler path.
In G2 there are 6 vertices of odd degree. Hence G 2 contains neither an Euler path nor
an Euler circuit.
90
In G3 all the vertices of even degree. So the graph contains an Euler circuit.
5. Deter mine which of the following graphs are bipartite and which are not. If a graph is
bipartite, state if it is completely bipartite.
Solution:
(i) In G1 since the vertices D, E, F are not connected by edges that my be considered as one
subset V1 then A, B, C belong to V2
V1 D, E, F & V2 A, B, C
The vertices of V1 are connected by edges to the vertices of V2 but the vertices A, B,
C of the subset V2 are the edges BC. Hence the graph G1 is not a bipartite.
(ii) By taking V1 A, C & V2 B, D, E the condition required for bipartite graph
are satisfied.
(iii) By taking,
V1 A, B, C & V2 D, F , E the condition of bipartite is satisfied.
G3 is bipartite.
Here the vertices A and F (also C & D) are not accepted by edges.
UNIT-IV
ALGEBRAIC STRUCTURES
Binary operation
Definition
Let A be any non-empty set. The binary operation * is a function from AA to A
ie., a rule which assigns to every pair (a,b) A A , a unique element a*bA .
Example: Usual addition, multiplication are binary operations defined on the set of real numbers.
(1) Associative:
* Is associative if a * (b * c) = (a*b)*c for all a,b,cA .
(2) Commutative.
a * b = b* a for all a,bA
(3) Existence of Identity
* Possesses the identity element e A if a * e = e * a = a for all a A
The binary operation is called idempotent if it possesses idempotent element.
Algebraic Systems:
Definition: A non-empty set together with one or more binary operations defined on it is
called algebraic system.
If * is a binary operation defined on a set A, then (A, *) is called an algebraic system.
Semi group:
Let S be a non-empty set with a binary operation * on it. Then S is called a semigroup w.r.to
* if * is associative
ie., a * (b * c) = (a * b) * c for all a,b,c s
Examples:
1. Let X be any non-empty set, Then the set of all functions from X to X is the set X x , is a
semigroup w.r.to *, the composition of functions.
Problems:
1. Show that set of rational numbers Q is a semigroup for the operation * defined by
a * b = a + b – ab.
Solution: Q is closed for *
a * (b * c) = a * (b + c – bc)
= a + b + c- bc – a (b + c - bc)
(a * b) * c = ( a + b – ab) * c
92
= a + b – ab + c – (a + b – ab)c
a* (b * c) = (a * b) * c a, b, c Q
a* b = b * a a, b s
Problems:
Solution: L.H.S (x * y) * (x * y)
=x*y = R.H.S
Monoid:
Let M be a non-empty set with a binary operation * on it. Then M is called a monoid for the
operation * if
Examples:
93
Problems:
1. Show that the set of integers, I is a monoid for the operation * defined by a * b = a + b – ab,
a, b I.
Solution:
And 0 * x = 0 + x – 0. x = x, x I
GROUPS
Definition:
A non-empty set G with binary operation * is called a group. If the following axioms are satisfied.
1. * is associative Ie., (a * b) * c = a * (b * c) a, b, c G
2. There exists an element e G such that a * e = e * a = a; a G (e is the identity element)
3. For every a G, an element a1G , such that a*a1 a1*ae ( a 1 is called the inverse
element of a)
Eg.,G= {1, -1, i, -i}. In G, the operation ‘.’ Is defined by the following table then (G, .) is a abelian
group.
94
Properties of Group:
Property: 1
e *e e (Taking e as identity)
1 2 2 1
e *e e (Taking e as identity)
1 2 1 2
e1e2
Property: 2
Proof:
Let (G, *) be a group, with identity element e, Let b and c be inverses of an element a G
a*b=b*a=e
a*c=c*a=e
b=b*e
= b * (a * c)
In a group (G, *)
a*c=b*c
a*b=a*c
b = c [ Left cancellation]
Property: 6
95
Proof: Consider x * a = b
1
Post multiplying by a
x * (a * a 1 ) = b * a
x * e = b * a 1
x = b * a 1
Then x1 * a = b and x2 * a = b
x1 * a = x2 * a
In a similar manner, the equation a * y = b has a solution y = a 1 * b and this solution is unique.
Problems:
(a*b)2 a2 *b2
To Prove G is abelian
(a * b) * (a * b) = (a * a) * (b * b)
a * (b * (a * b)) = a * (a * (b * b))
(b * a) * b = (a * b) * b
a * b = b * a a, b G
G is abelian
96
Definitions
Order of a group:
The number of elements in a group is denoted by the symbol O(G) or |G| called the order of the
group G.
Order of an element:
Let G be a group & aG. If for some positive integer n, an=e, then n is called the order of the
element a and is denoted by the symbol O(a). O(a)=n if an=e.
Cyclic Group:
A group (G,*) is called a cyclic group. If for some element aG, every element xG is
expressed as x=am or x=ma where m is an integer. Here a is called the generator of the cyclic group G.
We say that G is a cyclic group generated by aG and It can be written as G=(a).
1=24
2=25
3=27
4=26
Ie. Every element of this group expressed as a power of 2.If a is generator of the group G then a -1 is also a
generator.Since 2X53=1 and 3X52=1 is the inverse of 2.
3 is also a generator of this group. *A cyclic group can have more than one generator.
b*c = am* an
=am+n * an+m
=an* am
=c*b
G is an abelian group.
97
This group G is an abelian group with identity element e but it is not cyclic.
Theorem:
If O(G)=n then an=e so that G={a,a2,….an=e} where e is the identity element for * in G.
If possible let am=e for m<n Since G is a cyclic group, an element xG can be written as,
X=ak for some integer k. Since m and k are integers by Division Algorithm we write,
Hence every element of G is of the form a r, where r<m. G has atmost m distinct elements,
a0,a1,a2,…..am-1.This shows that order of G, |G|=m<n, But G is a cyclic group of G of order n.
Suppose ai=aj for i<j aj=ai aj*ai=e ie. aj-i=e Also i<j n, we have 0<j-i<n
This means that aj-i=e with j-i<n. This is a contrediction. ai=aj for i<j is not possible.
Hence the elements a,a2,….an are all distinct. Now G={ a,a2,….an=e}
Permutation:
Let A be a finite set. A bijection (one-to-one on to mapping) from A onto itself, is called a
permutation on A.
1 2 3 4
f=
2 4 1 3
f= a1 a2 ........ an
b b ........ b
1 2 n
Symmetric set:
If S is a finite set having ‘n’ distinct elements then we shall have n! distinct permutations of the
set S. The set of all distinct permutations of degree n defined on the set S is denoted by S n, called the
Symmetric set of permutations of degree n.
a1 a2 ....... an
If f= and
b1 b2........ bn
g= b1 b2 ....... bn
c c ........ c
1 2 n
99
ie. (f.g)(x)=g[f(x)]
Identity Permutation:
If I is a permutation of degree n such that it replaces every element by the element itself, then I is
called an identity permutation of degree n.
Inverse of a permutation
a1 a2 ....... an
If f= , then the inverse of f is obtained by interchanging the rows in f.
b1 b2........ bn
b1 b2........ bn
ie. f-1=
a a ........ a
1 2 n
Symmetric Group
w.r.to the operation of permutation multiplication. This group of permutation is called the symmetric
group (Sn, .). For n 3, the symmetric group Sn is non-abelian.
Proof:
Let S={1,2,…n}
The set of all permutations defined on the S is denoted by S n. In Sn, the operation permutation
multiplication (composition of functions) is a binary operation.
(i) Associativity:
c1 c2........ cn
and h= be three elements is Sn.
d1 d.........
2
d n
100
a1 a2 ....... an
Then f.(g.h)=(f.g).h and it is =
d1 d 2 ........ d n
a1 a2 ....... an
For f = Sn we have
b1 b2......... bn
a1 a2 ....... an b1 b2........ bn = a1 a2 ....... an
f.I = b b ........ b b b ........ b
b1 b2......... bn 1 2 n 1 2 n
b2 ....... bn
For f= a1 a2........ an n b1
f-1= a
b b ........ b S , a ........ a
1 2 n 1 2 n
(iv) Non-Commutativity:
Problems
1. List all the elements of the symmetric set S3 where S={1,2,3} and prove that (S3. ) is a group
Solution:
The operation ‘ ’ product of permutations defined on the set S 3={P1, P2, P3,P4, P5, P6} is given in the
following table
This table shows that the operation ‘ ’ is associative since the composition of function is associative.
P1 (P2 P3 ) (P1 P2 ) P3
Inverse: P2 and P3 are inverse of each other P4,P5,P6 have self inverses. (S3, ) is a group.
1 2 3 4 5
2. Consider the permutations on S={1,2,3,4,5} given by = ,
2
1 2 3 4 5 1 2 3 4 5
= ,=
1 4 5
2 3 5 4 3 1 2
Solution:
1 2 3 4 5 1 2 3 4 5
=
2
1 2 3 4 5
=
2 3 1 5 4
1 2 3 4 5 1 2 3 4 5
=
1
1 2 3 4 5
=
5 4 3 2 1
x
102
x 1
1 2 3 4 5 1 2 3 4 5
=
3 1 2 4 5 1 2 3 5 4
1 2 3 4 5
=
3 1 2 5 4
This permutation group is called the dihedral group (Dn, ). The dihedral group (Dn, ) is a
subgroup of the symmetric group (Sn, ) whose elements are the permutations obtained by symmetries of
a regular polygon.
Solution:
Consider a square with vertices labeled 1,2,3,4 O be the centre of the square. We perform
rotations about angles 900,1800,2700 and 3600 about the point O. The following permutations are obtained
1 2 3 4
P5
2 1 4 3
1 2 3 4
P6
4 3 2 1
103
1 2 3 4 1 2 3 4
P7 1 4 3 2 ; P8 3 2 1 4
These 8 permutations P1, P2...P8 are the elements of (D4, 0). The composition table for
This table shows that the operation is associative since the composition of functions is
Associative.
Identity Element:
Inverse Element:
P1, P3, P5, P6, P7 and P8 have self inverses. P2 and P4 are inverses of each other.
(D4, 0) is a group.
Cyclic Permutation:
The permutation f defined on S a1, a2 ,...... an is said to be cyclic
if f (a1) a2, f (a2 ) a3 , .... f (ar1 ) ar and f (ar ) a1 and f (b) b for all other elements.
Eg :
1 2 3 4 This is a cyclic permutation. It is represented by a cycle (1 3 2)
1. f
3 1 2 4
104
1 2 3 4 5
2. g It is represented by (1 3 4) G is cyclic permutation
3 2 4 1 5
Both f and g are represented by a cyclic of length 3. The number of 25 elements in the cycle gives
the length of the cycle.
Disjoint cycles:
Transposition:
Important Results:
Alternation Group:
If An is the set of all even permutations of degree n. Then An is a group w.r.to the operation
product of permutations. The group (An, ) is called alternating group of degree n. Further, order of
n!
An .
2
Problems:
1 2 3 4 5 6 7 8 9
f
2 5 4 3 6 1 7 9 8
105
1 2 3
2. S.T. The permutations e
1 2 3
1 2 3
1 2 3 forma group.
2 3 1 3 1 2
Solution:
Consider the set S e, , The operation table defined on the set S is as follows:
Let (S ,) be a semi group and T S. If the set T is closed for the operation then T , is
Eg: (E,+) is a sub semi group of (Z,+) where E= set of even integers.
Sub Monoid:
Let M ,, e be a monoid and T M . If T is closed under the operation and eT. Then
Eg: Let T = Set of odd integers, then T , is a submonoid of Z , Where is the usual
multiplication.
106
Subgroup:
Let (G,*) be a group and H G. (H,*) is called a subgroup of (G,*) if H itself is a group w.r. to
*.
Trivial Subgroup:
For any group (G,*), {{e}, *} and (G,*) are subgroups, called trivial subgroups. All other
subgroups are called non-trivial subgroups.
Examples:
For the group (Z12, +12), (H, +12) is a subgroup where H = {[0], [3], [6], [9]} or H = {[0], [4], [8]}.
Necessary and sufficient condition for a group: A non- empty subset H of a group (G,*) is a subgroup of
G if and only if a*b-1 H for all. a, b H.
Theorem:
Proof: Let H and K be two subgroups of group (G,*). Clearly, e H K where e is the identity
element of G. So H K is non-empty.
Let a, b H K .
To prove. ab1 H K
Since H is a subgroup of G.
aH,bH ab1H
Also K is a subgroup of
G, aK,bK ab1K ab1H K a,bH K. H K is asubgroup of G.
107
Example:
Consider the additive group (z, +) then H1 = (2z, +), H2 = (3z, +) are subgroups of (z, +).
Consider H1 H2
For 2, 3H1 H 2 .
2 3 5H1 H2
Let a, bH Since H is a subgroup. bH b1H. Further H is closed for * then
Sufficient Part:
108
* is associative in H.
Problems
1. Show that the set of all elements ‘a’ of a group (G,*) such that a*x = x*a, V x G is a subgroup
of G.
Solution:
Let H= a G a * x x * a V x G
To Prove: H is a subgroup of (G, *)
[Such a subgroup is called the centre of the group G]
Clearly, e * x x *e x V x G
e H
H is a non-empty
Let a, b H
To Prove: a *b1 H
a H a * x x * a , V x G
b H b * x x *b , V x G
Consider b* x x*b
1
Premultiplying by b , we get,
b1 *(b* x) b1 (x *b)
(b1 *b)* x (b1 * x)*b [ Associative]
e * x (b1 * x)*b
x (b1 * x)*b
1
Postmultiplying by b
x *b1 (b1 * x)*b*b1 x *b1 b1 * x
Consider (a *b 1 )* x a *(b1 * x) a *(x *b1) (a * x)*b 1
(x * a)*b 1 x *(a *b1)
(a *b 1 )* x x *(a *b1) V x G
a *b1 H
For a, bH wehavea *b1 H
Hence H is a subgroup of (G,*)
109
*
The identity element of group (Z 7 , X 7) is 1.
Consider the Subsets
110
Note:
If g is one-to-one, then g:S T is called semi group monomorphism
If g is onto, g:S T is called semi group epimorphism
If g is both 1-1 and on to then g:S T is called semi group isomorphism
Properties
Property : 1
Proof:
Let a,b,cS
g[a*(b*c)]=g(a) [g(b*c)]
But in S,
g[(a*b)*c]=g[a*(b*c)]
111
Property: 2
Proof :
a*a = a
g(a*a) = g(a)
g(a) g(a)=g(a)
Let a,b s
Assume that
a*b = b * a
g(a*b) = g(b*a)
Monoid Homomorphism
Definition:
Let (M*,e) and (T, ,e) be any two monoids. A mapping g:M T is called a monoid
homomorphism If
1. If g:M T is a monoid homomorphism of (M,*, e) on to (t, , e1) then it preserves the zero
elements.
112
Z*x=Z
g(Z*x)=g(Z)
g(Z) g(x)=g(Z)
g(x) g(Z)=g(Z)
g(Z) T has a pre image zM , since Z is zero element of M, g(z) is a zero element of T.
Theorem:
Proof:
To prove g : s ss is a homomorphism
= (a*b)*c
=a*fb(c)
= fa[fb(c)] = ( fa fb )(c)
fa*b fa fb a,bS
Proof:
f: G G1 is a group homomorphism a b f (a) f (b) a, b G
113
consider, g a b f ab
fa fb
Hence g: s ss is a homomorphism.
Group Homomorphism:
Let x, y R.
To prove: f x y f x f y
f x y ex y
ex e y
f x f y
f x y f x f y x, y R.
Properties of Group Homomorphism
Theorem:
If f : G G1 is a group homomorphism
then (i) f e e1 where e and e1 are the identify elements of G and G1 respectively.
(ii) f a 1 f a 1
Proof of (i).
Let a G1 then a e e a a.
114
a e = a
f a e f a
f e e 1
Similarly, f e a f a
f e f a e1 f a
f e e1
Proof of (ii)
a a1 e
f a a1 f e
f a f a1 e1
f a 1 f a
1
Similarly,
a1 a e
f a1 a f e
f a 1 f a e1
This shows that f a 1 f a a G.
1
Proof of (iii)
Let H be a subgroup of G.
Let f a f H and f b f H .
115
1
To prove: f a f b f H
Consider f a f b
1
f a f b 1 by (ii)
f a b1
Since a b1 H implies f a b1 f H .
f a f b f H f a f H and f b f H .
1
Kernel of a Homomorphism
Let f: G G1 be a group homomorphism. Then the set of all elements of G which are mapped
into the identity element e1 of G1 is called the kernel of the homomorphism f and is denoted by the
symbol ‘kerf’.
Theorem:
Proof:
By definition kerf x G f x e1
f a e1 and f b e1
116
f a b1 f a . f b1
= f a . f b 1
= e1 .e11
e1.e1 e .
kerf is a subgroup of G.
GROUP ISOMORPHISM
DEFINITION:
Two groups are said to be isomorphic if there exists an isomorphism between them.
G G1 (G is isomorphic to G1 )
Problems
1. P.T. any finite cyclic group is isomorphic to the additive group of integers Z , .
Solution:
f is abijection.
117
It remains to prove f a b f a f b
Consider,
f m n amn
am an
f m n f m f nm, n Z
f is a homomorphism.
Further, f: Z G is both one-to-one and onto.
f: Z G is an isomorphism.
Z is isomorphic to G.
Statement
Proof
Let G, be a finite group of order n. Then the operation is completely described by means
of an operation table.
Then every row and column in the composition table of G, represents the permutation of the
elements of G.
Further, Pa Pe Pe Pa Paa G
Pa Pb Pab
118
Since Pa Pb c Pb Pa c Pb c a
c a b
c a b Pab c
The operation is associative in P also
(P, ) is a group.
f a Pa for any a G
Clearly, f a f b
Pa Pb
Pa c Pb c for any C G
c a c b
f is one-to-one.
f is onto also
For a,bG
f a b Pab
Pa Pb
f a f b
f a b f a f ba, b G
f : G P is a homomorphism.
f : G P is an isomorphism
119
Cosets:
aH a h hH
H a h a hH
Problems:
1. Find all the left cosets and right cosets of H 0 3 6 9 in the group Z12 , 12 .
Solution:
0 12 H 0 3 6 9
1 12 H 1 4 7 10
2 12 H 2 5 8 11
3 12 H 0 12 H
4 12 H 1 12 H
5 12 H 2 12 H
The distinct left cosets of H are 0 12 H , 1 12 H and 2 12 H .
Similarly the right cosets of H are H 12 0, H 12 1, and H 12 2 .
Lagrange’s Theorem
Statement
The order of a subgroup of a finite group is a divisior of the order of the group.
i.e if H is a subgroup of a finite group G, , then O (H) divides O (G).
Proof:
Let G, be a finite group of order n, and H a subgroup of G with O (H)=m.
Here O (G)=n.
We have to show that m divides n.
Since H contains m distinct elements, every left cosets of H contains exactly m elements.
We know that any two left cosets of H are either identical or disjoint and the collection of distinct
left cosets of H is the group G. Since G is a finite group , G has a finite number of distinct left
cosets of H.
Let a H , a H ,....a H , be the distinct left cosets of H.
1 2 k
120
Proof:
O (G)= n and a G
Consider the set H a1 , a 2 , .. , a m e
i.e m divides n.
Normal subgroup
Definition:
A subgroup H , of a group G, is called a normal subgroup of G .
Example :
121
Problems:
We claim that a * H H * a
xH *a
a* H H * a 1
Also let y H * a then y h1 *a
a h1 G is abelian
ya*H
H *a a* H 2
Problems:
1. Prove that the intersection of two normal subgroups is also a normal subgroup.
(or)
Prove that the intersection of two normal subgroups of a G, is a normal subgroup of a
group G,
Solution:
Let xH K
122
g x g 1 H K
For, xH K , g G
g x g 1 H K
H K is a normal subgroup.
2. If f : G, G, is a group homomorphism then the kernel of f is a normal subgroup of G
(or)
Let G, and H , be two groups and g : G, H , be group homomorphism.
Solution:
By definition
Kernel of f xG e1 where e1 is theidentity element of G1
f x
Let a, b ker f
f (a) f (b)1
e1 e11 e1
a b1ker f
For a,bker f , ab1 ker f
Ker f is a subgroup of G.
To proof: g x g1ker f
123
Consider, f g x g 1 f (g) f x g 1
f (g) f (x) f (g 1)
f (g)
1
f (g) e1
f (g) e1
1
f (g)
Definition
Let G, be a group and H , is a subgroup of G. The set of all left cosets of H in G is denoted
by the symbol G/H.
In G / H , we define a binary operation , called the induced binary operation on left cosets by
a H b H a b H
Then G / H is a group w.r to this induced binary operation .
Natural Homomorphism
f a b a b H
a H b H
f a f b a,b G
It is an epimorphism
Statement:
Let g :G H be a homomorphism from a group G, to a group (H, ). Let K be the kernel of
the homomorphism g and H1 H be the image set of g in H. (ie. g(G) H1 ). Then G/K is isomorphic
to H 1 .
124
Proof:
We define a mapping f :G G K , which is an epimorphism from the group (G, *) to the factor
group G K , where the induced binary operation on cosets is defined by
a H b H a b H
Consider, h a K b K
h a b K
g a b
g(a) g (b) a, bG and g is a hom omorphism
h(aK ) h(bK )
The image set of the mapping h is the same as the image set of the mapping
Consider a* k = b * k
125
g(a) = g(b)
h (a * k) = h(b * k)
The mapping h:G \ K H ' is both one-to-one and onto and it is also a homomorphism.
Let (a, b) and (x, y)G1 G2 where a, xG1 and b, yG2.
(a 1 x, b2 y) G1 x G2
Problems
1. Find the direct product of (Z 3, +3) and (Z3*, X3) where Z3 = {0, 1, 2} and Z3* = {1, 2}
Solution:
Z3 x Z3* has the elements (0, 1, 2) x (1, 2) = (0, 1) (0, 2) (1, 1) (1, 2) (2, 1) (2, 2)
(a, b) * (x, y) = (a +3 x, b x3 y)
126
The element (0, 1) is the identity (0, 2) has self inverse (0,2). (2,1) and (1, 1) are inverses of each other.
(1, 2) and (2, 2) are inverse of each other.
Ring:
A non-empty set R with two binary operations ‘ + ‘ and ‘ ◦ ’ (addition and Multiplication) is
called a ring if the following conditions are satisfied.
i.e. a, b, c R a◦ (b + c) = (a ◦ b) + (a ◦ c)
and (b + c) ◦ a = (b ◦ a) + (c ◦ a).
Types of Rings
The element 1 R is called the unit element of the ring. Clearly 1 R is the multiplicative
identity.
Commutative Ring
127
i.e. a ◦ b = b ◦ a a, b R.
(i) a ◦ 0 = 0 ◦ a = 0
(ii) a (-b) = (-a) b = -ab
(iii) (-a) (-b) = ab
(iv) a (b – c) = ab – ac
(v) (b – c) a = ba – ca
Problems
1. If R is a ring such that a2 a aR Prove that
(i) a + a = 0, a R ie. each element of R is its own inverse
(ii) a + b = 0 a = b
(iii) R is a commutative ring
Solution:
(i) a R a + a R
(a+a)2 = a + a
(a + a). (a + a) = a + a
(a + a) . a + (a + a) .a = a + a
i.e. a2 + a2 + a2 + a2 = a + a
(a + a) + (a + a) = (a + a) + 0.
By left cancellation Law, for addition we have a + a = 0.
(ii) a + b = 0.
By (i) a + a = 0
a + b = a + a.
b = a [ by left cancellation]
(iii) To Prove: a ◦ b = b ◦ a
Consider, (a + b)2 = a + b.
Then (a + b) ◦ (a + b) = a + b
(a + b) ◦ a + (a + b) ◦ b = a + b
a2 + b◦a + a◦b + b2 = a + b
b◦a + a◦b = 0
128
Examples of Rings
1. Ring of Integers.
Consider the set I of integers. Then I is a commutative ring with unit element for the
binary operation ‘+’ and ‘ ’ Where + is the usual addition and ‘ ’ Is the usual multiplication.
2. (Q, +, ) is a ring with unit element where Q is the set of rational numbers, ‘+’ usual addition, ‘.’
Usual multiplication.
+ : matrix addition
: matrix multiplication
M2(R),, is a non-commutative ring with unity, where unit element is identity matrix.
Zero Divisors:
Let R be a ring. A non-zero element, a R is called a zero divisor (or) a divisor of Zero.
If an element b ≠0 R such that a.b=0 (or) b.a= 0 Ie., for a≠0, b≠0, ab=0 (or) ba=0 then b is
Called a zero divisor of a.
Ring without zero divisors:
A ring R is without zero divisors if the product of no two non-zero elements of R is 0.
i.e. If ab=0 => a=0, b=0.
Example:
In the ring (Z6,+6, X6) the elements 2 and 3 are zero divisors since 2 X63=0 and 3X62=0
Ring with zero Divisors:
If in a ring R, there exists non-zero elements a and b such that ab=0 then R is said to be
Ring with zero divisors.
Theorem:
A ring R is without zero divisors iff the cancellation laws hold in R.
Proof:
Suppose if R has no zero divisors. Let a,b,c be any three elements of a ring R such that
a≠0, ab=ac.
We have ab=ac.
ab ac 0
a (b c) 0
R has no zero divisors, a (b- c) = 0, and a ≠ 0
129
b–c=0
b=c
Hence, ab = ac b = c
Left cancellation law holds in R.
Similarly, we show that right cancellation law holds in R.
Conversly, Suppose that the cancellation laws hold in R. If possible, let ab=0, a≠0, b≠0
Field
Definition:
A ring R with at least two elements is called a field if.
(i) R is commutative
(ii) R has the multiplicative identity.
(iii) Every non-zero element of R has multiplicative inverse in R.
(Or)
A non-empty set F with atleast two elements is called a Field with two binary operations ‘+’
‘°’ defined on it if.
(i) (F,+) is an abelian group.
(ii) (F-{0}, ) is a commutative group (or) abelian group.
(iii) Multiplication ‘°’ is distributive over addition ‘+’.
a.(b c) (a.b) (a.c)
i. e, a,b, cF
(b c).a (b.a) (c.a)
130
Example of Field:
The ring of rational numbers (Q,+, ) is a field since it is a commutative ring with unity and each
non-zero element is invertible.
Problems
1. P.T. The set R={0,1,2} is a field w.r.to addition modulo 3 and multiplication modulo 3.
Solution:
The operation table for +3 and X3 on R={0,1,2} are given in the following tables.
From the composition table, we see that R is closed for +3. The operation +3 is clearly associative and
Commutative.
i.e. (a +3 b) +3 C= a +3 (b +3 C)
and a +3 b = b+3 a V a,b,c R
i.e. 0 R is the zero element (additive identity) 2 and 1 are inverses of each other.
i.e. a X3(b +3 C) = (a X3 b) +3 (a X3 C)
(b +3 C) X3 a = (b X3 a) +3 (C X3 a)
For example,
1 X3 (0 +3 2) = 1 X3 2 = 2.
(1 X3 0) +3 (1 X3 2) = 0 +3 2 = 2.
1 X3 (0 +3 2) = (1 X3 0) +3 (1 X3 2)
Thus (R, +3, X3) is a commutative ring with identity and each non-zero element R is invertible. Hence (R,
+3, X3) is a field.
131
UNIT-V
A relation R on a set A is said to be a partial order relation, if R is reflexive, anti symmetric and
transitive.
Examples
(i) Then the relation of divisibility, R defined by R ={(a, b)|a divides b} is a partial order relation on
Z
(ii) The relation “set inclusion” is a partial order relation on P(A), the power set of a given set A
Problems:
1. Let N be set of all natural numbers. Prove that the relation R in N defined by aRba
Divides b is a partial order relation
Solution
(i) Reflexive
a R a, a N
since every natural number divides itself
(ii) Symmetric:
Let aRb and bRa
a divides b and b divides a
This is possible only when a = b
(iii) Transitive
There exists natural number m and n such that b=ma and c=nb
c = nb c= n(ma)=(nm)a
a divides c and so aRc
R is transitive
A set P together with a partial order relation is called a partially ordered set and is denoted by
(P, ) . The standard symbol is used to denote a partial order relation.
132
Poset Relation( )
Divides
[Z ,/]
Less than or equal to
[ R,]
Greater than or equal to
[ R,] Set inclusion
[P( A),]
Comparability
The elements a and b in a poset (P,) are called comparable if either a b or b a . If a and b are
elements of P, such that neither a b nor b a , then a and b are called incomparable.
Example:
In the poset (Zt ,/) the integers 3 and 6 are comparable while 3 and 5 are incomparable.
If every two elements of a poset (P, ) are comparable, then P is called a totally ordered set or
linearly ordered set and the relation is called a totally ordered set (or) Linearly ordered set.
Example: The Poset (Z , ) is a totally ordered set [Here is a a b] whereas poset (Z , /) is not
totally ordered.
Chain: The totally ordered set is also called a chain. A poset (P, ) is such that every pair of
elements of P are comparable is called a chain
A poset (P, ) is called a well ordered set if it is a totally ordered set and every non-empty subset P has
a least element.
In this diagram the elements of the poset represented by means of dots. If ‘a’ and ‘b’ are two
elements of A and a b, then the dot for a is drawn below the dot for b, then there is a Line segment
between ‘a’ and ‘b’
If a b and b c then there is Line segment from a to c but there are Line segments from a to b from b
to c such a Graphical representation of a poset is called a hasse diagram
133
Example
Let A = {1, 2, 3, 4, 12} consider the partial order of divisibility on A. Draw the Hasse diagram for the
poset (A, /)
Problems
1. Draw the hasse diagram (s, /) where S={1, 2, 3, 4, 6, 8, 12} and Relation is divisibility
Sol:
2. Draw the hasse diagram for (D30 , /) where D30 {1, 2,3,5, 6,10,15,30}
Soln:
3. Draw the hasse diagram for the poset (P( A), ) where P(A) is the power set of a set A={X,Y}.
Then P( A) {,{x},{y},{xy}}
Hasse diagram:
134
4. Draw the hasse diagram for the poset (P( A), ) where P(A) is the power set of a set A={1,2,3}
: Divides : a multipleof
: LE : GE
If a is the maximal element of a poset ( A, ) then it must be the minimal element of the dual poset
( A, )
Similarly if a is a minimal element of a poset ( A, ) then a is the maximal element of the dual
poset ( A, )
In the poset [P( A), ] the least element is and the greatest element is A.
135
We can observe from the hasse diagram, the least element is at the lower level and the greatest element
is at higher level.
An element a A is called least upper bound of B if ‘a’ is an upper bound of B and a a ' whenever
a’ is an upper bound of B.
An element a A is called a greates lower bound of B if ‘a’ is a lower bound of B and a ' a
whenever a’ is a lower bound of B.
Eg: Let X={2,3,6,12,24,36} and the relation be such that x y if and only if x divides y.
UB {2, 3} = {6,12,24,36} LUB (2, 3} ={6} UB (24, 36} =does not exist
LUB {24, 36} = does not exist LB {2, 3}= does not exist GLB {2, 3} = does not exist
PROBLEMS:
1. Let A={1,2,3,…11} be the poset with a following hasse diagram find the LUB and GLB of
B={6,7,10} if they exist
136
We find LUB(B)=10.
2. Find the LB and UB of sets{1,2,3} and {1,3,4,6} in the poset with hasse diagram
Solution:
Lattices:
A partially ordered set {L, } in which every pair of elements has a least upper bound and a greatest
lower bound in L is called a lattices and it is denoted by (L, , ) . Here is denoted by greatest lower
bound and denoted by least upper bound.
Example:
137
L B { c, d} = c G L B { c, d} = d
L B { b, a} = a G L B { b, a} = b
L B { a, c} = a G L B { a, c} = c
L B { a, d} = a G L B { a, d} = d
L B { b, c} = a G L B { b, c} = d
(i) (S6, D)
Soln: S6 = { 1, 2, 3, 6 }
138
Sub-Lattices
Ie. S is closed for the operations of meet and join. The Lattice (D 30, /) is a sublattice of the lattice
+
(Z , /) under the relation of divisibility.
Principle of Duality:
Dual Lattice:
If (L, ) is a Lattice, then the lattice defined by (L, ) where the partial ordering is the dual of
the partial ordering is called the dual Lattice.
Example:
( P (s), ) is a lattice, then its dual lattice is ( P(s), ) where (is contained in) and (is
contains). Further in the dual lattice, ( P(s), ) the join A B is the set A B and the meet A B is
the set A B.
Properties of Lattices:
1. Idempotent property
a a= a; a a = a
2. Commutative property
a b = b a ; a b = b a
3. Associative property
(a) a (b c) = (a b) c;
(b) a (b c) = (a b) c
4. Absorption property
(a) a (a b) = a;
(b) a (a b) = a.
Proof:
139
a b is LUB of a and b.
a b b (1)
Since a b is an UB,
b a b (2)
a b = b Iff a b
a a, a a b -------------------------- (3)
since a b is a Lb.
a b a (4)
From (3) and (4), a b = a
a b = a If a b.
Proof:
First we prove a b a b = a
We assume that a b
a b, a a, a a b ---------------- (1)
a b a ------------------- (2)
a b=a
a b a b = a.
Conversely, assume a b = a.
a b=a a b
Hence a b a b = a
140
We next prove a b = a a b = b.
Suppose a b = a, then
b = b (a b) [ by absorption Law]
= b a.
a b = b.
Conversely, assume a b = b.
a = a (a b) [ by absorption Law]
=ab
a b=a
a b = a a b = b
Hence a b a b = a a b = b.
Isotonicity Property:
a b a c a b a c
b c a b a c (or) b c
a b a c
Proof: Assume that b c
Consider, a b a c
a b a c
a a b c
a a b c a b.
a b a c a b
a b a
a b
a b a c
We know that b c b c c
141
Consider, a b a c
a b a c
a a b c
a a b c
ac
a b b
a b a c a c
a b
a b a c
Hence , b c a b a c
then, a b c a b a c
and a b c a b a c
Proof:
a a b a c (1)
but, b c b a b
and b c c a c
b c a b a c (2)
From (1) and (2)
a b c a b a c (3)
a b c a b a c
a a b a c (4)
but,
b c b a b
bc c ac
b c a b a c (5)
From (4) and (5)
a b c a b a c Hence the proof
142
Theorem:
Proof:
Consider, a c b d
a c b d
a b c d
a b c d
b d
a c b d
(iv) a b a b a
cd c d c
Consider, a c b d a c b d
a b c d a b c d a c
a c bd
143
Theorem:
Proof:
a b c a c c c (by absorptionlaw)
a b c a c b c
a b b c (given)
b a b c
b a c
b a b
b
b c
Proof:
a b c a b a c
a b c
a b c a b c
a (b c) (a b) c
(a b) (a c) (a b) c
ac c
144
Solution:
LATTICE HOMOMORPHISM
Special Lattices
Complete Lattice
A lattice L is called complete lattice. If each of its non-empty subset has GLB & LUB. Every
finite lattice must be a complete lattice.
A Lattice L is said to have a LB ‘ 0’ if for every xL we have 0 x. An element 1L is called
an UB of L if x 1, xL.
Bounded Lattice:
Example:
Distributive Lattice:
b1 (b2 b3 ) b1 1 b1
(b1 b2 ) (b1 b3 ) 0 0 0
b1 (b2 b3 ) (b1 b2 ) (b1 b3 )
L.H.S b (a c) b a b
Problems:
proof:
Let a, b, c L
a (b c) a
(a b) (a c) a a a
(a (b c) (a b) (a c)
146
b c a
a (b c) b c
(a b) (a c) b c a (b c) (a b) (a c)
Complement of an element:
Let L be a bounded lattice with LB=0 and UB=1. Let aL .The element x L is called the
complement of a L if a x=0 and a x=1
Complemented Lattice
A lattice L is said to be complemented if it is bounded and every element in it has at least one
complement.
Soln: Since every element of D30 has complement ( D30 ,/) is a complemented lattice
Problems:
1. Prove that in a bounded distributive lattice, the complement of any element is unique .
Solution:
To prove: b=c
147
a b 0, a b 1, a c 0,& a c 1
Now b b 1
b (a c)
(b a) (b c)
(a b) (b c)
0 (b c) (a c) (b c)
1 c
c
b c
Modular lattice:
a c a (b c) (a b) c
To prove: a (b c) (a b) c
148
a c a c c
a b c a b a c
a b c
a c a b c a b c
L is a mod ular lattice.
Problems.
R.H.S a b b c c a
Definition:
Let B be a non-empty set that contains two special elements 0 (0element) &1 (the unity) and on which
we define closed binary operations +, and a unary operation
“-“(complementation) then (B, +, -, 0, 1) is called a boolean algebra, if the following conditions are
satisfied
For all x, y, z B
In every Boolean algebra B, if x, y, zB then the following laws hold good.
(ii) x.(x y) x
(Absorption laws)
x (x.y) x
149
x y x z
(iii) xy z y=z (Cancellation Laws); y=z
xy xz x y x z
(iv) x.(yz)=(x.y).z (Associative Laws); x+(y+z)= (x+y)+z
(x y) x.y (Demorgan’s Law) (viii) 0 =1; 1=0
(vii)
x.y x y
+ 0 1 . 0 1 x x
0 0 1 0 0 0 0 1
1 0 1 1 0 1 1 0
Problems
a+(a.b)=a; a.(a+b)=a
Solution:
Consider (a+b). (a’.b’) = (a’.b’). (a+b) = a’.b’.a+ a’.b’.b = (a’.a).b’+ a’ .(b’.b) = 0.b’+a’.0 = 0
(a+b)’=(a’.b’)
=( a’+ b’+a). (a’+ b’+b) =( a’ +a+ b’). (a’ +b+ b’) =(1+ b’).( a’+1)
=1.1=1 (a.b)’=(a’+b’)
150
3. In a boolean algebra, show that the following statements are equivalent for any a and b.
Solution:
a=a.(a+b) = a.b
a.b=a
a’+b=(a.b’)+b = a’+b’+b
a’+b=a’+1
a’+b=1
(a’ + b) 1 = (1) 1
=0
(a. b) 1 = 0
Then a. b = a. b + 0 = a. b + a. b’ = a. (b + b’)
a.b = a
ab
a + b = b and a. b = a
= a’. (a + b) + ( a + b) .c
= a’. a + a’. b + a. c + b. c
= 0 + a’. b + a. c + b. c
= a’. b + a. c + b. c = a. c + a’. b + b. c
151
5.P.T in a Boolean Algebra (a + b’) . (b + c’). (c + a’) = (a’ + b). (b’ + c). (c’ + a)
Solution:
= abc + 0 + 0 + 0 + 0 + a’b’c’
= a’b’c’ + 0 + 0 +0 + 0 + abc
Solution:
= a’b’ + b’c
7. Prove that D42 = (S42, D) is a complemented lattice by finding the complements of all elements.
152
The zero element of the lattice is 1 and the unit element of the lattice is 42.
The complement of 1 = 42
8. Show that the direct product of any two distributive lattices is a distributive lattice.
Sol: Let L1 and L2 be two distributive lattices. Let x, y, z L1 x L2 the direct product of L1 and
L2.Then x = (a1, a2), y = (b1, b2) and z = (c1, c2) for some a1b1c1 L1 and a2b2c2 L2
Now x ( y z)
(a1 , a2 ) (b1 , b2 ) (c1, c2 )
(a1 (b1 c1 ), a2 (b2 c2 ))
((a1 b1 ) (a1 c1 ), (a2 b2 ) (a2 c2 ))
153