The Wayback Machine - https://web.archive.org/web/20241008055326/https://www.geeksforgeeks.org/binary-operation/
Open In App

Binary Operation

Last Updated : 20 Aug, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Binary Operation is an operation defined for any set S such that it takes two elements from S as input and produces a single element in S as output. As the name suggests, binary operations require at least two inputs as it is defined from the cartesian product of set to set itself.

In this article, we will explore binary operations its definition, properties, types of binary operations, and many more. We will also discuss the applications of binary operations and solve some examples on it. Let’s start our learning on the topic “Binary Operation”.

What are Binary Operations?

Binary operations are the operations that are performed on two inputs. Some fundamental binary operations are addition, subtraction, multiplication, and division. The inputs are known as the operands. Binary operations also have several properties like closure property, associative property, commutative property, identity element, and inverse element.

Binary Operation Definition

Binary operation is defined as the operation on set S which maps the cartesian product of S to the element that belongs to S. Binary operation * on S with elements a and b can be represented as:

* : S × S → S such that for all a, b; a*b ∈ S

\times is a binary operation.

Binary Operations

Properties of Binary Operations

Binary operations are the operations performed on two elements of a set and the result also belongs to the same set. Some of the properties of the binary operations are:

  • Closure Property in Binary Operations
  • Associativity of Binary Operations
  • Commutativity of Binary Operations
  • Identity Element of Binary Operations
  • Inverse Element of Binary Operations

Closure Property in Binary Operations

The closure property in binary operation * on set X with element x and y is defined as:

x ∈ X, y ∈ X ⇒ x * y ∈ X

If x and y belong to a set X then the result of the binary operation between them will also belong to the set X

Associativity of Binary Operations

Associativity of binary operation * on set X with element x, y and z is defined as:

(x * y) * z = x* (y * z)

Commutativity of Binary Operations

Commutativity of binary operation * on set X with element x and y is defined as:

x * y = y * x

Identity Element of Binary Operations

Identity element of binary operation * on set X with element x and e is defined as:

x * e = e * x = x

Then, e is called the identity element.

Inverse Element of Binary Operations

Inverse element of binary operation * on set X with element x, y and e is defined as:

x * y = y * x = e

Then x is inverse of y and y is inverse of x.

Read More,

Types of Binary Operations

Binary operations are operations which require two inputs. Some of the common types of binary operations are as follows:

Let’s discuss these common types in detail as follows:

Binary Addition

Binary addition is an operation on a set A with elements x and y defined as:

+ : A × A → A such that (x, y) → x + y

Binary Subtraction

Consider a set A with elements x and y. Binary subtraction is a closed binary operation on A such that:

– : A × A → A such that (x, y) → x – y

Binary Multiplication

Binary multiplication is a binary operation defined on a set A, where each element x and y in A is paired with the operation symbol ×, resulting in x × y, which belongs to the set A. Mathematically this can be written as:

× : A × A → A such that (x, y) → x × y

Binary Division

Binary division on a set A with elements x and y is a binary operation denoted as / and defined as:

/ : A × A → A such that (x, y) → x / y

Binary Operation Table

A binary operation table, also known as a Cayley table or operation table, is a systematic way to display the results of applying a binary operation to elements of a set.

In this table, each row represents one of the elements of the set, and each column represents another element. The cell at the intersection of a row and a column contains the result of applying the binary operation to the corresponding pair of elements.

For example, let’s consider a set A={0, 1, 2, 3} with addition modulo(⊕) as operation.

⊕1234
12341
23412
34123
41234

Applications of Binary Operations

Some of the common applications of binary operations are:

  • Binary operations are fundamental in abstract algebra, where they are used to define algebraic structures such as groups, rings, and fields.
  • In combinatorics, binary operations are used to study various counting problems, permutations, and combinations.
  • Binary operations are extensively used in computer science for bitwise operations, such as AND, OR, XOR, and complement operations, which are fundamental in digital logic and computer arithmetic.
  • In electrical engineering, binary operations are essential for digital signal processing, coding theory, and error detection/correction techniques.

Read More,

Binary Operation Examples

Example: Consider a binary operation * on set X = {1, 2, 3, 4, 5} defined by x*y = min (x, y). With the help of below table find:

(i) Compute (4 * 5) * 1

(ii) Is * commutative?

(iii) Compute (2 * 5) * (1 * 3)

Table:

*

1

