## Introduction

A set is defined as a collection of elements. Each object inside a set is referred to as an 'Element.' A set can be represented in different forms.

- statement form
- roster form
- set-builder form.

**What are Set Operations**

When we want to establish the relationship between the sets, there comes the concept of set operations. Set operations(union, intersection, etc.) are performed on two or more sets to get through the combination of elements.

Four primary set operations that are performed on sets are:

- Intersection of sets
- Union of sets
- Difference of sets
- Complement of sets

Before discussing the set operations in detail, let's look at the Venn diagram first, which will help you understand the working of operations appropriately.

John Venn invented the Venn diagram, a logical diagram that shows all possible logical combinations between different sets.

## Union of sets

We are provided with two sets, A and B, then the union of A and B(A U B) is the set of distinct elements that belong to set A and B or both.

Let us take an example to understand this operation clearly.

Set A = {2,5,7}

Set B = {2,5,6}

The union of set, A U B={2,5}