Unit 2 - Discrete Structures - WWW - Rgpvnotes.in
Unit 2 - Discrete Structures - WWW - Rgpvnotes.in
Tech
Subject Name: Discrete Structure
Subject Code: CS-302
Semester: 3rd
Downloaded from be.rgpvnotes.in
Subject Notes
CS301 - Discrete Structures
UNIT-2
Group Theory is a branch of mathematics and abstract algebra that defines an algebraic structure named as
Group. Generally, a group comprises of a set of elements and an operation over any two elements on that set
to form a third element also in that set. In 1854, Arthur Cayley, the British Mathematician, gave the modern
defi itio of g oup fo the fi st ti e −
“A set of symbols all of them different, and such that the product of any two of them (no matter in what
order), or the product of any one of them into itself, belongs to the set, is said to be a group. These symbols
are ot i ge eral o verti le [ o utative], ut are asso iative.”
Any set of elements in a mathematical system may be defined with a set of operators and a number of
postulates.
Algebric Structure
an algebraic structure is a set (called carrier set or underlying set) with one or more finitary operations defined
on it that satisfies a list of axioms.
A binary operator defined on a set of elements is a rule that assigns to each pair of elements a unique element
from that set. For example, given the set A={1,2,3,4,5}
, we can say o is a binary operator for the operation c=aob, if it specifies a rule for finding c for the pair of (a,b),
such that a,b,c A.
Semigroup
A finite or infinite set S′ ith a i a ope atio ο′ (Composition) is called semigroup if it holds following two
o ditio s si ulta eousl −
i. Closure − Fo e e pai a,b) S,(aο ) has to be present in the set S
ii. Associative − Fo e e ele e t a,b,c S,(aο )ο =aο( ο ) must hold.
Example
The set of positive integers (excluding zero) with addition operation is a semigroup. For example, S={ , , ,…}
Here closure property holds as for every pair (a,b) S,(a+b) is present in the set S. For example, 1+2=3 S]
Associative property also holds for every element a,b,c S,(a+b)+c=a+(b+c). For example, (1+2)+3=1+(2+3)=5
Monoid
A monoid is a semigroup with an identity element. The identity element (denoted by e or E) of a set S is an
element such that (aοe)=a, for every element a S. An identity element is also called a unit element. So, a
o oid holds th ee p ope ties si ulta eousl − Closure, Associative, Identity element.
Example
The set of positive integers (excluding zero) with multiplication operation is a monoid. S={ , , ,…}
1. Here closure property holds as for every pair (a,b) S,(a×b) is present in the set S. [For example,
1×2=2 S and so on]
2. Associative property also holds for every element a,b,c S,(a×b)×c=a×(b×c) [For example,
(1×2)×3=1×(2×3)=6 and so on]
3. Identity property also holds for every element a S,(a×e)=a [For example, (2×1)=2,(3×1)=3
and so on]. Here identity element is 1.
Group
A group is a monoid with an inverse element. The inverse element (denoted by I) of a set S is an element such
that (aοI)=(Iοa)=a , for each element a S . So, a group holds four properties simultaneously –
Abelian Group
An abelian group G is a group for which the element pair (a,b) G always holds commutative law. So, a group
holds five properties simultaneously –
i) Closure, ii) Associative, iii) Identity element, iv) Inverse element, v) Commutative.
Example
The set of positive integers (including zero) with addition operation is an abelian group. G={ , , , ,…}
1. Here closure property holds as for every pair (a,b) S,(a+b) is present in the set S. [For example,
1+2=2 S and so on]
2. Associative property also holds for every element a,b,c S,(a+b)+c=a+(b+c) [For example,
(1+2)+3=1+(2+3)=6 and so on]
3. Identity property also holds for every element a S,(a×e)=a [For example, (2×1)=2,(3×1)=3 and so on].
Here, identity element is 1.
4. Commutative property also holds for every element a S,(a×b)=(b×a) [For example, (2×3)=(3×2)=3
5. Inverse Property also holds for every element a • b = b • a = e [For example 0+1 = 1+0 =1]
1. If G is a group with binary operation , then the left and right cancellation laws hold in G. that is, a b=a c
Properties of Groups
2. If G is a group with binary operation , and if a and b are any elements of G, then the linear equations a
x=b and y a=b have unique solutions x and y in G.
Proof: First we show the existence of at least one solution by just computing that a b is a solution of a x=b.
Note that
a * a * = a *a * , asso iati e la ,
=e * , defi itio of a ,
=b, property of e.
3. In a group G with binary operation , there is only one element e in G such that
e x=xe=x
for all x G. Likewise for each a G, the e is o l o e ele e t a i G su h that
a a=aa =e
Coset
Gi e H G, a left oset of H i G is a su set of G of the fo gH = {gh|h H} for some g G. Similarly a right
coset of H in G is a subset of G of the form Hg = {hg|h H} for some g G. Notice since g = eg = ge that g Hg
and g gH.
Example Suppose G = Σ 3, H =< (1, 2) >= {e,(1, 2)} and g = (1, 3). Then a simple computation shows that gH = {(1,
3),(1, 2, 3)} while Hg = {(1, 3),(1, 3, 2)} and sogH 6= Hg. Thus we see that for a fixed element g, the left cosetgH
may be different from the right coset Hg in general.
Multiplying elements and setsOf course, the expression gH does not make immediate sense from the group
axioms. What it means, by definition, is gH = {gh | h H} .
To put this another way, the golden rule is this: if you know that f gH, then you can conclude that there is
some h H so that f = gh.
Applying the golden rule Consider G = S4 and H = {id,(1, 2)}. If g = (2, 3, 4), thengH = {(2, 3, 4),(2, 3, 4)(1, 2)} =
{(2, 3, 4),(1, 3, 4, 2)}. Now let f = (3, 4, 2, 1)—this is an element of gH. Which h H satisfies f = gh?
Or
if g = (1, 3)(2, 4), then gH = {(1, 3)(2, 4),(1, 4, 2, 3)}. If you let f = (1, 4, 2, 3), which h H satisfies f = gh this
time?
compute the two cosets g1H ⊂ S4 and g2H ⊂ S4 for H = {id,(1, 2, 3, 4),(1, 3)(2, 4),(1, 4, 3, 2)} and g1 = (1, 3, 2),
g2 = (1, 2, 3, 4).
Factor Group
If N is a normal subgroup of G, then the group of left cosets of N in G is called the factor group of G
determined by N. It will be denoted by G/N.
Example Let N be a normal subgroup of G. If a G, then the order of aN in G/N is the smallest positive integer
n such that an N.
Permutations Group
A permutation of a set X is a function σ : X → X that is o e-to-one and onto, i.e., a bijective map.
Example
A = {1,2,3}
There are six permutations for this set, namely
1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3
1 2 3 1 3 2 2 1 3 2 3 1 3 1 2 3 2 1
Normal Subgroup
A normal subgroup is a subgroup which is invariant under conjugation by members of the group of which it is a
part. In other words, a subgroup H of a group G is normal in G if and only if gH = Hg for all g in G; i.e., the sets
of left and right cosets coincide.
gH = Hg
Homomorphism
Definition: A g oup ho o o phis φ : G → G is a iso o phis if φ is a bijection. If there is an isomorphism
between G and G0 we say G and G0 are isomorphic. This is denoted by G ∼= G0 .
Gi e a ho o o phis φ : G → G the e a e su g oups of ea h that a i di ate to us hethe φ is i je ti e
or surjective. Definition. Let φ : G → G e a ho o o phis . Defi e ke φ = {g G : φ g = eG }. This is alled
the ke el of φ. Defi e i φ = {φ g : g G}. This is alled the i age of φ. We usuall use the otatio φ G fo
im(G).
Example If φ : GL ‘ → ‘\{ } is gi e φ A = det A the ke φ A = SL ‘ a d i φ = ‘\{0}.
Isomorphism
The ho o o phis φ : G → G is a iso o phis if a d o l if the e e ists a ho o o phis ψ : G → G
su h that φ ◦ ψ = ψ ◦ φ a e ide tit aps o thei espe ti e g oups.
Proof : Defi e ψ a to be the unique pre-i age of a u de φ. Si e φ is a ije tio , this is ell defi ed a d φ ◦
ψ = ψ ◦ φ a e ide tit aps et ee thei espe ti e g oups. O e eeds to he k ψ is i deed a
ho o o phis , ut this effe ti el o es fo f ee si e φ is o e.
(G2) (a + b) + c = a + (b + c)
(G3) the identity element is 0 as a + 0 = 0 + a = a and 0 Z
(G4) the inverse of a ) is −a as a + −a = −a + a = a d −a Z (G5) a + b = b + a
Ring
The definition of a ring: A structure (R, +, ·) is a ring if R is a non-empty set and + and · are binary operations:
+: ‘ × ‘ → ‘, a, → a + · : ‘ × ‘ → ‘, a, →a·
such that
Addition: (R, +) is an abeliangroup, that is,
(A1) associativity: for all a, b, c R we have a + (b + c) = (a + b) + c
(A2) zero element: there exists 0 R such that for all a R we have a + 0 = 0 + a = a
(A3) inverses: for any a ‘ the e e ists −a ‘ su h that a + −a = −a + a =
(A4) commutativity: for all a, b R we have a + b = b + a
Multiplication:
(M1) associativity: for all a, b, c R we have a · (b · c) = (a · b) · c
Special types of rings: definitions. Assume (R; +, ·) is a ring. We say R is a commutative ring if its multiplication ·
is commutative, that is,
(M4) Commutativity: a · b = b · a for all a, b R. We say R is a ring with 1 (or ring with identity) if there exists an
identity for multiplication, that is,
(M2) identity element: there exists 1 R such that for all a R we have a · 1 = 1 · a = a.
Examples of rings
Number systems
(1) All of Z, Q, R and C are commutative rings with identity (with the number 1 as the identity).
(2) N is NOT a ring for the usual addition and multiplication. These are binary operations and we do have a zero
element, namely 0, so axiom (A2) holds. However (A3) (existence of additive inverses) fails: there is no n N
for which 1 + n = 0, for example.
(3) Consider the set of even integers, denoted 2Z, with the usual addition and multiplication. This is a
commutative ring without an identity. To verify that (M2) fails it is not sufficient just to say that the integer 1
does not belong to 2Z. Instead we argue as follows. Suppose for contradiction that there were an element e
2Z such that n·e = n for all n 2Z. In particular 2e = 2, from which we deduce that e would have to be 1. Since
1 / 2Z we have a contradiction.
Matrix rings Under the usual matrix addition and multiplication Mn(R) and Mn(C), are rings with 1, but are not
commutative (unless n = 1). If we restrict to invertible matrices we no longer have a ring, because there is then
no zero for addition.
PolynomialsPolynomials, with real coefficients, form a commutative ring with identity under the usual addition
and multiplication; we denote this by R[x].
Modular arithmetic Binary arithmetic on {0, 1} (see 1.2(4)) gives us a 2-element commutative ring with
identity. More generally we get a commutative ring with identity if we consider addition and multiplication
od o { , , . . . , − }.
Calculational rules for rings.
Assume that (R; +, ·) is a commutative ring.
Let a, b, c R.
(i) If a + b = a + c then b = c.
(ii) If a + a = a then a = 0.
iii − −a = a.
(iv) 0a = 0.
− a = −a = a − . Assu e i additio that ‘ has a ide tit The
i − a = −a.
(vii) If a R has a multipli ati e ide tit a − the a = i plies = .
Field
A field is a ring in which the elements, other than the identity element for addition, and the multiplication
operator, also form a group.
● There are only two kinds of finite fields. One kind is the field formed by addition and multiplication
modulo a prime number.
● The other kind of finite field has a number of elements that is a power of a prime number.
● The addition operator consists of multiple independent additions modulo that prime. The elements of
the field can be thought of as polynomials whose coefficients are numbers modulo that prime. In that
case, multiplication is polynomial multiplication, where not only the coefficients modulo that prime,
but the polynomials are modulo a special kind of polynomial, known as a primitive polynomial. All finite
fields, but particularly those of this second kind, are known as Galois fields.
● A commutative ring which has more than one element such that every non-zero element of S has a
multiplicative inverse in S is called a field.
The i g of e e i tege s is a su i g of the i g of i tege s. Let •> a d Å , ¤ > e i gs. A appi g of g : ‘® S is
alled a i g ho o o phis f o a d Å ,¤ > if fo a a, , Î ‘ g a + = g a Å g a d g a • = g a ¤ g .
Standard results
If R is a ring and a, b, c, d R, evaluate (a + b)(c + d).