Professional Documents
Culture Documents
DM Aprt-A Full
DM Aprt-A Full
DM Aprt-A Full
Definition
A proposition (statement) is a declarative sentence that is either true or false, but not both.
Many mathematical statements are constructed by combining one or more propositions, new propositions,
called compound propositions, are formed from existing propositions using logical operators.
A table, giving the truth values of a compound statement interms of its component parts, is called a "Truth
table'.
The negation of a statement is generally formed by introducing the word 'not' at a proper place in the
statement.
Table 1
The conjunction of two statements P and Q is the statement P ˄Q which is read as "P and Q". The statement
P˄Q has the truth value T whenever both P and Q have the truth value T; otherwise it has the truth value F.
Table 2
The disjunction of two statements P and Q is the statement PVQ which is read as "P or Q".The statement PVQ
has the truth value F only when both P and Q have the truth value F; otherwise it is true.
Table 3
conditional statement.The statement P→ Q has a truth value F when Q has the truth value F and P the truth value T,
If P and Q are any two statements, then the statement P <-> Q, which is read as, "P if and only if Q" and
The statement P <-> Q has the truth value T whenever both P and Q have identical truth values.
Exclusive or of P and Q [P ⊕ Q]
Let P and Q be propositions. The exclusive or of P and Q, denoted by P ⊕Q, is the proposition that is true when
Table 6
Contrapositive
Example 1: Give the converse and the contrapositive of the implication "If it is raining, then I get wet".
Solution : P: It is raining.
Q: I get wet.
Example 3: State the truth value of "If tigers have wings then the earth travels round the sun".
Q: The earth travels round the sun "F". The given statement is P → Q, has the truth value "T"
"You cannot ride the roller coaster if you are under 4 feet tall unless you are older than 16 years old".
Solution: Let
a: You can ride the roller coaster
(b˄┐c) → a
Solution :
Solution :
Solution :
Solution :
Solution :
Solution: Since there are two variables, therefore there are 2 2 possible truth values.
Solution :
Example 8: Construct the truth table for P˄ (P v Q) [M.C.A] [M.U. 94]
Solution :
Solution :
Tautology:
A statement that is true for all possible values of its propositional variables is called a tautology or universally valid
Contradiction
Solution :
In the resulting column all the entries are T. Therefore Pv┐P is a tautology.
Solution :
In the resulting column all the entries are F. Therefore PAP is a contradiction.
Tautological Implications
A statement A is said to tautologically imply a statement B if and only if A → B is a tautology. In this case, we write
Solution :
Example 8 : Show that (P V Q) Ʌ ┐P ↔ ┐P ^ Q.
Solution :
Example 9: Show that (PVQ) Ʌ (┐P^(┐P^Q)) ↔ (┐P^Q) [MCA, M.U May, 1995]
Solution :
Example 10: Show that ((P v Q) ^ ┐ (┐P ^ (┐Q v ┐R))) V (┐P ^ ┐Q) v (┐P^┐R) is a tautology.
Solution :
(i) (┐P ^ ┐Q) v (┐P^┐R) ↔ ┐(P v Q) v ┐(P v R) ↔ ┐((P v Q) ^ (P v R)) De Morgan's law
Also
P v (Q ^ R) since ┐(P ^ R) ↔ ┐P v ┐R
(P v Q) ^ (P v R) Distributive law
↔T [P v ┐P↔ T]
Tautological Implications
A statement A is said to tautologically imply a statement B if and only if AB is a tautology. In this case, we write A ↔
since (P^Q) → R ↔ P→ (Q → R)
┐A* (P1, P2, …. Pn) ↔ ┐B* (P1, P2, ... Pn) is a tautology.
Example 1: Write an equivalent formula for P Ʌ (Q↔R) V (R↔P) which does not contain the biconditional.
Solution :
Example 2: Write an equivalent formula for P Ʌ (Q↔R) which contains neither the biconditional nor the conditional.
Example 4: Show that {V, A} is not functionally complete. [A.U. N/D 2004]
Solution : ┐ caɅot be expressed using the connectives {V, Ʌ }. Since no such contribution of statement exist with {V, Ʌ }
NORMAL FORMS
A product of the variables and their negations in a formula is called an elementary product. (product means
conjunction).
Example: Let P and Q be any two atomic variables. Then P, ┐P^Q, ┐Q^P, P^┐P and Q^┐P are elementary
products.
A sum of the variables and their negations in a formula is called an elementary sum. (Sum means disjunction).
Example: Let P and Q be any two variables. Then P, ┐PVQ, ┐QVP, PV┐P and QV┐P are elementary sums.
Definition: Factor
Any part of an elementary product or elementary sum, which is itself an elementary product of sum is a factor
Definition
A formula which is equivalent to a given formula and which consists of a sum of elementary products is called
2. Apply negation to the formula or to a part of the formula and not to the variables.
↔ (P^┐P) V (PɅQ)
Example 7: Obtain the disjunctive normal form of (┐P v ┐Q) → (┐P ^ R).
↔ (P v ┐Q) v (P v Q) (P → Q) ↔ ┐P v Q
(P↓ Q) ↔ ┐ (P v Q)
↔ ┐ (┐P ^ Q) v (┐P ^ ┐Q) De Morgan law
A formula. which is equivalent to a given formula and which consists of a product of elementary sums is called
↔ P Ʌ ( ┐P v Q)
Solution :
↔ (Q V ((P V ┐P) ┐Q) (P Ʌ ┐Q) V (┐P ^ ┐Q) ↔ (P V ┐P) Ʌ ┐Q) distributive law
↔ (Q V (P V ┐P) Ʌ (Q v ┐Q)
Example 4: Obtain a CNF for (P → (Q^R)) ^ (┐P → ┐Q ^ ┐R)) [A.U N/D 2003]
Example 5: Obtain a conjunctive normal form of the formula.P → ((P →Q) ^ ┐(┐Q v ┐P))
Solution :
Solution :
Example 7: Show that the formula Q Ʌ (P Ʌ ┐Q) V (┐P Ʌ ┐Q) is a tautology, by obtaining a conjunctive normal form, of
the formula :
(Q v P v ┐P) ^ (Q v ┐Q)
Min terms
Let P and Q be two statement variables. Construct all possible formula which consist of conjunctions of P or its
negation and conjuctions of Q or its negation. None of the formula should contain both a variable and its negation.
Delete a formula if it is the commutative of any one of the remaining formulae. Such conjunctions of P and Q are called
Example :
Note:
(i) PɅQ or QɅP is included but not both. (ii) PɅ┐P and QɅ┐Q are not allowed.
(iii) No two minterms are equivalent. (iv) Each minterm has the truth value T for exactly one combination of the truth
Minterms of P and Q.
A formula which is equivalent to a given formula and which consists of sum of its min terms is called "principal
disjunctive normal form" (or) "sum of product of canonical form" of the given formula. Construction of PDNF without
truth tables:
(i) to replace conditionals and biconditionals by their equivalent formula involving Ʌ, V, ┐only.
(v) to delete identical minterms keeping only one, that appear in the disjunctions.
Maxterms
For a given number of variables, the maxterm consists of disjunctions in which each variable or its negation,
Maxterms of P and Q.
An equivalent formula consisting of conjunctions of max terms only is known as its principal conjunctive
Method 2:
Let S ↔ ┐PVQ
┐S ↔ PɅ┐Q
Solution: Let S ↔ P ↔ Q
Example 7. Obtain the principal disjunctive and conjuctive normal forms [P→ (QɅR)] ^ [┐P → (┐Q^┐R)]
Solution :
A ↔ P→ (QɅR)
B ↔ ┐Q ^ ┐R
C ↔ ┐P → (┐Q^R)]
i.e., ↔ A ^ C
Normal forms: PCNF, PDNF are unique except for the rearrangements of the factors in the disjunctions / conjunctions
NORMAL FORMS
conjunction).
Example: Let P and Q be any two atomic variables. Then P, ┐P^Q, ┐Q^P, P^┐P and Q^┐P are elementary products.
A sum of the variables and their negations in a formula is called an elementary sum. (Sum means disjunction).
Example: Let P and Q be any two variables. Then P, ┐PVQ, ┐QVP, PV┐P and QV┐P are elementary sums.
Definition: Factor
Any part of an elementary product or elementary sum, which is itself an elementary product of sum is a factor
Definition: A formula which is equivalent to a given formula and which consists of a sum of elementary products
2. Apply negation to the formula or to a part of the formula and not to the variables.
↔ (P^┐P) V (PɅQ)
Example 7: Obtain the disjunctive normal form of (┐P v ┐Q) → (┐P ^ R).
↔ (P v ┐Q) v (P v Q) (P → Q) ↔ ┐P v Q (P↓ Q) ↔ ┐ (P v Q)
A formula. which is equivalent to a given formula and which consists of a product of elementary sums is called a
Solution :
↔ (Q V ((P V ┐P) ┐Q) (P Ʌ ┐Q) V (┐P ^ ┐Q) ↔ (P V ┐P) Ʌ ┐Q) distributive law
↔ (Q V (P V ┐P) Ʌ (Q v ┐Q)
Example 4: Obtain a CNF for (P → (Q^R)) ^ (┐P → ┐Q ^ ┐R)) [A.U N/D 2003]
Solution :
Solution :
Example 7: Show that the formula Q Ʌ (P Ʌ ┐Q) V (┐P Ʌ ┐Q) is a tautology, by obtaining a conjunctive normal form, of
the formula :
(Q v P v ┐P) ^ (Q v ┐Q)
Min terms
Let P and Q be two statement variables. Construct all possible formula which consist of conjunctions of P or its
negation and conjuctions of Q or its negation. None of the formula should contain both a variable and its negation.
Delete a formula if it is the commutative of any one of the remaining formulae. Such conjunctions of P and Q are called
Example :
Note:
(iv) Each minterm has the truth value T for exactly one combination of the truth values of the variables P and Q.
Minterms of P and Q.
A formula which is equivalent to a given formula and which consists of sum of its min terms is called "principal
disjunctive normal form" (or) "sum of product of canonical form" of the given formula. Construction of PDNF without
truth tables:
(i) to replace conditionals and biconditionals by their equivalent formula involving Ʌ, V, ┐only.
(v) to delete identical minterms keeping only one, that appear in the disjunctions.
Maxterms
For a given number of variables, the maxterm consists of disjunctions in which each variable or its negation, but not
Maxterms of P and Q.
An equivalent formula consisting of conjunctions of max terms only is known as its principal conjunctive
Method 2:
Let S ↔ ┐PVQ
┐S ↔ PɅ┐Q
Solution: Let S ↔ P ↔ Q
Example 1. Show that (∀x) (P(x)) → (Ǝx) (P(x)) is a logically valid statement.
Solution :
If ∀x P(x) is true in some particular universe, then the universe has atleast one object c in it and P(b) is a true
statement for every b in the universe. In particular P(c) must be true. Thus (Ǝx) (P(x)) is true. Therefore
Example 2. Show that (∀x) (P(x)) V (∀x) (Q(x)) → (∀x) (P(x)) V Q(x)) is logically valid.
Solution :
Consider the case when (∀x) (P(x)) v (∀x) (Q(x)) is true. Since this is a disjunction of if-statements, one of the
If (∀x) (P(x)) is true, then for every object b in the universe, P(b) is true, and hence P(b), v Q(b) is true. Similarly when
(∀x) (Q(x) is true, P(b) v Q(b) is true for every object b. In both the cases P(b) v Q(b) is true for all b in the universe.
is a valid statement.
Example 3. Show by counterexample (∀x) (P(x)) v Q(x)) → (∀x) (P(x)) V (∀x) (Q (x)) is not valid.
For this universe, the statement (∀x) (P(x) v Q(x)) is true, but both (∀x) (P(x)) and (∀x) (Q(x)) are not true. So (∀x) (P(x) V
(Q (x)) is true,
Example 4. Prove that the statements (a) (∀x) (P(x)) → P(y) (b) P(y) → (Ǝx) (P(x))
are valid statements. (y represents any one of the objects in the given universe)
Solution :
(a) The logical validity of the first statement follows immediately from the fact that if ( ∀x) (P(x))) is true, then P(b) is
true for every object b in the universe and hence it is true for any specific object y in the universe.
(b) The logical validity of the second statement is a consequence of the meaning of the existential quantifier. The
statement (Ǝx) (P(x)) is true if and only if there exists atleast one object in the universe for which P(x) is true.
Nested Quantifiers
Nested quantifiers are propositional functions where one or more quantifiers occurs within the scope of another
quantifier.
Two quantifiers are nested if one is within the scope of the other, such as ∀x Ǝy (xy = 0)
Example 1. Express the statement "Everyone has exactly one best friend" as a logical expression involving logical
expression involving predicates, quantifiers with a domain consisting of all people and logical connectives.
Solution : Rewrite the given statement "For every person x, x has exactly one best friend." Attention "exactly one"!.
Let B (x, y) :y is the best friend of x. So if a person z is not the person y, then z is not the best friend of x. Thus
∀x Ǝ!y B(x, y)
Example 2. Translate the statement. "Every real number except zero has a multiplicative inverse." (A multiplicative
rewrite this as "For every real number x, if x ≠ 0, then there exists a real number y such that xy= 1." This can be
rewritten as
into English, where C (x) is "x has calculator" F (x, y) is "x and y are friends", and the domain for both x and y consists
Solution: The statement says that for every student x in your school, x has a calculator or there is a student y such
that y has calculator and x and y are friends. In other words, every student in your school has a calculator or has a
Ǝx ∀y ∀z ((F(x, y) ^ F (x, z) ^ (y ≠ z)) → F (y, z)) into English, where F (x, y) means x and y are friends and the domain for x
Solution: There is a student none of whose friends are also friends with each other.
Example 3. Translate these statements into English, where the domain for each variable consists of all real numbers.
Solution: (a) For every real number x and real number y, there exists a real number z such that xy = z (b) For every
real number x there exists a real number such that x is less than y.
(c) For every real number x and real number y, if x and y are both non-negative, then their product is non-negative.
Negating Nested Quantifiers: To negate a sequence of nested quantifiers, you flip each quantifier in the sequence and
then negate the predicate. So the negation of ∀x Ǝy: P (x,y) is Ǝx ∀y: P(x,y) and So the negation of Ǝx ∀y: P(x, y) is ∀x Ǝy:
Rules of inference
The main function of logic is to provide rules of inference, or principles of reasoning. The theory associated
with such rules is known as inference theory because it is concerned with the inferring of a conclusion from certain
premises.
If a conclusion is derived from a set of premises by using the accepted rules of reasoning, then such a process
of derivation is called a deduction or a formal proof and the argument or conclusion is called a valid argument or valid
conclusion.
Definition :
Let A and B be two statement formulas. We say that "B logically follows from A" or "B is a valid conclusion
(consequence) of the premise A" iff A → B is a tautology, that is A → B. Just as the definition of implication was
extended to include a set of formulas rather than a single formula, we say that from a set of premises {H 1, H2, … Hm} a
Example 1.
"It is below freezing now. Therefore, it is either below freezing or raining now".
Q: It is raining now
Example 2.
State which rule of inference is the basis of the following argument :
"It is below freezing and raining now. Therefore, it is below freezing now."
Q: It is raining now
Example 3: Demonstrate that R is a valid infernece from the premises P→ Q, Q→R and P.
Solution :
Example 4: Show that R V S follows logically from the premises CVD, (CVD) → ┐H, ┐H → (A^┐B) and (A^┐B) → (RVS).
Solution :
The two tautologies frequently used in the above derivations are I 13, known as hypothetical syllogism, and I 11, known
as modus ponens.
Definition :
A set of formulas H1, H2 ... Hm is said to be consistent if their conjunction has the truth value T for some
assignment of the truth H m values to the atomic variables appearing in H 1, H2, ... Hm . If for every assignment of the
truth values to the atomic variables, atleast one of the formulas H 1, H2, … Hm is false, so that their conjunction is
identically false, then the formulas H1, H2, ... Hm are called inconsistent.
In other way, a set of formulas H 1, H2, ... Hm is inconsistent if their conjunction implies a contradiction, that is
H1 ^ H2 ^ … ^ Hm → R^┐R where R is any formula. Note that R^┐R is a contradiction, and it is necessary and sufficient
The notion of inconsistency is used in a procedure called proof by contradiction or reduction and absurdum or indirect
method of proof.
2. From the new premise, together with the given premises, derive a contradiction.
3. Assert the desired conclusion as a logical inference from the premises.
Solution: We introduce ┐┐(P^Q) as an additional premise and show that this additional premise leads to a
contradiction.
The new premise, together with the given premises, leads to a contradiction. Thus (┐Q), P→ Q, PVR ⇒ R
Example 1: Determine the validity of the following argument. If two sides of a triangle are equal, then opposite angles
are equal.
From the truth table we can infer that ((P → Q) ^ (┐P)) → ┐Q is not a tautology.
"My father praises me only if I can be proud of myself. Either I do well in sports or I ca^ot be proud of myself. If
study hard, then I cannot do well in sports. Therefore, if father' praises me, then I do not study well".
Solution: Let
C : I do well in sports.
D : I study hard.
then the given premises are A → B, C V ┐B, D → ┐C and the conclusion is A→ ┐D.
If the contract is valid, then John is liable for penalty. If John is liable for penalty, he will go bankrupt. If the bank will
loan him money, he will not go bankrupt. As a matter of fact, the contract is valid and the bank will loan him money.
B: He will go bankrupt.
Hence it is inconsistent.
Example 4. Show that the following sets of premises are inconsistent. P→ Q, P→R, Q → ┐R, P
Solution :
Thus the given set of premises leads to a contradiction and hence it is inconsistent.
Example 5. Show that the following implication by using indirect method. (R→ ┐Q), RVS, S→ ┐Q, P→ Q ⇒ ┐P
Solution : To use the indirect method, we will include ┐┐P ↔ P as an additional premise and prove a contradiction.
Example 6. Show that the hypothesis (P^Q) VR and R→S imply the conclusion PVS
Solution :
Example 1.
"It is below freezing now. Therefore, it is either below freezing or raining now".
Q: It is raining now
Example 2.
Q: It is raining now. PɅQ/P This is an argument that uses the simplification rule.
Rule T: A formula S may be introduced in a derivation if S is a tautologically implied by any one or more of the
Rule CP: If we can derive S from R and a set of premises, then we can derive R→S from the set of premises alone.
Example 3: Demonstrate that R is a valid infernece from the premises P→ Q, Q→R and P.
Solution :
Example 4: Show that R V S follows logically from the premises CVD, (CVD) → ┐H, ┐H → (A^┐B) and (A^┐B) → (RVS).
Solution :
The two tautologies frequently used in the above derivations are I 13, known as hypothetical syllogism, and I 11, known
as modus ponens.
Solution :
Example 6 : Show that R^ (P v Q) is a valid conclusion from the premises P V Q, Q→ R, P→ M and ┐M. [A.U. N/D 2007]
Solution :
Solution :
Example 8: Show that R→ S can be derived from the premises P→ (Q→S), ┐R, v P and Q. [A.U. N/D, 2005]
Solution : Instead of deriving R→ S, we shall include R as an additional premise and show S first.
Consistency of Premises and Indirect Method of Proof.
Definition :
A set of formulas H1, H2 ... Hm is said to be consistent if their conjunction has the truth value T for some assignment of
the truth Hm values to the atomic variables appearing in H1, H2, ... Hm .
If for every assignment of the truth values to the atomic variables, atleast one of the formulas H 1, H2, … Hm is false, so
that their conjunction is identically false, then the formulas H 1, H2, ... Hm are called inconsistent.
Example 1: Determine the validity of the following argument. If two sides of a triangle are equal, then opposite angles
are equal.
Q: The two opposite angle are equal. The premises can be represented as P → Q and ┐P and the conclusion as ┐Q. If
From the truth table we can infer that ((P → Q) ^ (┐P)) → ┐Q is not a tautology.
"My father praises me only if I can be proud of myself. Either I do well in sports or I ca^ot be proud of myself. If study
hard, then I cannot do well in sports. Therefore, if father' praises me, then I do not study well".
Solution: Let
C : I do well in sports.
D : I study hard.
If the contract is valid, then John is liable for penalty. If John is liable for penalty, he will go bankrupt. If the bank will
loan him money, he will not go bankrupt. As a matter of fact, the contract is valid and the bank will loan him money.
B: He will go bankrupt.
Hence it is inconsistent.
Example 4. Show that the following sets of premises are inconsistent. P→ Q, P→R, Q → ┐R, P [A.U. M/J. 2006]
Solution :
Thus the given set of premises leads to a contradiction and hence it is inconsistent.
Example 5. Show that the following implication by using indirect method. (R→ ┐Q), RVS, S→ ┐Q, P→ Q ⇒ ┐P [A.U. M/J.
2006]
Solution : To use the indirect method, we will include ┐┐P ↔ P as an additional premise and prove a contradiction.
Example 6. Show that the hypothesis (P^Q) VR and R→S imply the conclusion PVS
Solution :
Let P (n) be a statement or proposition involving for all positive integrs n. Then we complete two steps.
1-1= 0 is divisible by 3.
which is divisible by 3.
By the principle of mathematical induction P (n) is true for all positive integer n.
Solution: Each of the seven bits can be chosen in two ways, because each bit is either 0 or 1.
The product rule shows there are a total of 27 = 128 different bit strings of length seven.
3. How many different 8-bit strings are there that begin and end with one.
Solution: A 8-bit string that begins and end with 1 can be constructed in 6 steps, (i.e.,)
By selecting IInd bit, IIIrd bit, IV bit, Vth bit, VIth bit and VIIth bits and each bit can be selected in 2 ways.
Hence, the total number of 8-bit strings that begins and end with 1 is equal to 2.2.2.2.2 = 26 = 64.
4. How many different 8-bit strings are there that end with 0111 ?
Solution: A 8-bit strings that end with 0111 can be constructed n 4 steps.
By selecting Ist bit, IInd bit, IIIrd bit and IVth bit and each bit can be selected in 2 ways.
The total number of 8-bit strings that end with 0111 is equal to 2.2.2.2 = 2 4 = 16.
5. How many different 2-digit numbers can be made from the digits 1, 2, 3, 4, 5, 6, 7, 8, 9, 0? When repetition is
The tens place can be filled by 10 ways and the units place can be filled by 10 ways.
The tens place can be filled by 10 ways and the units place can be filled by 9 ways.
6. How many different license plates are available if each plate contain a sequence of three letters followed by three
digits (and no sequences of letters are prohibited, even if they are obscene)?
Solution: There are 26 choices for each of the three letters. There are 10 choices for each of the three digits. Hence,
by the product rule there are a total (26) (26) (26) (10) (10) (10) = 17,576,000 possible license plates.
7. How many one-to-one functions are there from a set with m elements to one with n elements ?
Solution :Case (i) : When m>n there are no one-to-one functions from a set with m elements to a set with n elements.
Case (ii) : When m≤n . Suppose the elements in the domain are a1, a2, ….. am.
There are n ways to choose the value of the function at a1. The value of the function at a2 can be picked in n - 1 ways.
By the product rule, there are n (n-1) (n-2)... (n - m + 1) one-to-one functions from a set with m elements to one with n
elements.
8. In how many ways can we draw a heart or a shade from an ordinary deck of playing cards? A heart or an ace ? An
Solution: Since there are 13 hearts and 13 spades. We may draw a heart or a spade in 13 + 13 = 26 ways. We may draw
a heart or an ace in 13 + 3 = 16 ways, since there are only three aces that are not hearts. We may draw an ace or a
king in 4 + 4 = 8 ways.
9. Suppose that either a member of the Chemistry faculty or a student who is a Chemistry major is chosen as a
representative to a University committee. How many different choices are there for this representative if there are 23
members of the Chemistry faculty and 80 Chemistry majors and no one is both a faculty member and a student ?
Solution: There are 23 ways to choose a member of the Chemistry faculty and there are 80 ways to choose a student
who is Chemistry major. To choose a member of the Chemistry faculty is never the same as choose a student who is a
Chemistry major because no one is both a faculty member and a student. By the sum rule it follows that there are 23+
10. In a survey of 200 musicians, it was found that 40 wore gloves on the left hand and 39 wore gloves on the right
hand. If 160 wore no gloves at all, how many wore a glove on only the right hand? Only the left hand ? On both hands?
Sol. Total number of musicians wore gloves on left, right or both hands (i.e.,)
| L∩R | = | L | + | R | - | LUR | = 40 + 39 - 40 = 39
11. 40 computer programmers interviewed for a job. 25 knew JAVA, 28 knew ORACLE, and 7 knew neither language.
Solution: Now
| J | = 25 ['.' J → JAVA]
| O | = 28 ['.' O → ORACLE]
| J U O | = 40 – 7 = 33
| J U O | = 25 + 28 - 33 = 20.
If k is a positive integer and k + 1 or more objects are placed into k boxes, then there is atleast one box containing two
one object. Hence. the total number of objects would be atmost k. This is a contradiction, since there are atleast k + 1
objects.
13. Theorem: If n pigeons are assigned to m pigeonholes, and m<n, then atleast one pigeonhole contains two or more
pigeons.
Proof : We will prove this principle using a proof by contradiction. Suppose each pigeonhole contains atmost one
pigeon. Then atmost m pigeons have been assigned. But since m <n, not all pigeons have been assigned pigeonholes.
This is a contradiction.
If k pigeons are assigned to n pigeonholes, then one of the pigeonholes must contain atleast [k-1/n] + 1 pigeons.
Proof: If possible, suppose that none of the pigeonholes contains more than [k-1/n]pigeons. Then there will be atmost
15. Theorem: If n objects are placed into k boxes, then there is atleast one box containing atleast n/k objects.
Proof: Assume that none of the boxes contains more than [n/k] - 1 objects.
k[(n/k) – 1] < k [(n/k + 1) – 1] = n, where the inequality [n/k] < [n/k] + 1 has been used. This is a contradiction, because
Solution : 1. Among any group of 367 people, there must be atleast two with the same birthday, because there are only
2. In any group of 27 English words, there must be atleast two that starts with the same letter, since there are 26
17. Show that among 13 children, there are atleast two children who were born in the same month.
Solution: Let us assume that 13 children as pigeons and the 12 months (January, ... December) as the pigeonholes then
by the pigeonhole principle there will be atleast two children who were born in the same month.
18. Show that if any four numbers from 1 to 6 are chosen, then two of them will add to 7.
A = {1, 6}, B = {2, 5}, C = {3, 4}.The four numbers that will be chosen to the set that contains it. As there are only 3 sets,
two numbers that there chosen is from the set whose sum is 7.
19. Show that among any group of five (not necessarily consecutive) integers, there are two with the same remainder
when divided by 4.
Solution: Take any group of five integers. When these are divided by 4 each have some remainder. Since there are five
integers and four possible remainders when an integer is divided by 4, the pigeonhole principle implies that given five
20. A bag contains 12 pairs of socks (each pair is in different color). If a person draws the socks one by one at
random, determine atmost how many draws are required to get atleast one pair of matched socks.
Solution: Let n denote the number of the draw. For n ≤ 12, it is possible that the socks drawn are of different colors,
since there are 12 colors. For n 13, all socks cannot have different colors atleast two must have the same color. Here
13 as the number of pigeons and 12 colors as 12 pigeonholes. Thus, atmost 13 draws are required to have atleast one
21. Show that for every integer n there is a multiple of n that has only 0 s and 1 s in its decimal expansion.
Solution: Let n be a positive integer.
remainders when an integer is divided by n. Since there are n+1 integers in this list, by the pigeonhole principle there
The larger number of these integers less the smaller one is a multiple of n, which has a decimal expansion consisting
22. Prove the statement : If m = k n+1 pigeons (where k ≥ 1) occupy n pigeonholes then atleast one pigeonhole must
Solution: Let us assume that the conclusion of the given statement is false.
Then every pigeonhole contains k or less number of pigeons. Then, the total number of pigeons would be nk. This is a
contradiction. Hence, the assumption made is wrong, and the given statement is true.
23. Let n1, n2 … nt be possible integes. Show that if n 1 + n2 + … + nt – t + 1 objects are placed int t boxes, then for some
Solution: Assume that the conclusion part of the given statement is false. Here n 1, n2,… are pigeons t boxes are
pigeonholes. Then every hole contains n j-1 or less number of pigeons, j = 1, 2, ... n. Then the total number of pigeons
This is a contradiction. Since the number of pigeons is equal to m. Hence the assumption made is wrong, and the given
statement is true.
24. Show that if seven colors are used to paint 50 cars, atleast eight cars will have the same colour.
Solution: Assume that 50 cars (pigeons) are assign 7 colors (pigeonholes). Hence, by the generalised pigeonhole
25. Show that among any n + 1 positive integers not exceeding 2n there must be an integer that divides one of the
other integers.
Solution: Let the (n + 1) integers be a 1, a2, … an+1 as power of 2 times an odd integer. Let a j = 2kj qj for j =1, 2, … n + 1,
where kj is a non-negative integer and q j is odd. The integers q 1, q2, .... qn+1 are all odd positive integers less than 2n.
Since there are only n odd positive integers less than 2n. From the pigeonhole principle that two of the integers q 1,
There are integers i and j such that qj = qj. Let q be common value of qi and qj. Then, ai = 2ki q and aj =2kj q.
From this k1 < kj, then aj divides aj ; while if k1 > kj, then aj divides ai.
26. Seven members of a family have total Rs. 2,886 in their pockets. Show that atleast one of them must have atleast
members - → pigeonholes
Rupees - → pigeons
2886-1 /7 +1 = 416
27. If 9 books are to be kept in 4 shelves, there must be atleast one shelf which contain atleast 3 books.
books - → pigeons
shelves - → pigeonholes
k-1/n + 1 when k = 9, n = 4
9-1/4 + 1 = 8/4 +1 = 3
28. How many people must you have to guarantee that atleast 9 of them will have birthdays in the same day of the
week.
people - → pigeons
k-1/7 + 1 = 9
k-1+7/7 = 9
k+6 = 63
k = 63-6 = 57
Thus, there must be 57 people to guarantee that atleast 9 of them will have birthdays in the same day of the week.
29. Show that if 30 dictionaries in a library contain a total of 61327 pages, then one of the dictionaries must have
pages - → pigeons
dictionaries - → pigeonholes
Assign each page to the dictionary in which it appears. Then by extended pigeonhole principle, one dictionary must
contain atleast
30. What is the maximum number of students required in a mathematics class to be sure that atleast six will receive
the same grade, if there are five possible grades. A, B, C, D and F? [A.U N/D 2012]
Solution: The minimum number of students wanted to ensure that atleast six students receive the same grade is the
smaller integer N such that [N/5] = 6. The smallest such integer is N = 5.5+1 = 26. If you have only 25 students, it is
possible for there to be five who have received each grade so that no six students have received the same grade.
226 is the minimum number of students needed to ensure that atleast six students will receive the same grade.
31. How many persons must be chosen in order that atleast five of them will have birth days in the same calendar
month?
Solution: Let n be the required number of persons. Because the number of months over which the birthdays are
distributed is 12, the least number of persons who have their birthdays in the same month, is by the generalized
32. Find the least number of ways of choosing three different numbers from 1 to 10 so that all choices have the same
sum
Solution: From the numbers from 1 to 10, we can choose three different numbers in C (10, 3) = 120 ways.
The smallest possible sum that we get from a choice is 1+2+3=6 and the largest sum is 8+ 9+ 10 = 27. Thus, the sums
Accordingly, here ther are 120 choices (pigeons) and 22 sums (pigeonholes). Therefore the least number of choices
33. Show that if any 5 numbers from 1 ot 8 are chosen, then two of them will have their sum equal to 9.
These are the only sets containing two numbers from 1 to 8, whose sum is 9.
Because every number from 1 to 8 belongs to one of the above sets, each of the 5 numbers chose must belong to one
of the sets.
Since there are only 4 sets, two of the 5 chosen numbers have to belong to the same set (by the pigeonhole principle).
If k is a positive integer and k + 1 or more objects are placed into k boxes, then there is atleast one box containing two
Proof : We prove this principle by the method of contradiction. Suppose that none of the k boxes contains more than
one object. Hence. the total number of objects would be atmost k. This is a contradiction, since there are atleast k + 1
objects.
Corollary: A function ƒ from a set with k + 1 or more elements to a set with k elements is not one-to-one.
Proof: Suppose each element y in the codomain of f we have a box that contains all elements x of the domain of f such
that f(x)=y. Since the domain contain k + 1 or more elements and the co-domain contains only k elements, by the
pigeonhole principle one of these boxes contains two or more elements x of the domain. This means that f cannot be
one-to-one.
35. Theorem: If n pigeons are assigned to m pigeonholes, and m<n, then atleast one pigeonhole contains two or more
pigeons.
Proof : We will prove this principle using a proof by contradiction. Suppose each pigeonhole contains atmost one
pigeon. Then atmost m pigeons have been assigned. But since m <n, not all pigeons have been assigned pigeonholes.
This is a contradiction.
If k pigeons are assigned to n pigeonholes, then one of the pigeonholes must contain atleast [k-1/n] + 1 pigeons.
Proof: If possible, suppose that none of the pigeonholes contains more than [k-1/n]pigeons. Then there will be atmost
37. Theorem: If n objects are placed into k boxes, then there is atleast one box containing atleast n/k objects.
Proof: Assume that none of the boxes contains more than [n/k] - 1 objects.
k[(n/k) – 1] < k [(n/k + 1) – 1] = n, where the inequality [n/k] < [n/k] + 1 has been used. This is a contradiction, because
Solution :
1. Among any group of 367 people, there must be atleast two with the same birthday, because there are only 366
2. In any group of 27 English words, there must be atleast two that starts with the same letter, since there are 26
39. Show that among 13 children, there are atleast two children who were born in the same month.
Solution: Let us assume that 13 children as pigeons and the 12 months (January, ... December) as the pigeonholes then
by the pigeonhole principle there will be atleast two children who were born in the same month.
40. Show that if any four numbers from 1to6 are chosen, then two of them will add to 7.
The four numbers that will be chosen to the set that contains it.
As there are only 3 sets, two numbers that there chosen is from the set whose sum is 7.
41. Show that among any group of five (not necessarily consecutive) integers, there are two with the same remainder
when divided by 4.
Solution: Take any group of five integers. When these are divided by 4 each have some remainder. Since there are five
integers and four possible remainders when an integer is divided by 4, the pigeonhole principle implies that given five
42. A bag contains 12 pairs of socks (each pair is in different color). If a person draws the socks one by one at random,
determine atmost how many draws are required to get atleast one pair of matched socks.
Solution: Let n denote the number of the draw. For n ≤ 12, it is possible that the socks drawn are of different colors,
since there are 12 colors. For n 13, all socks cannot have different colors atleast two must have the same color. Here
13 as the number of pigeons and 12 colors as 12 pigeonholes. Thus, atmost 13 draws are required to have atleast one
43. Show that for every integer n there is a multiple of n that has only 0 s and 1 s in its decimal expansion.
remainders when an integer is divided by n. Since there are n+1 integers in this list, by the pigeonhole principle there
The larger number of these integers less the smaller one is a multiple of n, which has a decimal expansion consisting
44. Prove the statement : If m = k n+1 pigeons (where k ≥ 1) occupy n pigeonholes then atleast one pigeonhole must
Solution: Let us assume that the conclusion of the given statement is false.
Then every pigeonhole contains k or less number of pigeons. Then, the total number of pigeons would be nk. This is a
contradiction. Hence, the assumption made is wrong, and the given statement is true.
45. Let n1, n2 … nt be possible integes. Show that if n1 + n2 + … + nt – t + 1 objects are placed int t boxes, then for some i,
Solution: Assume that the conclusion part of the given statement is false. Here n 1, n2,… are pigeons t boxes are
pigeonholes. Then every hole contains n j-1 or less number of pigeons, j = 1, 2, ... n. Then the total number of pigeons
=m-1
This is a contradiction. Since the number of pigeons is equal to m. Hence the assumption made is wrong, and the given
statement is true.
46. Show that if seven colors are used to paint 50 cars, atleast eight cars will have the same colour.
Solution: Assume that 50 cars (pigeons) are assign 7 colors (pigeonholes). Hence, by the generalised pigeonhole
47. Show that among any n + 1 positive integers not exceeding 2n there must be an integer that divides one of the
other integers.
Solution: Let the (n + 1) integers be a 1, a2, … an+1 as power of 2 times an odd integer. Let a j = 2kj qj for j =1, 2, … n + 1,
where kj is a non-negative integer and q j is odd. The integers q 1, q2, .... qn+1 are all odd positive integers less than 2n.
Since there are only n odd positive integers less than 2n. From the pigeonhole principle that two of the integers q 1,
There are integers i and j such that qj = qj. Let q be common value of qi and qj. Then, ai = 2ki q and aj =2kj q.
From this k1 < kj, then aj divides aj ; while if k1 > kj, then aj divides ai.
48. Seven members of a family have total Rs. 2,886 in their pockets. Show that atleast one of them must have atleast
members - → pigeonholes
Rupees - → pigeons
2886-1 /7 +1 = 416
49. If 9 books are to be kept in 4 shelves, there must be atleast one shelf which contain atleast 3 books.
books - → pigeons
shelves - → pigeonholes
k-1/n + 1 when k = 9, n = 4
9-1/4 + 1 = 8/4 +1 = 3
50. How many people must you have to guarantee that atleast 9 of them will have birthdays in the same day of the
week.
people - → pigeons
k-1/7 + 1 = 9
k-1+7/7 = 9
k+6 = 63
k = 63-6 = 57
Thus, there must be 57 people to guarantee that atleast 9 of them will have birthdays in the same day of the week.
51. Show that if 30 dictionaries in a library contain a total of 61327 pages, then one of the dictionaries must have
pages - → pigeons
dictionaries - → pigeonholes
Assign each page to the dictionary in which it appears. Then by extended pigeonhole principle, one dictionary must
contain atleast
52. What is the maximum number of students required in a mathematics class to be sure that atleast six will receive
the same grade, if there are five possible grades. A, B, C, D and F? [A.U N/D 2012]
Solution: The minimum number of students wanted to ensure that atleast six students receive the same grade is the
smaller integer N such that [N/5] = 6. The smallest such integer is N = 5.5+1 = 26. If you have only 25 students, it is
possible for there to be five who have received each grade so that no six students have received the same grade.
226 is the minimum number of students needed to ensure that atleast six students will receive the same grade.
53. How many persons must be chosen in order that atleast five of them will have birth days in the same calendar
month?
Solution: Let n be the required number of persons. Because the number of months over which the birthdays are
distributed is 12, the least number of persons who have their birthdays in the same month, is by the generalized
54. Find the least number of ways of choosing three different numbers from 1 to 10 so that all choices have the same
sum
Solution: From the numbers from 1 to 10, we can choose three different numbers in C (10, 3) = 120 ways.
The smallest possible sum that we get from a choice is 1+2+3=6 and the largest sum is 8+ 9+ 10 = 27. Thus, the sums
Accordingly, here ther are 120 choices (pigeons) and 22 sums (pigeonholes). Therefore the least number of choices
55. Show that if any 5 numbers from 1 ot 8 are chosen, then two of them will have their sum equal to 9.
These are the only sets containing two numbers from 1 to 8, whose sum is 9.
Because every number from 1 to 8 belongs to one of the above sets, each of the 5 numbers chose must belong to one
of the sets.
Since there are only 4 sets, two of the 5 chosen numbers have to belong to the same set (by the pigeonhole principle).
A linear homogeneous recurrence relation with constant coefficients of degree K is of the form
an = C1 an-1 + C2 an-2 + Ck an-k ,where C1, C2, …. Ck are real numbers, and Ck ≠ 0.
an = 2an-1 for n ≥ 1, a0 = 3.
(1) ⇒ rn - 2rn-1 = 0
⇒ rn [1- 2/r] = 0
⇒ rn [r-2/ r] = 0
r=2
By theorem an = α 2n … (2)
Given a0 = 3 ⇒ a0 = α 20 = 3
⇒α=3
(2) ⇒ an = 3 (2n)
57. Theorem: Let c1, c2, … ck be real numbers. Suppose that the characteristic equation r k – c1rk-1 - … - ck = 0 has t
distinct roots r1, r2, … rt with multiplicities m1, m2,… mt respectively, so that mi ≥ 1 for i = 1, 2, ... t and m 1 + m2 + ... +
mt = k.
if and only if an = (α1,0 + α1,1 n +….+ α1,m1-1 nm1-1 ) r1n + (α2,0 – α2,1 n +….+ α2,m2-1 nm2-1 ) r2n + …..+ (αt,0 + αt,1 n +….+ αt,m-1 nmt-1 ) r1n
when F(n) = 3n, F (n) = n 3n, F (n) = n2 2n, and F (n) = (n2 + 1) 3n ?
an = 6an-1 - 9an-2
r = 3, 3
P0 n2 3n if F(n) = 3n
Let X and Y be two finite subsets of a universal set U. If X and Y are disjoint, then
60.. Find a formula for the probability of the union of five events in a sample space if no four of them can occur at the
same time.
Solution :
61. Find a formula for the probability of the union of n events in a sample space.
63. Write out the explicit formula given by the principle of inclusion-exclusion for the number of elements in the union
of five sets.
Solution :
UNIT III: GRAPHS
1. Definition: Graph
A graph G = (V(G), E (G)) concists of V, a non empty set of vertices (nodes or points) and E, a set of edges (also called
lines).
i.e., A graph G is an ordered triple (V (G), E (G), ϕ) consists of a non-empty set V called the set of vertices (nodes or
points) of the graph G, E is said to be the set of edges of the graph G, and is a mapping from the set of edges E to a set
Example :
Let G = (V (G), E (G), ϕ) where V (G)= {v1, v2, v3, v4} E (G)=(e1, e2, e3, e4, e5) and ϕ is defined by ϕ (e1) = {v1, v2}, ϕ (e2) = {v2,
v3}, ϕ (e3) = {v3, v4}, ϕ (e4) = {v4, v1}, ϕ (e5) = {v1, v3}
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.
In a graph G (V, E), an edge which is associated with an ordered pair of vertices is called a directed edge of
graph G, while an edge which is associated with an unordered pair of vertices is called an undirected edge. A graph in
The end vertices of an edge are said to be incident with the edge and vice versa.
The edge e1 is incident with the vertices v1 and v2 also the vertex v1 is incident with e1 and e3.
The vertices v1 and v2 are also called the initial and terminal vertices of the edge e1.
If some edges are directed and some are undirected in a graph, then the graph is a mixed graph.
8. Definition: Loop
Any graph which contains some parallel edges and loops is called as multi graph.
When a directed graph has no loops and has no multiple directed edges, it is called a simple directed graph.
A graph obtained by deleting all loops and parallel edges from a graph is called underlying simple graph.
A graph G is finite if and only if both the vertex set V(G) and the edge set E (G) are finite, otherwise the graph is
infinite.
Example : Let V(G) = Z and E (G) = {eij / |i-j| = 1} clearly, the graph G is infinite.
Note: Hereafter, a graph means that is a finite graph unless otherwise stated.
When there are m directed edges, each associated to an ordered pair of vertices ( u, v), we say that (u, v) is an edge of
multiplicity m.
A graph in which weights are assigned to every edge is called a weighted graph.
A graph obtained by ignoring the direction of edges in a directed graph is called underlying undirected graph.
Graphs that may include loops, and possibly multiple edges connecting the same pair of vertices, are sometimes
called Pseudographs.
Solution: G is not a simple graph since it contains multiple edges e4, e5 also a loop e7.
E (a) = {(v1, v2), (v2, v3), (v3, v4), (v1, v3), (v2, v4)}
G = G(V,E)
Solution :
22. Let G be a simple graph. Show that the relation R on the set of vertices of G such that uRv if and only if there is an
Solution :
⇒vRu
u R u never holds.
irreflexive.
23. Definition: Two vertices u and v in an undirected graph G are called adjacent (or neighbors) in G if u, v are
endpoints of an edge of G.
If e is associated with (u, v), the edge e is called incident with the vertices u and v. The edge e is also said to
connect u and v. The vertices u and v are called endpoints of an edge associated with ( u, v).
The degree of a vertex in an undirected graph is the number of edges incident with it, except that a loop at a vertex
Example :
Let v be a vertex in a graph G. Then the degree d G(V) of the incident with v (each loop is counted twice). The d G(V) can
also be denoted by deg G(V) (or explicity, we use d (V) or deg (V) to denote the degree of V).
deg (V1) = 6 , deg (V2) = 3 ,deg (V3) = 5 ,deg (V4) = 4 , deg (V5) = 6, deg (V6) = 0
Solution :
26. How many edges are there in a graph with 10 vertices each of degree six ?
is (6) (10) = 60
i.e., 2e = 60
e = 30
27. Show that the sum of degree of all the vertices in a graph G, is even.
Also, each edge contributes one degree to each of the vertices on which it is incident.
28. Verify that the sum of the degree of all the vertices is even for the graph.
=2+3+5+3+3+4+2+2
= 24 which is even.
Σ deg (vi) = deg (v1) + deg (v2) + deg (v3) + deg (v4) + deg (v5) + deg (v6)= 2 + 4 + 4 + 3 + 4 + 1
30. Show that the degree of a vertex of a simple graph G on n vertices cannot exceed n-1.
Solution: Let v be a vertex of G because G is simple, no multiple edges or loops are allowed in G. Thus v can be
31. Show that in a group, there must be two people who know the same number of other people in the group.
Solution: Construct the simple graph model in which V is the set of people in the group and there is an edge associated
with (u, v) if u and v know each other. Then the degree of vertex v is the number of people v knows.
We know that there are two vertices with the same degree. Therefore there are two people who know the same
32.Is there a simple graph corresponding to the following degree sequences? (i) (1, 1, 2,3) (ii) (2, 2, 4, 6)
Solution :
(i) There are odd number (3) of odd degree vertices, 1, 1 and 3. Hence there exist no graph corresponding to this
degree sequence.
(ii) Number of vertices in the graph sequence is four and the maximum degree of a vertex is 6 which is not possible as
the maximum degree cannot exist one less than the number of vertices.
33. Show that the maximum number of edges in a simple graph with n vertices is n (n - 1) / 2
Since we know that the maximum degree of each vertex in the graph G can be (n - 1)
⇒ n (n − 1) = 2e
e = n (n - 1) / 2
Hence the maximum number of edges in any simple graph with n vertices is n (n - 1) / 2
34. Definition: When (u, v) is an edge of the graph G with directed edges, u is said to be adjacent to v and v is said to be
adjacent from u.
The vertex u is called the initial vertex of (u, v), and v is called the terminal or end vertex of (u, v).
The initial vertex and terminal vertex of a loop are the same.
35. Definition: In a graph with directed edges the in-degree of a vertex v, denoted by deg -
(v), is the number of edges
Note: A loop at a vertex contributes 1 to both the in-degree and the out-degree of this vertex.
In degree
Out degree
In a directed graph G, the out degree of vertex of v of G denoted by out deg G(v) or deg+G (v), is the number of edges
beginning at v.
i.e., the sum of the outdegrees of the vertices of a diagraph G equals the sum of in degrees of the vertices which
⇒ Each edge contributes one out degree to its initial vertex and one indegree to its terminal vertex.
Thus the sum of the indegrees and the sum of the out degrees of all vertices in a directed graph are same.
37. Verify Σni=1 deg+G (vi) = Σ ni=1 deg- (vi) = |E| = e in the following graph.
38. What do the in-degree and the out-degree of a vertex in a directed graph modeling a round-robin tournament
represent?
Solution :
Solution :
42. What is the degree sequence of K, where n is a positive integer? Explain your answer.
Solution: Each of the n vertices is adjacent to each of the other n-1 vertices, so the degree sequence is n - 1, n - 1, ..., n
- 1 (n terms)
44. Determine whether each of these sequences is graphic. For those that are, draw a graph having the given degree
(b) Yes
46.. Find the degree sequence of each of the following graphs (a) K 4 (b) K5 (c) K2
A cycle graph of order 'n' is a connected graph whose edges form a cycle of length 'n' and denoted by C n.
Solution :
49. How many vertices and how many edges do these graphs have (a) C n (b) C8 (c) Also find the degree sequence of C4.
Solution :
A wheel graph of order n is obtained by joining a new vertex called 'Hub' to each vertex of a cycle graph of order n 1,
denoted by Wn.
51. Draw the graphs (a) W3, (b) W4 (c) W5, (d) W6, (e) W7
Solution :
52 How many vertices and how many edges do these graph have (a) W n (b) W5 also find the degree sequence of W4
Solution :
(c) 4, 3, 3, 3, 3
53.Definition: n-Cubes :
The n-dimensional hypercube, or n-cube, denoted by Q n; is the graph that has vertices representing the 2 n bit strings of
length n. Two vertices are adjacent if and only if the bit strings that they represent differ in exactly one bit position.
Solution :
55. How many vertices and how many edges do those graphs here?
(a) Qn (b) Q3
Solution : (a) 2n vertices, n 2n-1 edges (b) 23 = 8 vertices, (3) (22) = 12 edges
Solution: 3, 3, 3, 3, 3, 3
A graph in which all vertices are of equal degree is called a regular graph.
If the degree of each vertex is r, then the graph is called a regular graph of degree r.
= Σ r = pr q = pr/2
60. For which values of n are these graphs regular? (a) K n (b) Cn (c) Wn (d) Qn
Solution:
(a) For all n ≥1 (b) For all n ≥ 3 (c) For n = 3 (d) For all n ≥0
61. How many vertices does a regular graph of degree four with 10 edges have?
Solution: Given
r=4
q = 10
To find : p.
We know that 2q = pr
P =་ 2q/r
A bipartite graph is an undirected graph whose set vertices can be partitioned into two sets M and N is such a way
that each edge joins a vertex in M to a vertex in N and no edge joins either two vertices in M or two vertices in N. here
V = MUN ; Μ∩Ν = ϕ
A complete bipartite graph is a bipartite graph in which every vertex of M is adjacent to every vertex of N. The
complete bipartite graphs that may be partitioned into sets M and N as above s.t M = m and |N| = n are denoted by K m, n
Solution: The vertex set of C6 can be partioned into the two sets
V1 = {v1, v3, v5} and V2 = {v2, v4, v6} and every edge of C6 connects a vertex in V1 and a vertex in V2
66. Is K3 is bipartite?
If we divide the vertex set of K3 into two disjoint sets, one of the two sets must contain two vertices.
If the graph is bipartite, these two vertices should not be connected by an edge, but in K 3 each vertex is connected to
K3 is not bipartite.
67. How many vertices and how many edges of Km,n graph have?
Solution: Graph G is bipartite since its vertex set is the union of two disjoint sets, { v1, v2, v3} and {v3, v5, v6, v7}, and each
edge connects a vertex in one of these subsets to a vertex in the other subset.
71. Prove that a graph which contains a triangle can not be bipartite.
Proof: Atleast two of the three vertices must lie in one of the bipartite sets because there two are joined by edge, the
72. Draw the complete bipartite graphs K2,3, K3,3 K3,5 and K2,6
Solution :
72. Theorem: A simple graph is bipartite if and only if it is possible to assign one of two different colors to each vertex
of the graph so that no two adjacent vertices are assigned the same color.
Proof: Let G = (V,E) is a bipartite simple graph. Then V = V 1UV2, where V1 and V2 are disjoint sets and every edge in E
If we assign one color to each vertex in V 1 and a second color to each vertex in V 2, then no two adjacent vertices are
Suppose that it is possible to assign colors to the vertices of the graph using just wo colors.
Let V1 be the set of vertices assigned one color and V 2 be the set of vertices assigned the other colour. Then, V 1 and
i.e., every edge connects a vertex in V 1 and a vertex in v2 since no two adjacent vertices are either both in V 1 or both in
A subgraph of a graph G = (V,E) is a graph H = (W, F), where W≤V and F≤E. A subgroup H of G is a proper subgraph of G
if H≠G.
74. Draw two subgraph of K5.
Solution:
75.. How many subgraphs with atleast one vertex does K3 have ?
Solution: 17
76.Definition: The union two simple graphs G 1 = (V1, E1) and G2 = (V2, E2) is the simple graph with vertex set V 1 U V2 and
G1UG2 = {a, b, c, d, e, f}
78.Definition: Complement
The complement of G is defined as a simple graph with the same vertex set as G and value two vertices u and v are
79. If the simple graph G has v vertices and e edges, how many edges does have?
= v (v-1) / 2e
80.. Show that if G is a simple graph with n vertices, then the union of G and is Kn.
Solution: The union of G and contains an edge between each pair of the n vertices. Hence this union is K n.
Let G (V, E) be a simple graph with n. Vertices ordered from V 1 to Vn, then the adjacency matrix A = [aij] n˟n of G is an n
3. Any element of the adjacency matrix is either 0 or 1, therefore it is also called as, bit matrix or boolean matrix.
4. The ith row in the adjacency matrix is determined by the edges which originate in the node V i.
5. If the graph G is simple, the degree of the vertex V; equals the number of 1's in the i th row (or ith column) of AG.
6. Given an n˟n symmetric boolean matrix A, we can find a simple graph G s.t A is the adjacency matrix of G.
Solution: K4 graph is
Solution : C4 graph is
Solution: W4 graph is
Let G be a graph with n vertices, Let V = {V1, V2, ... Vn} and E = (e1, e2,...em). Define n x m matrix
IG = [mij]n˟m where
96. What is the sum of the entries in a row of the incidence matrix for an undirected graph?
The simple graphs G1 = (V1, E1) and G2 = (V2, E2) are isomorphic if there is a one-to-one and onto function f from V1 to
V2 with the property that a and b are adjacent in G1 if and only if f(a) and f(b) are adjacent in G2, for all a and b in V1.
97. Explain why the two graphs given below are not isomorphic.
Solution: In the graph (a), no vertices of degree two are adjacent while in the graph (b) vertices of degree two are
adjacent. Because isomorphism preserves adjacency of vertices, the graphs are not isomorphic.
98. Show that the graphs G = (V, E) and H = (W, F), shown in figure are isomorphic.
Solution: The function f with f (u1) = 1, ƒ (u2) = 4, f (u3) = 3, and f(u4) = 2 is a one-to-one corresponding between V and W.
Here the correspondence preserves adjacency, note that adjacent vertices in G are u 1 and u2, u1 and uз, u2 and u4, and
u3 and u4 and each of the pairs f (u 1) = 1 and f(u2) = 4. f (u1) = 1 and f (u 3) = 3, f(u2) = 4 and ƒ (u 4) = 2, and ƒ (u3) = 3 and ƒ
99. Show that the two graphs shown in figure are isomorphic.
E (G1) = {{1, 2}, {2, 3}, {3, 4}} and E (G2) = {{a, b}}, {b, d}, {d, c}
Hence ƒ preserves adjacency as well as non-adjacency of the vertices. Therefore G 1 and G2 are isomorphic.
100. Prove that the graphs G and G given below are isomorphic
Solution: The two graphs have the same number of vertices same number of edges and same degree sequence
Solution: G and are having 5 vertices and 8 edges. Consider indegree and out degree of the vertices if G and .
Now
f(v4)=u3, f (v5) = u4
Example 20. Prove that any 2 simple connected graphs with n vertices all of degree 2 are isomorphic.
Σni=1 d(Vi)=2|E|
2 ((n) − 1 + 1) = 2 |E|
⇒ n = |E|
number of edges = number of vertices. Therefore the graphs are cycle graphs Hence they are isomorphic.
Example 21. Can a simple graph with 7 vertices be isomorphic to its complement?
21 edges cannot be split into 2 equal integers. Therefore, G and cannot equal number of edges. Hence a graph with 7
Example 22. Let G be a simple graph all of whose vertices have degree 3 and |E| = 2 |V| - 3. What can be said about G?
Solution :
Σ|v|i=1 d(Vi)=2|E|
3 |V| = 2 |E|
= 3|V| = 4|V| - 6
|V| = 6
Solution:
(ii) Symmetric: Suppose that G is isomorphic to H. Then there exists a one-to-one correspondence ƒ from G to H that
preserves adjacency and nonadjacency. From this f -1 is a one-to-one correspondence from H to G that preserve
(iii) Transitive: If G is isomorphic to H and H is isomorphic to K, then there are one-to-one correspondences ƒ and g
from G to H and from H to K that preserve adjacency and non adjacency. It follows that gof is a one-to-one
correspondence from G to K that preserves adjacency and non adjdacency. Hence, isomorphism is transitive.
EXERCISES 3.3
6. Is every zero-one square matrix that is symmetric and has zeros on the diagonal the adjacency matrix of a simple
graph?
[Ans. Yes]
7. Describe the row and column of an adjacency matrix of a graph corresponding to an isolated vertiex.
[Ans. Zeros]
8. Show that the vertices of a bipartite graph with two or more vertices can be ordered so that its adjacency matrix
11. How many non isomorphic simple graphs are there with five vertices and three edges ?
[Ans. 4]
12. Are the simple graphs with the following adjacency matrices isomorphic?
13. Determine whether the given pair of directed graphs are isomorphic.
Definition: Path
A path in a multigraph G consists of an alternating sequence of vertices and edges of the form
The path is said to be closed if Vo = Vn we say the path is from Vo to Vn or between Vo and Vn or Connects Vo to Vn.
Definition: Circuit:
A path of length ≥ 1 with no repeated edges and whose end vertices are same is called a circuit.
A path graph of order 'n' is obtained by removing on edge from a C n graph, denoted by Pn.
Definition: Trail
A trail from v to w is a path from v to w that does not contain a repeated edge.
v = v0, e1, v1, e2, ... vk-1, ek, vk = w where all the ei are distinct.
Example 1: Does each of these lists of vertices from a path in the following graph? Which paths are simple? Which are
(a) a, e, b, c, b (b) e, b, a, d, b, e
(c) a, e, a, d, b, c, a (d) c, b, d, a, e, c
Solution :
A graph G is a connected graph is there is atleast one path between every pair of vertices in G. Otherwise G is a
disconnected graph.
Example:
Proof: Let u and v be two distinct vertices of the connected undirected graph G = (V, E).
Since G is connected, there is at least one path between u and v. Let x 0, x1,...,xn, where x0 = u and xn = v, be the vertex
This means that there is a path from u to v of shorter length with vertex sequence x 0, x1, ..., xi-1, xj, ..., xn obtained by
Example 4. What are the connected components of the graph H shown in figure.
Solution: The graph H is the union of three disjoint connected subgraphs H 1, H2, and H3.
Definition: A directed graph is strongly connected if there is a path from a to b and from b to a whenever a and b are
undirected graph.
Example 5. Are the directed graphs G and H shown in figure strongly connected? Are they weakly connected?
Solution: G is strongly connected because there is a path between any two vertices in this directed graph. Hence, G is
The graph H is not strongly connected. There is no directed path from a to b in this graph. However, H is weakly
connected, because there is a path between any two vertices in the underlying undirected graph of H.
A cut vertex of a connected graph G is a vertex whose removal increases the number of components. Clearly if v is a
cut vertex of a connected graph G, G - v is disconnected. A cut vertex is also called a cut point.
Bridge:
If a graph G is connected and e is an edge such that G - e is not connected, then e is said to be a bridge or a cut edge.
Paths in Acquaintanceship Graphs: In an acquaintanceship graph there is a path between two people if there is a chain
of people linking these people, where two people adjacent in the chain know one another.
Paths in Collaboration Graphs: In a collaboration graph two vertices a and b, which represent authors, are connected
by a path when there is a sequence of authors beginning at a and ending at b such that the two authors represented by
Paths in the Hollywood graph: In the Holly wood graph two vertices a and b are linked when there is a chain of actors
linking a and b, where every two actors adjacent in the chain have acted in the same movie.
Solution :
(a) e
(b) b, c, e, i
Example 7. Suppose that v is an endpoint of a cut edge. Prove that v is a cut vertex if and only if this vertex is not
pendant.
Solution: If a vertex is pendant it is clearly not a cut vertex. A endpoint of a cut edge that is a cut vertex is not
pendant.
Remove of a cut edge produces a graph with more connected components than in the original graph.
If an endpoint of a cut edge is not pendant, the connected component it is in after the remove cut edge contains more
From this, removal of that vertex and all edges incident to it, including the original cut edge, produces a graph with
Theorem: Let G be a graph with adjacency matrix A with respect to the ordering 1, 2, ..., n (with directed or undirected
edges, with multiple edges and loops allowed). The number of different paths of length r from i to j, where r is a
Example 8. Show that a simple graph G with n vertices is connected if it has more than (n - 1) (n - 2)/2 edges.
Solution:
= k2 - nk + (n2 - n)/2.
Hence, if G is not connected, then the number of edges does not exceed the value of this function at 1 and at n-1,
namely, (n - 1) (n - 2)/2.
Example 9. How many paths of length four are there from a to d in the simple graph G in figure. [A.U N/D 2012]
Hence, the number of paths of length four from a to d is the (1, 4)th entry of A4. Since
there are exactly eight paths of length four from a to d. From this graph, we see that a, b, a, b, d; a, b, a, c, d; a, b, d, b,
UNIT-4
A system consisting of a set and one or more n-ary operations on the set will be be called an algebraic system or
simply an algebra.
We shall denote an algebraic system by (S, f1,f2, ...) where S is a nonempty set and f1,f2, are operations on S.
The operations and relations on the set S define a structure on the elements of S, an algebraic system is called an
algebraic structure.
Example: Let I be the set of integers. Consider the algebraic system (1, +, ˟) where + and ˟ are the operations of addition
and multiplication on I.
(a + b) + c = a + (b + c) (Associativity)
a+b=b+a (Commutativity)
(A-4) For each a Є I, there exists an element in I denoted by -a and called the negative of a such that
(a x b) x c = a x (b x c) (Associativity)
axb=bxa (Commutativity)
a x (b + c) = (a x b) + (a x c) (Distributivity)
The algebraic system (I, +, x) should have been expressed as (I, +, ˟, 0, 1) in order to emphasize the fact that 0 and 1
Definition 3: Homomorphism
If {X, o} and {Y, *} are two algebraic systems, where o and * are binary (n-ary) operations, then a mapping g: X→Y
satisfying
Definition 4:
Let (X, *) be an algebraic system and E be an equivalence relation on X. The relation E is called a congruence relation
Let {X, *} be an algebraic system in which * is a binary operation on X. Let us assume that E is an equivalence relation
on X.
The equivalence relation E is said to have the substitution property w.r.to the operation * iff for any x 1, x2 Є X
Example 1. Show that intersection any two congruence relation on a set A is again an congruence relation on
Solution :
Let E = E1 Ո E2
= (a1 E1 a1') and (a1 E2 a1) ^ (a2 E1 a2') and (a2 E2 a2')
Example 2. Let f: S → T be a homomorphism from (S, *) to (T, ∆) and g: T → P is also a homomorphism from (T, ∆) to (P,
= g o f (S1) ∆ g o f (S2)
= g o f: S → T is a homomorphism
Example 3. Let (A, *) and (B, ∆) be two algebra systems and be homomorphism from A→ B. Let (A 1, *) be subalgebra of
(A, *). Then show that an the homomorphic image of (A1, *) is a subalgebra of (B, ∆)
Solution: Let g be an homomorphism from A to B. Then for any two elements a 1, a2, Є A.
g (a1 * a2) = g(a1) ∆ g (a2). Let A1 be a subset of A. As g is homomorphism from A to B, for any two elements, a j, aj Є A1 ≤
A.
g (ai * aj) = g(ai) ∆ g(aj) and g(A1) ≤ g (A) ≤ B. Therefore the image of A 1 and g forms an algebraic system with operation
Solution: Let S = {a, b, c) and P = {1, 2, 3} be two sets with operation + and *
Consider the mapping g: S→ P defined by
A non-empty set S, together with a binary operation * is called a semi-group if * satisfies the following conditions.
(ii) Associative: ∀ a, b, c ϵ S, a * (b * c) = (a + b) * c
A non-empty set M, together with a binary operation * is called a monoid if * satisfies the following conditions
(i) Closure: ∀ a, b Є M ⇒ a * b Є M
(iii) Identity: ∀ a Є G, Ǝ e Є G
s.t. a * e = e * a = a
Definition 3: Group :
A non-empty set G, together with a binary operation * is said to form a group, if it satisfies the following conditions.
(i) Closure: ∀ a, b Є G ⇒ a * b Є G
Definition 5: Subgroup :
Let G be a group under the binary operation *. The number of elements in G is called the order of the group G and is
denoted by O (G)
Note: If the O(G) is finite, then G is called a finite group, otherwise it is called an infinite group.
Let (M,*, eM) and (T, ∆, e,) be any two monoids. A mapping g: M→T such that for any two elements a, b Є M.
g (eM) = er …. (3)
Let (G, *) and (H, ∆) be two groups. A mapping y: G→H is called a group homomorphism from <G, *> to <H, ∆> if for any
a, b Є G.
Let g be a group homomorphism from < G,*> to <H, ∆>. The set of elements of G which are mapped into е H, the identity
A group G is called a cyclic group, if there exists an element a Є G such that each element of G is expressible as:
x = an = aa ... a (n times).
It may be observed that a group (G, +} is cyclic, if there exists some element a of G such that each element x of G is
expressible as
x = na = a + a + ... + a (n times)
Illustraion :
Also G = <i>.
A permutation of a finite set is called even if it can be written as a product of an even number of transpositions, and it
Theorem 2. The set of all semi-group endomorphisms of a semi-group is a semi-group under the operation of left
composition.
To prove: (F, o) is a semi-group with binary operation o, the left composition of mapping.
Proof :
(i) Closure: ∀ f, g Є F ⇒ f o g Є F
(ii) Associative: ∀ f, g, h Є F, ∀ a Є S
(f o g) o h (a) = f o g (h (a))
= f (g (h (a)))
= f (g o h (a))
= f o (g o h) (a)
⇒ (f o g) = f o (g o h)
(F, o) is a semi-group.
Note: Infact (F, o) is a monoid, because the identity mapping I is the identity under o. Thus (F, o, I) is a monoid.
Theorem 3. Let (S, *) be a given semi-group. There exists a homomorphism g: S→S S, where (SS, o) is a semi-group of
functions from S to S under the operation of (left) composition. [A.U N/D 2011]
f (a) Є SS
Now, we define g: S→ SS by
g (a) = fa, ∀ a Є S
g (a* b) = fa*b
= fa o fb (c) ⇒ fa*b = fa o fb
Theorem 5. Let (S, *) and (T, ∆) be two semigroups and g be a semigroup homomorphism from (S, *) to (T, ∆).
Corresponding to the homomorphism g, there exists a congruence relation R on (S, *) defined by x R y iff g (x) =
g(y) for x, y Є S
Proof: It is easy to see that R is an equivalence relation on S. Let x 1, x2, x1', x2' Є S such that x1 R x1' and x2 R x2'. From
Solution: Let a, b, c Є S
But in S, (a * b) * c = a * (b * c) ∀ a, b, c Є S
a* a = a
g (a*a) = g(a)
Solution: Let a, b Є S.
Assume that a * b = b * a
g (a * b) = g (b * a)
Solution: Consider the subsemigroup S generated by s (i.e.,) S = {s, s 2, s3, ... sn}, where n is finite. S is a finite subset of
a finite semigroup G. Therefore there exist r1, r2 such that sr1 sr2. Without loss of generality, we assume that r1 > r2.
Now we have two cases.
Put r = r1 – 2r2
Now
Put r1 - r2
sr1 = sr2
Thus we have proved that S has an idempotent which inturn implies that the semigroup G has an idempotent.
Example 1. Give an example of a semi-group which is not a monoid. [A.U. M/J 2009]
Since ∀ a Є G, 1/a € G
Example 3. What do you call a homomorphism of a semi-group into itself? [A.U. A/M 2003]
Example 4. If (Z, +) and (E, +) where Z is the set all integers and E is the set of all even integers, show that the two
semi groups (Z, +) and (E, +) are isomorphic. [A.U. N/D 2010]
Solution :
So mapping by g onto.
g (a + b) = 2(a + b)
= 2a + 2b
= g (a) + g (b)
(3) Which elements has inverse and what are they? [A.U A/M 2011]
Solution :
i.e., is associative.
a*e=a
i.e., a + e + 2ae = a
i.e., e (1 + 2a) = 0
i.e., a-1.(1+2a) = -a
a-1 = -a /1 + 2a
Example 6. Let < M, *,e M > be a monoid and a Є M. If a invertible, then show that its inverse is unique. [A.U A/M
2011]
such that
a*c = c*a = e
since
b=b*e
= b * (a*c)
= (b*a) * c
= e*c
=c
Example 7. Show that a semi-group with more than one idempotents cannot be a group. Give an example of a semi-
Let us assume that (S, *) is group then each element has the inverse.
(a * a) * a-1 = a * (a * a-1)
=e
(a * a) * a -1
= e …..(1)
In a group we can not have two identities and hence (S, *) cannot be group.
Example 8: Let (N,+) be the semigroup of natural numbers and (S, *) be the semigroup of on S = {e, 0, 1} with the
operation * given by
Solution: Though both (N, +) and (S, *) are monoids with identities 0 and e respectively, g is not a monoid
g is semigroup homomorphism.
Example 9: Find all semigroup of (Z6, X6) where Z6 = {[0], [1], [2], [3], [4], [5]}
Solution: {[0]}, {[0], [1]}, {[1]}, {[1], [2], [4]}, {[0], [1], [2], [4]}, {[2], [4]}, {[0], [3], [4]}, {[1], [5]}, {[0], [1], [5]}, {[0], [4]}, {[0],
Example 10: Is it true that a semigroup homomorphism preserves identity? Justify your answer. [OR] Prove by an
Let W = {0, 1, 2, ..}. Then (W, +) is a semigroup with identity element 0. Let S = {e, o, 1} and * be the operation on S
given by
Then, (S, *) is a semigroup with identity e.
We can see that g (a + b) = g (a) * g (b) for all a, b Є W. Thus g is a semigroup homomorphism. But g (0) = 1 ≠ e. Thus g
Example 11 Let S = {a, b}. Show that the semi group (S s, . ) is not commutative where . is the left composition of
functions.
Solution: Let S = {a, b} then (S s, .) is an algebra of set of functions from S to S with left composition ' .’ as an operation.
Table is the composition table for (Ss, .) from the table one can see that f2 o f1 ≠ f1 o f2 and hence (Ss, .) is not
commutative.
Example 12: Let (S, *) be a semigroup and z Є S be a left zero. Show that for any x Є S, x*z is also a left zero.
Solution: Let (S, *) be a semigroup. Therefore (S, *) is closed under * and * is associative.
(x * y) * z = x* (v* z)
Therefore y * (x*z) = z because y * (x * z) = y * z = z = x*z for all y Є S, which implies that x*z is also a left zero of s.
Example 13 An element a Є S is left cancellable for a semigrop (S, *) if for all x, y Є S, a * x = a * y ⇒ x= y. Show that if
a*x=a*y
⇒ x = y and
b*x =b*y
⇒x=y
(a*b) * x = (a*b) * y
⇒x=y
As (S, *) is associative
(a*b) * y = a* (b*y)
As (a * b) *x = (a* b) *y we have
a* (b*x) = a* (b* y)
Example 14: Let A = {0, 1} and A* be the free semigroup generated by A by the operation of concatenation. Show that
the relation R defined for x, y Є A* such that x R y iff x and y contain the same number of I s, is a congruence relation.
Solution: It is easy to see that R is a congruence relation on (A*, o) where o denotes concatenation. Consider the
semigroup (N, +) and a mapping g: A* → N such that for any x Є A*, g(x) = n where n is the number of I s in x.
g(x) = g(y) ↔ x R y
Example 15. 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), show that (S,*) is a semi group. Is it commutative? Also find the identity element of S. [A.U N/D 2012]
= (a, b) * {cx, dx + y}
⇒ ae1 = a, ae2 + b = b
⇒ e1 = 1, ae2 = 0
e2 = 0
MONOID :
Example 1: Let X be any given set and P (X) is its power set. Then find the zeros of the semigroups (P (X), ∩) and (P (X),
Solution: Let X be any given set. Then its power set p (X) contains 2 x subsets of X.
If Z Є p (X) is zero with respect to the operation ∩ for p (X), then Z ∩ X 1 = X1 Ո Z = Z implies that Z = ϕ empty set.
The zero Z of (p (X), U) is such that Z U X1 = X1UZ = Z for all X1 Є p (X), implies that Z = the whole set X.
The identity of (p (X), ∩) is given by the set Se, such that S∩Se = Se∩S = S for all S Є P (X).
Therefore Se = X, the whole set.
The identity of (p (X), U) is Se, which satisfies the property that S = Se US = SUSe. Therefore Se is the empty set ϕ.
Example 2: Let V = {a, b} and A be set of all sequences on V including ˄ beginning with a. Show that (A, o ˄) is a
monoid.
Solution: Let V = {a, b} and A be set of all sequence on V including ˄ beginning with a. Then A= {˄, a, ab, aa, ab, aba,
abb, ...}. Let o be a concatenation operation on the sequences in A. Clearly for any two elements a, b Є A.
α ο β = a ß also belongs to A and hence (A, o) is closed. Also 'o' is associative. Because
(α o β) ο γ = αβγ = α o (β γ)
= (αοβογ)
Example 3: Show that the set N of natural numbers is a semigroup under the operation x * y = max (x, y). Is it a
monoid ?
(x * y) *z = max {x * y, z}
= max {x, y, z}
= x* (y * z)
The identity e of (W, *) must satisfy the property that x*e = e*x = e. But as x * e = e * x = max {x, e}, e = x, ∞ (the
Example 4: Every monoid (M, *, e) is isomorphic to (MM, o , ∆) where ∆ is the identity mapping to M.
f(a) = fa where fa Є MM
Now
= fa (b*c) = fa fb (c)
Therefore ƒ is a homomorphism.
Solution: While defining alphapet and set of strings V*, we proved that (V*, o, ˄) is a monoid where ˄ is a empty string.
So, it is enough to show that V* is an infinite set. As a is an element of V, a, aa, aaa, aaaa, … b, bb, bbb, bbbb, ... ab,
abb, abbb, …..are the elements of V* and hence V* contains infinitely many strings including empty set.
Groups
Example 1. State any two properties of a group. [A.U N/D 2010]
Then a2 = a * a = a* a−1 = e
That is a*a=e
a * a * a = a *e
-1 -1
i.e., e * a = a-1
i.e., a = a-1
a * a-1 = a-1 * a = e
i.e., (a-1)-1 = a
Example 6. If any group (G, *), show that (a * b)-1 = b-1 * a-1
= a * e * a-1
= a * a-1 [a * e = a]
=e
= b-1 * e * b
= b-1 * b [e * b = a]
=e
Solution: Let (G, *) (be a group of order 4 where G = {e, a, b, c). Since G is of even order, there exists at least one
Case (ii):
a2 = e, b*c = e, c*b=e
Since (G, *) is a group, its elements will appear in a row (column) only once.
Since, a, e appears in the second row and b appears in the third column, c will appear as (2, 3)th element.
(2, 4)th element is b (3, 3)th element is a (3, 2)th element is c (4, 2)th element is b (4, 4)th element is a
Example 9. Show that the set S = {1, 5, 7, 11} is a group w.r.t. multiplication modulo 12.
Here 5 O12 7 = 35, which on division by 12 gives the remainder 11, 11 O 12 7 = 77, which on division by 12 gives the
remainder 5 etc.
Hence S is a group, in which 1 is the identity and each element of S is its own inverse.
Example 11. Find the left cosets of {[0], [3]} in the addition modular group (Z 6, +6). [MCA, N/D. 2002][A.U N/D 2010]
Solution: Let Z6 = {[0], [1], [2], [3], [4], [5], [6]} be a group and H = {[0], [3]} be a sub-group of Z 6 under +6 (addition mod 6)
Example 12. If f: G→G' is a group homomorphism from {G, *} to {G', ∆) then prove that for any a Є G, f(a -1) = [f (a)]-1
Example 13. Let G be a group and a Є G. Let f : G→G be given by f(x) = a x a -1 G for all x Є G. Prove that f is an
= ax (a-1a) ya-1
= axya-1
So f is a homomorphism.
f is one-to-one: If f(x) = f(y), then axa-1 = aya-1, so by left cancellation, we have xa -1 = ya-1, again by right cancellation, we
get x = y.
= (aa-1) y (aa-1)
Thus f is an isomorphism.
PERMUTATION FUNCTIONS
Definition :
Example 14: Let A=R and let f: A → A be defined by f(a) = 2a+1. Since ƒ is one to one and onto, it follows that ƒ is a
permutation of A.
Example 15: Let A = {1, 2, 3}. Then all the permutations of A are
Using the permutations of compute
or, when written in increasing order of the first component of each ordered pair, we have
Theorem : If A = (a1, a2, ... an} is a set containing n elements, then there are n! = n. (n - 1) … 2.1 permutations of A
Let b1, b2, ... br be r distinct elements of the set A = {a1, a2, ... an}.
p (b1) = b2
p (b2) = b3
p (br-1) = br
p (br) = b1
p(x) = x, if x Є A, x €{b1, b2, … b r) is called a cyclic permutation of length r, or simply a cycle of length r, and will be
Example 16: Let A = {1, 2, 3, 4, 5}. The cycle (1, 3, 5) denotes the permutation
Example 17: Let A = {1, 2, 3, 4, 5, 6}, Compute (4, 1, 3, 5) o (5, 6, 3) and (5, 6, 3) o (4, 1, 3, 5).
Solution: We have
Observe that (4, 1, 3, 5) o (5, 6, 3) ≠ (5, 6, 3) o (4, 1, 3, 5) and that neither product is a cycle.
Definition :
Two cycles of a set A are said to be disjoint if no element of A appears in both cycles.
Example 18: Let A = {1, 2, 3, 4, 5, 6}. Then the cycles (1, 2, 5) and (3, 4, 6) are disjoint, whereas the cycles (1, 2, 5) and
Theorem: A permutation of a finite set that is not the identity or a cycle can be written as a product of disjoint cycles
of length >2.
Solution: We start with 1 and find that p (1) = 3, p (3) = 6, and p (6) = 1, so we have the cycle (1, 3, 6). Next we choose
the first element of A that has not appeared in a previous cycle. We choose 2, and we have p (2) = 4, p (4) = 5 and p (5)
= 2, so we obtain the cycle (2, 4, 5). We now choose 7, the first element of A that has not appeared in a previous cycle.
Since p (7) = 8 and p (8) = 7, we obtain the cycle (7, 8). We can then write p as product of disjoint cycles as
A cycle of length 2 is called a transposition. That is, a transposition is a cycle p = (ai, aj), where p (ai) = aj and p (aj) = ai.
Observe that if p = (ai, aj) is a transposition of A, then p o p = 1A, the identity permutation of A.
(b1, b2, ... br) = (b1, br) o (b1, br-1) o...o (b1, b3) o (b1, b2)
Basis Step
If r = 2, then the cycle is just (b1, b2), which already has the proper form.
Induction Step
We use P (k) to show P (k + 1). Let (b 1, b2 ... bk, bk + 1) be a cycle of length k+1. Then (b 1, b2, ... bk, bk + 1) = (b1, bk+1) o (b1, b2,
... bk) as may be verified by computing the composition. Using P(k), (b 1, b2, ... bk) = (b1, bk) o (b1, bk-1) o ... o (b1, b2). Thus,
by substitution,
(b1, b2, ... bk + 1) = (b1, bk + 1) o (b1, bk)o ... o(b1, bз) (b1, b2).
This completes the induction step. Thus, by the principle of mathematical induction, the result holds for every cycle.
For example,
Corollary 1: Every permutation of a finite set with atleast two elements can be written as a product of transpositions.
Theorem: If a permutation of a finite set can be written as a product of an even number of transpositions, then it can
A permutation of a finite set is called even if it can be written as a product of an even number of transpositions, and it
Then p = (3, 6) o (3, 5) o (1, 7).o (1, 4) o (1, 2). Since p is a product of an odd number of transpositions, it is an odd
permutation.
Sub-groups
Theorem 3.
The kernal of a homomorphism g from a group <G, *> to <H, ∆> is a subgroup of <G, *>.
Hence a-1 Є ker (g) and ker (g) is a subgroup of <G, *>.
Theorem 4.
(i.e.,) G = (a)
= am+n = am * an
=y*x
Example 1. Is the union of two subgroups of a group, a subgroup of G? Justify your answer.
⇒ 3 Є 3Z Є 3Z U 2Z = HUK
⇒ 2 Є 2Z Є 2Z U 3Z = HUK
Example 2. The identity element of a subgroup is same as that of the group. [A.U N/D 2012]
Solution: Let H be the subgroup of the group G and e and e' be the identity elements of G and H respectively.
Example 3. If H and K are subgroup of G, prove that HUK is a subgroup of G if and only if either H ≤ K or K ≤ H. [A.U N/D
2014]
Case (i): If a * b Є H
Case (ii) If a * b Є K
Then a * b * b-1 Є K
Example 4. Prove that the intersection of two subgroups of a group is a subgroup of G. [A.U M/J 2013, N/D 2013,
N/D 2014]
⇒ a*b-1 Є H∩K.
Example 5. Show that the set of all elements a of a group (G, *) such that a*x = x*a for every x Є G is a subgroup of
As ey = ye = y, ∀ y Є G, e Є G, H is non empty.
Let x and z in H
x z Є H, ∀ x, z Є H
X Є H ↔ xy = yx, ∀yЄG
↔ yx-1 = x-1y
↔ x-1 Є H
H is a subgroup.
Example 6. If 'a' is a generator of a cyclic group G, then show that 'a -1 is also a generator of G. [A.U M/J 2012]
x = an = (a-1)-n, (- n Є Z)
Example 7. Find all the subgroups of (Z9, +9) [A.U M/J 2014]
Solution: Z9 = {0, 1, 2, 3, 4, 5, 6, 7, 8}
H1 = {0, 2, 4, 6, 8}
H2 = {0, 3, 6}
H3 = {0, 4, 8}
H4 = {0, 5}
The improper subgroups of (Z9, +9) are [{0}, +9] and [Z9, +9]
Example 8. Any cyclic group of order n is isomorphic to the additive group of residue classes of integers modulo n.
Proof :
We know that (Zn, +n) is the additive group of residue classes modulo n.
For all [r] Є Zn, there exists a ar Є G such that ƒ (ar) = [r]
⇒ f is onto.
⇒ f is one-to-one.
= f (ar) + n ƒ (as)
X is well defined :
For a, b Є G, a = b ↔ ax = bx
↔ fa (x) = fb (x)
↔ fa = fb
↔ x (a) = x (b)
x is a homomorphism :
Example 10. Show that every cyclic group of order n is isomorphic to (Z n +n)
Define
f: D → Zn by
f(e) = [0] and f (ai) = [i] for i < n where f is one-one and onto.
= [i] + n[j]
= f (ai) + nf (aj)
Hence ƒ is an isomorphism.
Example 11. Define : Symmetric group, Dihedral group. Show that if (G, *) is a cyclic group, then every sub group of (G,
Solution: Let (G, *) be a cyclic group generated by "a", and let H be a subgroup of G. If H contains the identity element
alone, then trivially H is cyclic and H = (e). Suppose that H ≠ (e). Since H≤G, any element of H is of the form a k for some
integer K. Let
"m" be the smallest positive integer such that am Є H. We shall show that H is a cyclic group generated by a m. If ak Є H,
Hence ak = aqm+r = aqm, ar = (am)q. ar and from this it follows that a r = (am)-q. ak. Since am, ak Є H, we have ar Є H which is a
Thus every element of H is a power of am. Hence H is a cyclic group generated by am.
Example 12. Show that U9 is a cyclic group. What are all its generators?
21 = 2.22 = 4, 23 = 8, 24 = 7, 25 = 5, 26 = 1
since 21 = 2 and 25 = 5.
Here 32 = 1, 33 = 3, 34 = 1, 35 = 3, etc.
Now 52 = 1, 53 = 5, 54 = 1, 55 = 5, etc.
Again 72 = 1, 73 = 7, 74 = 1, 75 = 7, etc.
All the positive integers less than 16 and prime to 16 are 1, 3, 5, 7, 9, 11, 13, 15.
It can be verified that U17 = <3> i.e., every element of U17 is a power of 3. All the generators of U17 are
Let (H, *) be a subgroup of (G, *). For any a Є G, the set a H defined by
Note: The left coset of H in G determined by a Є G is the same as the equivalence class [a] determined by the relation
Let (H, *) be a subgroup of (G, *), then the number of different left (or right) cosets of H in G is called the index of H in
G.
G/N = {Na |a Є G}
Let (G, *) and (H, ∆) be two groups. The direct product of these two groups is the algebraic structure (G × H, o) in which
Let (G, *) and (G', .) be two groups. A mapping f: G→ G' is called a group homomorphism if
Let (G, *) and (G', .) be two groups with e' as the identity element of G'
all sub-group H of G.
Example 1: Let G = {1, a, a 2, a3} (a4 = 1), be a group and H = {1, a 2} is a subgroup of G under multiplication. Find all the
cosets of H.
Solution:
H1 = {1, a2} = H
Ha = {a, a3}
are two distinct right cosets of H in G. Similarly, we can find the left cosets of H in G.
Example 2: Find the left cosets of {[0], [2]} in the group (Z4, +4).
Solution :
Let Z4 = {[0], [1], [2], [3]} be a group and H= {[0], [2]} be a sub-group of Z 4 under +4 (addition mod 4).
Example 3: Let (G, *) be a group of order 2 in which G = {e, a}. Find the direct product of (G, *) with itself.
Solution :
From this composition table, we can easily write the direct product. The direct product of G with itself is (G x G, o)
where o is defined by (a1, b1) o (a2, b2) = (a1 * a2) (b1 * b2) for any (a1, b1) (a2, b2) Є G × G.
G = {e, a}
N/D 2010]
Solution :
= ax (a-1a) ya-1
= axya-1
= a (xy) a-1
= f (xy).
So f is a homomorphism.
f is one-to-one : If f (x) = f(y), then axa-1 = aya-1 so by left cancellation, we have xa -1 = ya-1, again by right cancellation we
get x = y.
= (aa-1) y (aa-1)
Thus f is an isomorphism.
Example 5: Any two infinite cyclic groups are isomorphic to each other.
Solution :
So f is a homomorphism.
Then bn-m = e' in G2. As G2 is an infinite cyclic group generated by, there is no non-zero integer k such that b k = e'. Hence
Let z Є G2. Then z=bn for some integer n. Now take x = an.
Example 6: Determine all the proper subgroups of the symmetric group (S S, ◊) described in table.
Solution: From the table it is clear that {P 1, P2}, {P1, P3}, {P1,P4} and {P1, P5, P6} are subgroups of (SS, ◊). The left cosets of
{P1, P2} are {P1, P2}, {P3, P6}, and {P4, P5}, while the right cosets of {P1, P2} are (P1, P2}, {P3, P5} and {P4, P6}. Hence (P1, P2} is
Similarly, we can show that {P 1, P3} and {P1, P4} are also not normal subgroups. On the other hand, the left and right
cosets of {P1, P5, P6} are {P1, P5, P6} and {P2, P3, P4}. Hence {P1, P5, P6} is a normal subgroup.
Example 7: How many generators are there in a cyclic group of order 10?
Solution:
(m, n) = 1
Now, we have
(1, 10) = 1
(3, 10) = 1
(7, 10) = 1
An algebraic system (S, +, .) is called a ring if the binary operations + and on S satisfy the following three properties :
2. (S, .) is a semigroup
A commutative ring (S, +, .) with identity and without divisors of zero is called can integral domain.
Definition 3: Field
A commutative ring (S, +, .) which has more than one element such that every non-zero element of S has a
A subset RCS where (S, +, .) is a ring is called a subring if (R, +, .) is itself with the operations + and restricted to R.
Examples:
2. In Z the ring of all integers the set of all even integers is a subring.
2. The ring Q of all rational numbers, and the ring R of real numbers are fields.
4. The ring (Z10, +10, ×10) is not an integral domain. (as 5 ×10 2 = 0, yet 5≠0, 2≠0 in Z10).
if a.b = b.a ∀ a, b Є R
Example 1: Define ring and give an example of an ring with zero-divisors. [A.U. N/D, 2005]
An algebraic system (S, +, .) is called a ring if the binary operations + and . on S satisfy the following three properties.
Example 2: Prove that the set Z 4 = {[0], [1], [2], [3]} is a commutative ring with respect to the binary operation addition
Solution :
The composition tables for additive modulo 4 multiplicative modulo 4 are shown below.
a +4 (b +4 c) = (a +4 b) +4 c
and a ×4 (b ×4 c) = (a ×4 b) ×4 c
Since, 0 +4 (1 +4 2) = 0 +4 3 = 3
and (0 +4 1) +4 2 = 1 +4 2 = 3
0 +4 (1 +4 2) = (0 +4 1) +4 2
Also, 1 ×4 (2 ×4 3) = (1 ×4 2) = 2
and (1 ×4 2) ×4 3 = 2 ×4 3 = 2
1 ×4 (2 ×4 3) = (1 ×4 2) ×4 3
of Z4.
a ×4 (b +4 c) = (a ×4 b) +4 (a ×4 c).
and (a +4 b) ×4 c = (a ×4 c) +4 (b ×4 c)
Example 3: Give an example of a ring which is not a field. [A.U N/D 2013]
Solution :