Algebraic structures: groups, rings and fields — Unit 3 Notes (Discrete Structures and Theory of Logic)

BCS302 · Unit 3

Algebraic structures: groups, rings and fields notes — Unit 3

Free unit-wise study notes on algebraic structures: groups, rings and fields for Discrete Structures and Theory of Logic, Semester 3 of B.Tech — Computer Science & Engineering — key concepts, examples, important questions and a revision checklist for semester exams.

An introduction to Abstract Algebra. Covers Binary Operations, Semi-groups, Monoids, Groups (Abelian and Cyclic), Cosets, Lagrange's Theorem, Rings, and Fields. Critical for cryptography.

Notebook — 14 pages

Page 1

Wink Notes

B.Tech CSE — 3rd Semester

Discrete Structures and Theory of Logic

Unit - 3

1. Algebraic Structures & Binary Operations

An Algebraic Structure consists of a non-empty set SS equipped with one or more binary operations, along with axioms that these operations must satisfy.

1.1 Binary Operation

A binary operation \ast on a set SS is a function from S×SS \times S to SS. This simply means that if you take any two elements from SS and apply the operation, the result must also be an element of SS. This property is known as Closure.

  • Example: Addition (++) is a binary operation on the set of Natural Numbers N\mathbb{N}.
  • Counter-example: Subtraction (-) is not a binary operation on N\mathbb{N}, because 35=23 - 5 = -2, and 2N-2 \notin \mathbb{N}.

Next — Properties of Binary Operations

1 of 14

Page 2

Wink Notes

B.Tech CSE — 3rd Semester

Discrete Structures and Theory of Logic

Unit - 3

2. Properties of Binary Operations

A binary operation \ast on a set SS can exhibit several mathematical properties:

  • Associative: For all a,b,cSa, b, c \in S, (ab)c=a(bc)(a \ast b) \ast c = a \ast (b \ast c).
  • Commutative: For all a,bSa, b \in S, ab=baa \ast b = b \ast a.
  • Identity Element: An element eSe \in S such that for all aSa \in S, ae=ea=aa \ast e = e \ast a = a. (e.g., 00 for addition, 11 for multiplication).
  • Inverse Element: For a given aSa \in S, an element a1Sa^{-1} \in S such that aa1=a1a=ea \ast a^{-1} = a^{-1} \ast a = e. (e.g., a-a for addition, 1/a1/a for multiplication).

Next — Semi-groups and Monoids

2 of 14

Page 3

Wink Notes

B.Tech CSE — 3rd Semester

Discrete Structures and Theory of Logic

Unit - 3

3. Semi-groups and Monoids

Algebraic structures are classified based on which properties their binary operations satisfy.

3.1 Groupoid (Magma)

A set SS with a binary operation \ast that satisfies only Closure.

3.2 Semi-group

A Groupoid that also satisfies the Associative property.
(Closure + Associativity).

3.3 Monoid

A Semi-group that contains an Identity element.
(Closure + Associativity + Identity).

Example: The set of Natural numbers N\mathbb{N} under multiplication is a Monoid (identity is 1). But N\mathbb{N} under addition is only a Semi-group if we don't include 0 in N\mathbb{N}.

Next — Groups

3 of 14

Page 4

Wink Notes

B.Tech CSE — 3rd Semester

Discrete Structures and Theory of Logic

Unit - 3

4. Groups

A Group (G,)(G, \ast) is a Monoid where every element has an Inverse.

4.1 The Four Group Axioms

  • 1. Closure: For all a,bGa, b \in G, abGa \ast b \in G.
  • 2. Associativity: For all a,b,cGa, b, c \in G, (ab)c=a(bc)(a \ast b) \ast c = a \ast (b \ast c).
  • 3. Identity: There exists eGe \in G such that ae=ea=aa \ast e = e \ast a = a.
  • 4. Inverse: For every aGa \in G, there exists a1Ga^{-1} \in G such that aa1=a1a=ea \ast a^{-1} = a^{-1} \ast a = e.

4.2 Abelian (Commutative) Group

A Group that also satisfies the Commutative property: ab=baa \ast b = b \ast a for all a,bGa, b \in G.

Example: The set of Integers Z\mathbb{Z} under addition is an Abelian Group. (Closure: yes. Assoc: yes. Identity: 0. Inverse: a-a. Commutative: yes).

Next — Order of a Group and Element

4 of 14

Page 5

Wink Notes

B.Tech CSE — 3rd Semester

Discrete Structures and Theory of Logic

Unit - 3

5. Order of a Group and its Elements

5.1 Order of a Group

The Order of a Group GG, denoted by G|G| or O(G)O(G), is the number of elements in the set GG. A group can be finite or infinite.

