# Crisp relation – Definition, types and operations

Crisp relation is defined over the cartesian product of two crisp sets. Suppose, A and B are two crisp sets. Then Cartesian product denoted as AÃB is a collection of order pairs, such that

A Ã B = { (a, b) | a â A and b â B }

**Note**:

A Ã B â B Ã A

|A Ã B| = |A| Ã |B|

A Ã B provides a mapping from a â A to b â B

The relation is a very useful concept in many fields. It is useful in logic, pattern recognition, control system, classification etc.

Crisp relation is a set of order pairs (a, b) from Cartesian product A Ã B such that a â A and b â B. **Relations** basically represent the *mapping* of the sets. It defines the interaction or association of variables. **The strength of the relationship **between ordered pairs of elements in each universe is measured by **the characteristic function **denoted by Ī.

where a value of unity is associated with a **complete relationship **and a value of zero is associated with **no relationship**, i.e.,

\[ \chi_{R}(a,b) = \begin{cases} 1 , & if (a,b) \in (A \times B) \\ 0, & if (a,b) \notin (A \times B) \end{cases} \]

## Example: Crisp relation

Consider two crisp sets: C = {1, 2, 3} and D = {4, 5, 6}.

- Find Cartesian product of CÃD
- Also find relation R over this Cartesian products such that R={(c, d)Â |Â d = c + 2, (c, d) â C Ã D }

**Solution:**

C Ã D = { (1, 4), (1, 5), (1, 6),(2, 4), (2, 5), (2, 6),(3, 4), (3, 5), (3, 6) }

From the above table, it is easy to infer that, relation R={(2, 4), (3, 5)}

## Representation of crisp relation:

We can represent crisp relations in various ways. One way is to represent it using the functional form, which we already have described earlier.

Two other popular representations are shown below:

Let us represent both the relation for the relation R defined over set A and B as

A = {1, 2, 3}, B = {4, 5, 6}, R = {(2, 4), (3, 5)}

**Sagittal / Pictorial Representation**:

**Matrix Representation**:

## Some special relations:

Let us discuss some special types of relations.

**Null Relation:** There is no mapping of elements from universe X to universe Y

**Complete Relation:** All the elements of universe X is mapped to universe Y

**Universal Relations: **The universal relation on A is defined as U_{A} = A x A = A^{2}

Let A = {0, 1, 2}, then U_{A} = A x A = {(0, 0), (0, 1), (0, 2), (1, 0), (1, 1), (1, 2), (2, 0), (2, 1), (2, 2)}

**Identity Relations: **The identity relation on A is defined as I_{A} = { (a, a), âa â A }

Let A = {0, 1, 2}, then I_{A} = {(0, 0), (1, 1), (2, 2)}

## Watch on YouTube: Crisp relation

## Operations on crisp relation:

Like operations on crisp sets, we can also perform operations on crisp relations. Suppose, R(x, y) and S(x, y) are the two relations defined over two crisp sets, where x â A and y â B

We will discuss various operations on crisp set for the following two crisp relations R and S:

### Union of crisp relation:

R âĒ S = Ī_{R âĒ S }(x, y) = max( Ī_{R}(x, y), Ī_{S}(x, y) )

The Union of the given relation R and S would be,

### Intersection of crisp relation:

R âŠ S = Ī_{R âŠ S }(x, y) = min( Ī_{R}(x, y), Ī_{S}(x, y) )

The intersection of the given relation R and S would be,

### Complement of crisp relation:

R^{c} = Ī_{R}c (x, y)= 1 – Ī_{R}(x, y)

The intersection of the given relation R would be,

### Containment:

R â S = Ī_{R â S} (x, y) = Ī_{R}(x, y) â¤ Ī_{S}(x, y)

Relation R is not contained within relation S. Consider the relation T as given below:

Here, Ī_{R}(x, y) â¤ Ī_{T}(x, y), so R is contained within T.

## Cardinality of crisp set:

Cardinality defines the number of elements in the given set. Let A and B be the crisp sets with cardinality n and m, respectively. The cardinality of crisp relation defined over Cartesian product AÃB will be n Ã m

**Example:**

Let A = (1, 2) and B = {3, 4, 5}

Here, n = |A| = 2 and m = |B| =3, So, nÃm=6

The cartesian product of both the set,

A Ã B={ (1, 3), (1, 4), (1, 5),(2, 3), (2, 4), (2, 5) }

Cardinality of cartesian product is, | A Ã B | = 6 = n Ã m

## Composition of crisp relation:

The composition of relation R and S is denoted as R â S

R â S = {(x, z) | (x, y) â R, and (y, z) â S, ây â Y}

The composition of the relation is computed in two different ways:

Although, for crisp relation, both methods yield identical results. For fuzzy relations, it gives different results.

## Test your knowledge:

For the given relations,

Find the union, intersection, complement and containment of relation A in B.

**Please post your answer / query / feedback in comment section below !**

Excellent article

Thanks Mohammad

Wonderfully explained with example. Thank you very much for providing better understanding.

Noted with thanks

Union is Row wise {{1,0,1} , {1,1,1} ,{0,1,1} }

Perfect

Intersection is {{1,0,0} , {0,0,1} , {0,0,1}} (row wise )

Absolutely correct

Composition of crisp realtion: must be relation

True Izzet