Algebraic Structure in Discrete MathematicsThe algebraic structure is a type of nonempty set G which is equipped with one or more than one binary operation. Let us assume that * describes the binary operation on nonempty set G. In this case, (G, *) will be known as the algebraic structure. (1, ), (1, +), (N, *) all are algebraic structures. (R, +, .) is a type of algebraic structure, which is equipped with two operations (+ and .) Binary Operation of SetIn the binary operation, binary stands for two. A binary operation is a type of operation that needs two inputs, which are known as the operands. When we perform multiplication, division, addition, or subtraction operations on two numbers, then we will get a number. The two elements of a set are associated with binary operations. The result of these two elements will also be in the same set. So we can say that if we perform a binary operation on a set, then it will perform calculations that combine two elements of the set and generate another element that belongs to the same set. Let us assume that there is a nonempty set called G. A function f from G × G to G is known as the binary operation on G. So f: G × G → G defines a binary operation on G. Examples of Binary operationIn this example, we will take the two natural numbers or two real numbers and perform binary operations such as addition, multiplication, subtraction, and division on these numbers. The algebraic operation on two natural numbers or real numbers will generate a result. If we get a natural number or real number as a result, then we will consider that binary operation in our set. Addition: We will learn about addition, which is a binary operation. Suppose we have two natural numbers(a, b). Now if we add these numbers, then it will generate a natural number as a result. For example: Suppose there are 6 and 8 two natural numbers and the addition of these numbers are
6 + 8 = 14
Hence, the result 14 is also a natural number. So, we will consider an addition in our set. The same process will be followed for real numbers as well.
+: N + N → N is derived by (a, b) → a + b
+: R + R → R is derived by (a, b) → a + b Multiplication: Now we will learn multiplication, which is a binary operation. If we multiply two natural numbers (a, b), then it will generate a natural number as a result. For example: Suppose there are 10 and 5 two natural numbers and the multiplication of these numbers are:
10 * 5 = 50
Hence, the result 50 is also a natural number. So we will consider multiplication in our set. The same process will be followed for real numbers as well.
+: N × N → N is derived by (a, b) → a × b
+: R × R → R is derived by (a, b) → a × b Subtraction: Now we will learn subtraction, which is a binary operation. If we subtract two real numbers (a, b), then it will also generate a real number as a result. The same process will not be followed for natural numbers, because if we take two natural numbers to perform binary subtraction, then it is not compulsory that it will generate a natural number. For example: Suppose we take two natural numbers 5 and 7 and the subtraction of these numbers are
5  7 = 2
Hence, the result is not a natural number. So we will not consider subtraction in our set.
 : R x R → R is derived by (a, b)→ a  b
Division Now we will learn division, which is a binary operation. If we divide two real numbers (a, b), then it will also generate a real number as a result. The same process will not be followed for natural numbers, because if we take two natural numbers to perform binary division, then it is not compulsory that it will generate a natural number. For example: Suppose we take two natural numbers 10 and 6 and the division of these numbers is
10/6 = 5/3
Hence, the result 5/3 is not a natural number. So we will not consider division in our set.  : R  R → R is derived by (x, y) → x  y Properties of Algebraic structureCommutative: Suppose set G contains a binary operation *. The operation * is called to be commutative in G if it holds the following relation:
x * y= y * x for all x, y in G
Associative: Suppose set G contains a binary operation *. The operation * is called to be associative in G if it holds the following relation:
(x*y)*z = x *( y*z) for all x, y, z in G
Identity: Suppose we have an algebraic system (G, *) and set G contains an element e. That element will be called an identifying element of the set if it contains the following relation:
x * e = e * x = x for all x
Here, element e can be referred to as an identity element of G, and we can also see that it is necessarily unique. Inverse: Suppose there is an algebraic system (G, *), and it contains an identity e. We will also assume that the set G contains the elements x and y. The element y will be called an inverse of x if it satisfies the following relation:
x * y = y * x = e
Here, element x can also be referred to as inverse of y, and we can also see that it is necessarily unique. The inverse of x can also be referred to as x^{1} like this:
x * x^{1} = x^{1 }* x = e
Cancellation Law: Suppose set G contains a binary operation *. The operation * is called to be left cancellation law in G if it holds the following relation:
x * y = x * z implies y = z
It will be called the right cancellation law if it holds the following relation:
y * x = z * x implies y = z
Types of Algebraic structureThere are various types of algebraic structure, which is described as follows:
All these algebraic structures have wide application in particular to binary coding and in many other disciplines. Semi GroupSuppose there is an algebraic structure (G, *), which will be known as semigroup if it satisfies the following condition:
Note: An algebraic structure is always shown by semigroup.Example 1: The examples of semigroup are (Matrix, *) and (Set of integer, +). Example 2: The semigroup contains a set of positive integers with an additional or multiplication operation. The positive integers will not contain zero. For example: Suppose we have a set G, which contains some positive integers except zero such as 1, 2, 3, and so on like this:
G = {1, 2, 3, 4, 5, …..}
Monoid:A monoid is a semigroup, but it contains an extra identity element (E or e). An algebraic structure (G, *) will be known as a monoid if it satisfies the following condition:
Note: An algebraic structure and a semigroup are always shown by a monoid.Example 1: In this example, we will take (Set of integers, *), (Set of natural numbers, +), and (Set of whole numbers, +). Where
Example 2: The monoid contains a set of positive integers with additional or multiplication operations except zero. For example: Suppose we have a set G, which contains some positive integers like 1, 2, 3, and so on like this:
G = {1, 2, 3, 4, 5, …..}
Group:A Group is a monoid, but it contains an extra inverse element, which is denoted by 1. An algebraic structure (G, *) will be known as a group if it satisfies the following condition:
Note: An algebraic structure, semigroup, and monoid are always shown by a Group.Example 1: The examples of group are Matrix multiplication and (Z, +). Example 2: In this example, we will use the matrix multiplication operation on the set of nonsingular matrices N × N from a group.
Abelian GroupAn abelian group is a group, but it contains commutative law. An algebraic structure (G, *) will be known as an abelian group if it satisfies the following condition:
Note: (Z, +) is an Abelian group because it is commutative, but matrix multiplication is not commutative that's why it is not an abelian group.Example: Suppose we have a set G, which contains some positive integers except zero such as 1, 2, 3, and so on with additional operations like this:
G = {1, 2, 3, 4, 5, …..}
Next TopicCounting principle