5.2 Order of an Element

The Order of an element aGa \in G, denoted by O(a)O(a), is the smallest positive integer nn such that an=ea^n = e (where ee is the identity element).

*Note: ana^n means applying the binary operation nn times: aaaa \ast a \ast a \dots If the operation is addition, it means na=ena = e.*

If no such integer nn exists, the element is said to have infinite order.

Next — Subgroups

5 of 14

Page 6

Wink Notes

B.Tech CSE — 3rd Semester

Discrete Structures and Theory of Logic

Unit - 3

6. Subgroups

A subset HH of a group GG is called a Subgroup if HH itself forms a group under the same binary operation defined on GG.

6.1 Subgroup Tests

To prove a subset HH is a subgroup, we don't need to check all four axioms. We can use simplified tests:

  • Two-Step Test: HH is a subgroup if it is closed under the operation (if a,bHa, b \in H, then abHa \ast b \in H) AND closed under inverses (if aHa \in H, then a1Ha^{-1} \in H).
  • One-Step Test: HH is a subgroup if for any a,bHa, b \in H, ab1Ha \ast b^{-1} \in H.

Every group GG has at least two trivial subgroups: the group GG itself, and the subgroup consisting only of the identity element {e}\{e\}.

Next — Cyclic Groups

6 of 14

Page 7

Wink Notes

B.Tech CSE — 3rd Semester

Discrete Structures and Theory of Logic

Unit - 3

7. Cyclic Groups

A group GG is called Cyclic if there exists at least one element gGg \in G such that every other element in the group can be generated by repeatedly applying the group operation on gg.

The element gg is called a generator of the group, and we write G=gG = \langle g \rangle.

For a multiplicative group: G={gnnZ}G = \{g^n \mid n \in \mathbb{Z}\}
For an additive group:
G={ngnZ}G = \{ng \mid n \in \mathbb{Z}\}

7.1 Properties of Cyclic Groups

  • Every cyclic group is Abelian (commutative).
  • Every subgroup of a cyclic group is also cyclic.
  • If a group has a prime order, it must be cyclic.

Next — Cosets

7 of 14

Page 8

Wink Notes

B.Tech CSE — 3rd Semester

Discrete Structures and Theory of Logic

Unit - 3

8. Cosets

Let HH be a subgroup of GG, and let aa be any element in GG.

8.1 Left and Right Cosets

  • Left Coset (aHaH): The set obtained by applying the operation between aa and every element of HH. aH={ahhH}aH = \{a \ast h \mid h \in H\}
  • Right Coset (HaHa): Ha={hahH}Ha = \{h \ast a \mid h \in H\}

If GG is an Abelian group, the left and right cosets are always equal (aH=HaaH = Ha).