2

3

4

5

1

1

1

1

1

1

2

1

2

2

2

2

3

1

2

3

3

3

4

1

2

3

4

4

5

1

2

3

4

5

Solution:

(i) (4 * 5) * 1

From table

(4 * 5) = 4

(4 * 5) * 1 = 4 * 1

(4 * 5) * 1 = 1

(ii) Is * commutative

For commutative we have to prove x*y = y*x

let x = 5 and y = 2

x*y = 5 * 2 = 2

y*x = 2 * 5 = 2

Therefore, * is commutative.

(iii) (2 * 5) * (1 * 3)

From table

(2 * 5) = 2

(1 * 3) = 1

(2 * 5) * (1 * 3) = 2 * 1

(2 * 5) * (1 * 3) = 1

Practice Problems on Binary Operations

Problem : Consider a binary operation * on set X = {a, b, c} defined by below. Find:

(i) Compute (a * b) * c

(ii) Is * commutative?

(iii) Find the identity element of the binary operation.

Table:

*

a

b

c

a

a

b

c

b

b

c

a

c

c

a

b

Conclusion

Binary operations are essential math ideas used in many areas like algebra, computer science, engineering, and cryptography. Understanding how these operations work and their properties is essential for solving complex problems and building efficient algorithms. This article gave a basic introduction to this important concept including topics such as properties and types of binary operations.

Binary Operations – FAQs

What is Binary Operation in Maths?

Binary operation in Maths is the operation which is performed on two elements of a set and the result after performing the binary operation also belongs to the same set.

What is Binary Operation on a Set?

Binary operation on a set is defined as taking two elements from the cartesian product of set and after performing binary operation output also belongs to same set. Binary operation * on S with element a and b can be represented as:

*: S × S → S such that for all a, b; a*b ∈ S

What are the Properties of Binary Operation?

Properties of binary operation are:

  • Closure Property in Binary Operations
  • Associativity of Binary Operations
  • Commutativity of Binary Operations
  • Identity Element of Binary Operations
  • Inverse Element of Binary Operations

How to Find Identity Element in Binary Operation?

To find the identity element in binary operation we use: x * e = e * x = x where, e is identity element.

What is Commutative Property of Binary Operation?

Commutative property of binary operation is defined as:

x * y = y * x



Similar Reads

