Skip to main content

Discrete Mathematics - Relations


Whenever sets are being discussed, the relationship between the elements of the sets is the next thing that comes up. Relations may exist between objects of the same set or between objects of two or more sets.

Definition and Properties

A binary relation R from set x to y (written as xRy or R(x,y)) is a subset of the Cartesian product x×y. If the ordered pair of G is reversed, the relation also changes.
Generally an n-ary relation R between sets A1,, and An is a subset of the n-ary product A1××An. The minimum cardinality of a relation R is Zero and maximum is n2 in this case.
A binary relation R on a single set A is a subset of A×A.
For two distinct sets, A and B, having cardinalities m and n respectively, the maximum cardinality of a relation R from A to B is mn.

Domain and Range

If there are two sets A and B, and relation R have order pair (x, y), then −
  • The domain of R, Dom(R), is the set {x|(x,y)RforsomeyinB}
  • The range of R, Ran(R), is the set {y|(x,y)RforsomexinA}

Examples

Let, A={1,2,9} and B={1,3,7}
  • Case 1 − If relation R is 'equal to' then R={(1,1),(3,3)}
    Dom(R) = {1,3},Ran(R)={1,3}
  • Case 2 − If relation R is 'less than' then R={(1,3),(1,7),(2,3),(2,7)}
    Dom(R) = {1,2},Ran(R)={3,7}
  • Case 3 − If relation R is 'greater than' then R={(2,1),(9,1),(9,3),(9,7)}
    Dom(R) = {2,9},Ran(R)={1,3,7}

Representation of Relations using Graph

A relation can be represented using a directed graph.
The number of vertices in the graph is equal to the number of elements in the set from which the relation has been defined. For each ordered pair (x, y) in the relation R, there will be a directed edge from the vertex ‘x’ to vertex ‘y’. If there is an ordered pair (x, x), there will be self- loop on vertex ‘x’.
Suppose, there is a relation R={(1,1),(1,2),(3,2)} on set S={1,2,3}, it can be represented by the following graph −
Relation

Types of Relations

  • The Empty Relation between sets X and Y, or on E, is the empty set 
  • The Full Relation between sets X and Y is the set X×Y
  • The Identity Relation on set X is the set {(x,x)|xX}
  • The Inverse Relation R' of a relation R is defined as − R={(b,a)|(a,b)R}
    Example − If R={(1,2),(2,3)} then R will be {(2,1),(3,2)}
  • A relation R on set A is called Reflexive if aA is related to a (aRa holds)
    Example − The relation R={(a,a),(b,b)} on set X={a,b} is reflexive.
  • A relation R on set A is called Irreflexive if no aA is related to a (aRa does not hold).
    Example − The relation R={(a,b),(b,a)} on set X={a,b} is irreflexive.
  • A relation R on set A is called Symmetric if xRy implies yRxxAand yA.
    Example − The relation R={(1,2),(2,1),(3,2),(2,3)} on set A={1,2,3} is symmetric.
  • A relation R on set A is called Anti-Symmetric if xRy and yRx impliesx=yxA and yA.
    Example − The relation R={(x,y)N|xy} is anti-symmetric since xy and yx implies x=y.
  • A relation R on set A is called Transitive if xRy and yRz implies xRz,x,y,zA.
    Example − The relation R={(1,2),(2,3),(1,3)} on set A={1,2,3}is transitive.
  • A relation is an Equivalence Relation if it is reflexive, symmetric, and transitive.
    Example − The relation R={(1,1),(2,2),(3,3),(1,2),(2,1),(2,3),(3,2),(1,3),(3,1)} on set A={1,2,3} is an equivalence relation since it is reflexive, symmetric, and transitive.

Comments

Popular posts from this blog

Discrete Mathematics - Rules of Inference

To deduce new statements from the statements whose truth that we already know,  Rules of Inference  are used. What are Rules of Inference for? Mathematical logic is often used for logical proofs. Proofs are valid arguments that determine the truth values of mathematical statements. An argument is a sequence of statements. The last statement is the conclusion and all its preceding statements are called premises (or hypothesis). The symbol “ ∴ ∴ ”, (read therefore) is placed before the conclusion. A valid argument is one where the conclusion follows from the truth values of the premises. Rules of Inference provide the templates or guidelines for constructing valid arguments from the statements that we already have. Table of Rules of Inference Rule of Inference Name Rule of Inference Name P ∴ P ∨ Q P ∴ P ∨ Q Addition P ∨ Q ¬ P ∴ Q P ∨ Q ¬ P ∴ Q Disjunctive Syllogism P Q ∴ P ∧ Q P Q ∴ P ∧ Q Conjunction P → Q Q → R ∴ P → R P → Q Q → R ∴ P → R ...

Digital Circuits - Shift Registers

We know that one flip-flop can store one-bit of information. In order to store multiple bits of information, we require multiple flip-flops. The group of flip-flops, which are used to hold (store) the binary data is known as  register . If the register is capable of shifting bits either towards right hand side or towards left hand side is known as  shift register . An ‘N’ bit shift register contains ‘N’ flip-flops. Following are the four types of shift registers based on applying inputs and accessing of outputs. Serial In − Serial Out shift register Serial In − Parallel Out shift register Parallel In − Serial Out shift register Parallel In − Parallel Out shift register Serial In − Serial Out (SISO) Shift Register The shift register, which allows serial input and produces serial output is known as Serial In – Serial Out  (SISO)  shift register. The  block diagram  of 3-bit SISO shift register is shown in the following figure. This block d...

discrete mathematics: Venn Diagrams

Venn Diagrams Venn diagram, invented in 1880 by John Venn, is a schematic diagram that shows all possible logical relations between different mathematical sets. Examples Set Operations Set Operations include Set Union, Set Intersection, Set Difference, Complement of Set, and Cartesian Product. Set Union The union of sets A and B (denoted by  A ∪ B A ∪ B ) is the set of elements which are in A, in B, or in both A and B. Hence,  A ∪ B = { x | x ∈ A   O R   x ∈ B } A ∪ B = { x | x ∈ A   O R   x ∈ B } . Example  − If  A = { 10 , 11 , 12 , 13 } A = { 10 , 11 , 12 , 13 }  and B =  { 13 , 14 , 15 } { 13 , 14 , 15 } , then  A ∪ B = { 10 , 11 , 12 , 13 , 14 , 15 } A ∪ B = { 10 , 11 , 12 , 13 , 14 , 15 } . (The common element occurs only once) Set Intersection The intersection of sets A and B (denoted by  A ∩ B A ∩ B ) is the set of elements which are in both A and B. Hence,  A ∩ B = { x | x ∈ A   A N D...