8.2 Properties of Cosets

  • A coset is not necessarily a subgroup (it usually doesn't contain the identity).
  • Two left cosets are either identical or completely disjoint (no common elements).
  • The union of all distinct left cosets of HH is exactly the group GG. Thus, cosets partition the group.

Next — Lagrange's Theorem

8 of 14

Page 9

Wink Notes

B.Tech CSE — 3rd Semester

Discrete Structures and Theory of Logic

Unit - 3

9. Lagrange's Theorem

This is one of the most important theorems in group theory.

9.1 Statement

Lagrange's Theorem: If GG is a finite group and HH is a subgroup of GG, then the order of the subgroup HH divides the order of the group GG.

Mathematically: O(G)=kO(H)O(G) = k \cdot O(H), where kk is an integer (specifically, kk is the number of distinct cosets of HH, called the index of HH).

9.2 Corollaries (Consequences)

  • The order of any element aGa \in G must divide the order of GG.
  • A group of prime order has no proper non-trivial subgroups (because a prime number has no divisors other than 1 and itself).
  • Consequently, every group of prime order is cyclic.

Next — Rings

9 of 14

Page 10

Wink Notes

B.Tech CSE — 3rd Semester

Discrete Structures and Theory of Logic

Unit - 3

10. Rings

A Ring (R,+,)(R, +, \cdot) is an algebraic structure equipped with two binary operations, usually called addition (++) and multiplication (\cdot).

10.1 Ring Axioms

  • 1. Under Addition: (R,+)(R, +) must be an Abelian Group. (Closed, Associative, Identity 00, Inverse a-a, Commutative).
  • 2. Under Multiplication: (R,)(R, \cdot) must be a Semi-group. (Closed, Associative).
  • 3. Distributive Laws: Multiplication distributes over addition. a(b+c)=(ab)+(ac)a \cdot (b + c) = (a \cdot b) + (a \cdot c) and (a+b)c=(ac)+(bc)(a + b) \cdot c = (a \cdot c) + (b \cdot c).

Example: The set of Integers Z\mathbb{Z} under standard addition and multiplication forms a ring.

Next — Types of Rings

10 of 14

Page 11

Wink Notes

B.Tech CSE — 3rd Semester

Discrete Structures and Theory of Logic

Unit - 3

11. Types of Rings

11.1 Commutative Ring

A ring is commutative if its multiplication operation is commutative: ab=baa \cdot b = b \cdot a.

11.2 Ring with Unity

A ring that contains a multiplicative identity element, usually denoted as 11, such that a1=1a=aa \cdot 1 = 1 \cdot a = a.

11.3 Zero Divisors

In standard arithmetic, if ab=0a \cdot b = 0, then either a=0a = 0 or b=0b = 0. However, in some rings (like matrices or modulo arithmetic), you can have non-zero elements aa and bb such that ab=0a \cdot b = 0. These elements are called zero divisors.

11.4 Integral Domain

A commutative ring with unity that has no zero divisors. (If ab=0a \cdot b = 0, then strictly a=0a=0 or b=0b=0).

Next — Fields

11 of 14

Page 12

Wink Notes

B.Tech CSE — 3rd Semester

Discrete Structures and Theory of Logic

Unit - 3

12. Fields

A Field is the most highly structured algebraic system we study. It is essentially an Integral Domain where division is possible.

12.1 Field Axioms

A Field (F,+,)(F, +, \cdot) must satisfy:

  • 1. Under Addition: (F,+)(F, +) is an Abelian Group (Identity is 00).
  • 2. Under Multiplication: (F{0},)(F - \{0\}, \cdot) is an Abelian Group. This means every non-zero element must have a multiplicative inverse (allowing for division).
  • 3. Distributive Laws: Multiplication distributes over addition.

Examples: Rational numbers Q\mathbb{Q}, Real numbers R\mathbb{R}, and Complex numbers C\mathbb{C} are all fields. Integers Z\mathbb{Z} is not a field because elements like 22 do not have a multiplicative inverse in Z\mathbb{Z} (1/2 is not an integer).

Next — Finite Fields (Galois Fields)

12 of 14

Page 13

Wink Notes

B.Tech CSE — 3rd Semester

Discrete Structures and Theory of Logic

Unit - 3

13. Finite Fields (Galois Fields)

A field that contains a finite number of elements is called a Finite Field or a Galois Field.

13.1 Modulo Prime Fields

The set of integers modulo a prime number pp, denoted as Zp\mathbb{Z}_p, forms a finite field.

Example: Z5={0,1,2,3,4}\mathbb{Z}_5 = \{0, 1, 2, 3, 4\} under addition and multiplication modulo 5 is a field. Every non-zero element has a multiplicative inverse.
- Inverse of 2 is 3 (because
23=61(mod5)2 \cdot 3 = 6 \equiv 1 \pmod 5).
- Inverse of 4 is 4 (because
44=161(mod5)4 \cdot 4 = 16 \equiv 1 \pmod 5).

13.2 Non-Prime Modulo

If nn is a composite number (e.g., 6), then Zn\mathbb{Z}_n is a Ring, but not a Field. It will contain zero divisors. (In Z6\mathbb{Z}_6, 23=60(mod6)2 \cdot 3 = 6 \equiv 0 \pmod 6, yet neither 22 nor 33 is zero).

Next — Summary & Review Checklist

13 of 14

Page 14

Wink Notes

B.Tech CSE — 3rd Semester

Discrete Structures and Theory of Logic

Unit - 3

14. Summary & Review Checklist

Algebraic structures build incrementally: from simple sets to Fields.

14.1 University Exam Checklist

  • Define Semi-group, Monoid, Group, and Abelian Group.
  • Show that the set of integers modulo nn under addition is a cyclic group.
  • State and prove Lagrange’s Theorem.
  • Define an Integral Domain and a Field. Explain the difference between them.
  • Prove that every finite integral domain is a field.
  • Prove that the intersection of two subgroups is a subgroup.

14.2 Application in Computer Science

  • Cryptography: Finite Fields (specifically Galois Fields GF(2n)GF(2^n)) form the mathematical foundation of the Advanced Encryption Standard (AES).
  • Public Key Cryptography: The RSA algorithm relies heavily on the properties of cyclic groups, prime factorization, and Euler's Totient function (which derives from group order).
  • Error Correcting Codes: Reed-Solomon codes used in CDs, DVDs, and QR codes operate over finite fields to detect and correct data corruption.

14 of 14

Continue in this subject