Copy and Paste Operation in MS Word
Microsoft Word or MS-Word is a powerful word processing program which have many features, and it allows you to create documents such as letters, articles, etc. It is very much user-friendly and interactive to the user, i.e. is easy to work with because of the vast features provided by the MS-Word. Copy And Paste Operation As of the many features pr
4 min read
Perform the indicated operation and simplify your answer: x2 + 5 x + 6 x2 + 7 x + 12 x2 + 5 x + 4 x2 + 3 x + 2
Algebraic expression started in the 9th century. In the beginning, it was more in statement form and not mathematical at all. For instance, algebraic equations used to be written as "5 times the thing added with 3 gives 18" which is basically 5x + 3 = 18. This type of equation which was not mathematical was Babylonian algebra. Algebra evolved with
4 min read
Perform the indicated operation and write the answer in standard form (12 - 2i)/9i
A complex number is a term that can be shown as the sum of real and imaginary numbers. These are the numbers that can be written in the form of a + ib, where a and b both are real numbers. It is denoted by z. Here the value 'a' is called the real part which is denoted by Re(z), and 'b' is called the imaginary part Im(z) in form of a complex number.
6 min read
Real Life Application of Math in Operation Research
The field of operations research (OR) employs statistical analysis, mathematical models, and optimisation strategies to address challenging decision-making issues in a range of sectors. It first appeared in World War II, when resource allocation and strategic planning were necessary for military operations. It has now spread into a wide range of in
6 min read
What does the binary number 0111 represent?
A Number System is a way of Representing Numbers. Representation of Numbers is done by using digits or symbols. The Numbers that are represented by digits or symbols have the value and the value depends on the place, base, and value of the digits used. There are 4 different types of Number Systems, which define different Base Numbers. They are: Bin
5 min read
Binary Fission
Binary fission is an asexual reproduction method in single-celled organisms like bacteria. The process begins with DNA replication, followed by the elongation of the cell, and ends with the division into two genetically identical daughter cells, ensuring rapid propagation. Binary fission allows these organisms to rapidly reproduce and is an essenti
7 min read
Relationship between number of nodes and height of binary tree
Prerequisite - Binary Tree Data Structure In this article, we will discuss various cases for relationship between number of nodes and height of binary tree. Before understanding this article, you should have basic idea about binary trees and their properties. The height of the binary tree is the longest path from root node to any leaf node in the t
3 min read
How to Convert 10 in Binary?
To convert 10 into binary form, repeatedly divide 10 by 2 and note the remainder in reverse order.To convert 10 to binary: Divide 10 by 2: 10 ÷ 2 = 5 (remainder 0) Divide 5 by 2: 5 ÷ 2 = 2 (remainder 1) Divide 2 by 2: 2 ÷ 2 = 1 (remainder 0) Divide 1 by 2: 1 ÷ 2 = 0 (remainder 1) Therefore, the binary representation of decimal 10 is 1010. Hexadecim
1 min read
Decimal to Binary Converter
Decimal to Binary Converter is a free online tool to convert Decimal to Binary. Converting between Decimal to Binary is a common task in the everyday life of CS students or programmers. So, GeeksforGeeks provides a free user-friendly, and efficient online decimal binary Conversion tool to simplify this process and ensure accuracy. It is a fast, eas
9 min read
How many values can be represented with 3 binary digits?
There are 8 Values which can be Represented Using 3-digits in Binary Number SystemWhen you use 3 binary digits (bits), you can represent 8 different values because each bit can take on one of two possible values: either 0 or 1. In a sequence of 3 binary digits, there are 23 = 8 possible combinations. These combinations range from 000 (0 in decimal)
1 min read
Binary Multiplication
Binary Multiplication is a mathematical operation that involves multiplying two binary numbers, which are numbers composed of only 0s and 1s. Binary multiplication is similar to decimal multiplication, except that the base of the number system is 2 instead of 10. In this article, we will learn about Binary Numbers, Binary multiplication, and Rules
9 min read
Difference Between Decimal and Binary Number System
Decimal Number is defined by the number which has a whole number and the fractional part separated by a decimal point. While Binary Number is defined by a number which is expressed as in the base-2 numeral system. It is always written in the form of 0 and 1. In math, a system that is used to represent numbers in different forms is called number sys
7 min read
Binary to Decimal Converter
Binary to Decimal Converter is a free online tool to convert binary to decimal. Converting between binary to decimal is a common task in everyday life. Here, GeeksforGeeks provides a free user-friendly, and efficient online binary decimal Conversion tool to simplify this process and ensure accuracy. It is a fast, easy-to-use general-purpose calcula
9 min read
Binary Logistic Regression
Binary logistic regression is a statistical method to model the relationship between the binary outcome variable and one or more predictor variables. It is a fundamental technique in statistics and data analysis with wide-ranging applications in various fields such as healthcare, finance, marketing and social sciences. In this article, we will lear
6 min read
Binary Subtraction
Binary Subtraction is a mathematical operation and is one of the four fundamental operations of binary numbers. Binary subtraction is similar to decimal subtraction but the rules used as somewhat different. In this article, we will learn about Binary Numbers, Binary Subtraction, and Rules to Perform Binary Subtraction, Examples on Binary Subtractio
9 min read
Binary to Octal Conversion
Number system is an important part of mathematics. The number system and its conversion is used in various fields of mathematics and computer science. In this article we will explore binary, octal and conversion of binary to octal number system. What is Binary Number System?Number system with its base 2 is called as binary number system. It represe
4 min read
Binary Division
Binary division is a mathematical operation that involves dividing two binary numbers, which are numbers composed of only 0's and 1's. Binary division is similar to decimal division, except that the base of the number system is 2 instead of 10. In this article, we will learn about Binary Numbers, Binary Division, and Rules to perform Binary Divisio
11 min read
Binary Formula
Binary formulas are formulas that are used to convert binary numbers to other number systems. A binary number system is a system of numbers that has a base of 2 and uses only two digits, "0 and 1". It is one of the four types of number systems and is most commonly employed by computer languages like Java and C++. "Bi" in the word "binary" stands fo
11 min read
Class 12 RD Sharma Solutions - Chapter 3 Binary Operations - Exercise 3.1
Question 1. Determine whether the following operation define a binary operation on the given set or not:(i) ‘*’ on N defined by a * b = ab for all a, b ∈ N. (ii) ‘O’ on Z defined by a O b = ab for all a, b ∈ Z. (iii) ‘*’ on N defined by a * b = a + b – 2 for all a, b ∈ N (iv) ‘×6‘ on S = {1, 2, 3, 4, 5} defined by a × 6 b = Remainder when a b is di
11 min read
Class 12 RD Sharma Solutions - Chapter 3 Binary Operations - Exercise 3.2
Question 1. Let ‘*’ be a binary operation on N defined by a * b = 1.c.m. (a, b) for all a, b ∈ N(i) Find 2 * 4, 3 * 5, 1 * 6Solution: We are given that a * b = L.C.M. (a, b) ⇒ 2 * 4 = L.C.M. (2, 4) = 4 and, 3 * 5 = L.C.M. (3, 5) = 15 now, 1 * 6 = L.C.M. (1, 6) = 6 Hence, 2 * 4 = 4, 3 * 5 = 15 and 1 * 6 = 6. (ii) Check the commutativity and associat
15+ min read
How many binary strings of length 5 have exactly two 1's somewhere in the string?
Answer :Note that the order of the bit is not important in this case because we are concerned with the number of ones in the said string and not their order. Thus, we need to apply the concept of combinations to find the required value.Here, n = 5 and r = 2. C(5, 2) = \frac{5!}{2!(5-2)!} = 10 So there are 10 bit strings of length 5 with exactly two
5 min read
Class 12 RD Sharma Solutions - Chapter 3 Binary Operations - Exercise 3.5
Exercise 3.5 in Chapter 3 of RD Sharma's Class 12 Mathematics textbook focuses on binary operations. This exercise likely covers advanced concepts related to binary operations, including their properties, applications, and problem-solving techniques. Students will be challenged to apply their understanding of binary operations to various mathematic
7 min read
Class 12 RD Sharma Solutions - Chapter 3 Binary Operations - Exercise 3.4
In this article, we will explore the solutions to Exercise 3.4 from Chapter 3 of RD Sharma's Class 12 Mathematics textbook which focuses on "Binary Operations". This chapter is essential for understanding how operations can be performed on pairs of elements within a set a fundamental concept in algebra and discrete mathematics. The solutions provid
15+ min read
Class 12 RD Sharma Solutions- Chapter 3 Binary Operations - Exercise 3.3
Binary operations are fundamental concepts in mathematics and computer science that involve operations on pairs of elements. In Chapter 3 of RD Sharma’s Class 12 textbook, we explore the binary operations in detail focusing on their properties and applications. Exercise 3.3 covers practical problems and examples to help students understand these co
5 min read
Binary Number System
Binary Number System uses two digits, 0 and 1, and is the foundation for all modern computing. The word binary is derived from the word "bi" which means two. But what makes it so essential, and how does it work? In this article, we will dive deep into binary numbers, binary decimal number conversion and vice versa, 1's and 2's complement, and how t
7 min read
How to convert Binary to Hexadecimal?
Number Systems are a major part of mathematics. The number system and its conversions are used in the various fields of mathematics and computer science. The binary number system is a system in which numbers are expressed in the base 2. This article is about the binary, hexadecimal, and conversion of binary to the hexadecimal number system. The bin
4 min read
Tense Chart in English - Rules, Examples, Types & Mind map
Tense Chart: The Tense Chart is a visual representation of the various verb tenses in English. It organizes the verb tenses in English. It outlines the various forms of the verb according to their uses. By using a tense chart, one can easily understand the relationship between the various forms of verbs and be able to make appropriate verb choices
10 min read
Logic Gates - Definition, Types, Uses
Logic gates are the fundamental components of all digital circuits and systems. In digital electronics, there are seven main types of logic gates used to perform various logical operations. A logic gate is basically an electronic circuit designed by using components like diodes, transistors, resistors, capacitors, etc., and capable of performing lo
12 min read
Periodic Table of Elements
The Periodic table of elements is a systematic arrangement of 118 known chemical elements. These chemical elements are organized in order of increasing atomic number. The horizontal rows from left to right are called periods while the vertical columns from top to bottom are called groups in a periodic table. Table of Content What is Periodic Table
5 min read
Trigonometric Identities
Trigonometric identities play an important role in simplifying expressions and solving equations involving trigonometric functions. These identities, which involve relationships between angles and sides of triangles, are widely used in fields like geometry, engineering, and physics. In this article, we’ll explore the most important trigonometric id
11 min read