Relations | RRB JE for Computer Science Engineering - Computer Science Engineering (CSE) PDF Download

  • Relation or Binary relation R from set A to B is a subset of AxB which can be defined as:
    aRb <=> (a,b) € R <=> R(a,b).
  • A Binary relation R on a single set A is defined as a subset of AxA. For two distinct sets, A and B with cardinalities m and n, the maximum cardinality of the relation R from A to B is mn.

Domain and Range

  • If there are two sets A and B and Relation from A to B is R(a,b), then the domain is defined as the set { a | (a,b) € R for some b in B}Relations | RRB JE for Computer Science Engineering - Computer Science Engineering (CSE)
  • The range is defined as the set {b | (a,b) € R for some a in A}.

Example 1: State the domain and range of the following relation:
(eye colour, student's name).
A = {(blue,Steve), (green,Elaine), (brown,Kyle), (blue,Marsha), (brown,Miranda), (green, Dylan)}
State whether the relation is a function.

Solution: Domain: {blue, green, brown}.    Range: {Steve, Elaine, Marsha, Miranda, Dylan}.
No, this relation is not a function. The eye colours are repeated.  


Example 2: State the domain and range of the following relation: {(1,3), (-2,7), (3,-3), (4,5), (1,-3)}.
State whether the relation is a function. 

Solution: Domain: {-2, 1, 3, 4}.     Range: {-3, 3, 5, 7}.

While these listings appear in ascending order, the order is not required. Do not, however, duplicate an element.

No, this relation is not a function. The x-value of "1" had two corresponding y-values (3 and -3). 


Types of Relation

  1. Empty Relation: A relation R on a set A is called Empty if set A is the empty set.
  2. Full Relation: A binary relation R on a set A and B is called full if AXB.
  3. Reflexive Relation: A relation R on a set A is called reflexive if (a,a) € R holds for every element a € A .i.e. if set A = {a,b} then R = {(a,a), (b,b)} is reflexive relation.
  4. Irreflexive relation : A relation R on a set A is called reflexive if no (a,a) € R holds for every element a € A.i.e. if set A = {a,b} then R = {(a,b), (b,a)} is irreflexive relation.
  5. Symmetric Relation: A relation R on a set A is called symmetric if (b,a) € R holds when (a,b) € R.i.e. The relation R={(4,5),(5,4),(6,5),(5,6)} on set A={4,5,6} is symmetric.
  6. AntiSymmetric Relation: A relation R on a set A is called antisymmetric if (a,b)€ R and (b,a) € R then a = b is called antisymmetric.i.e. The relation R = {(a,b)→R|a ≤ b} is anti-symmetric since a ≤ b and b ≤ a implies a = b.
  7. Transiitive Relation: A relation R on a set A is called transitive if (a,b) € R and (b,c) € R then (a,c) € R for all a,b,c € A.i.e. Relation R={(1,2),(2,3),(1,3)} on set A={1,2,3} is transitive.
  8. Equivalence Relation: A relation is an Equivalence Relation if it is reflexive, symmetric, and transitive. i.e. 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 equivalence relation as it is reflexive, symmetric, and transitive.
  9. Asymmetric relation: Asymmetric relation is the opposite of symmetric relation. A relation R on a set A is called asymmetric if no (b, a) € R when (a,b) € R.

Question for Relations
Try yourself:The binary relation {(1, 1), (2, 1), (2, 2), (2, 3), (2, 4), (3, 1), (3, 2)} on the set {1, 2, 3} is __________
View Solution

Important Points

1. Symmetric and Anti-Symmetric relations are not opposite because a relation R can contain both the properties or may not.
2. A relation is asymmetric if and only if it is both anti-symmetric and irreflexive.
3. Number of different relations from a set with n elements to a set with m elements is 2mn
Example:
Relations | RRB JE for Computer Science Engineering - Computer Science Engineering (CSE)

 4. Number of Reflexive Relations on a set with n elements: 2n(n-1).

  • A relation has ordered pairs (a,b). Now a can be chosen in n ways and same for b. So set of ordered pairs contains n2 pairs
  • Now for a reflexive relation, (a, a) must be present in these ordered pairs. And there will be total of n pairs of (a, a), so a number of ordered pairs will be n2-n pairs. So total number of reflexive relations is equal to 2n(n-1).

5. Number of Symmetric Relations on a set with n elements: 2n(n+1)/2.

  • A relation has ordered pairs (a,b). Now for a symmetric relation, if (a,b) is present in R, then (b, a) must be present in R.
  • In Matrix form, if a12 is present in relation, then a21 is also present in relation and As we know, reflexive relation is part of symmetric relation.
  • So from total n2 pairs, only n(n+1)/2 pairs will be chosen for symmetric relation. So the total number of symmetric relations will be 2n(n+1)/2.

6. Number of Anti-Symmetric Relations on a set with n elements: 2n 3n(n-1)/2.

  • A relation has ordered pairs (a,b). For anti-symmetric relation, if (a,b) and (b,a) is present in relation R, then a = b.(That means a is in relation with itself for any a).
    So for (a, a), the total number of ordered pairs = n and the total number of relations = 2n.
  • If (a,b) and (b,a) both are not present in relation or Either (a,b) or (b,a) is not present in relation. So there are three possibilities and the total number of ordered pairs for this condition is n(n-1)/2. (selecting a pair is the same as selecting the two numbers from n without repetition) As we have to find a number of ordered pairs where a ≠ b. 
  • It is like opposite of symmetric relation means total number of ordered pairs = (n2) – symmetric ordered pairs(n(n+1)/2) = n(n-1)/2. So, total number of relation is 3n(n-1)/2. So total number of anti-symmetric relation is 2n.3n(n-1)/2.

7. Number of Asymmetric Relations on a set with n elements: 3n(n-1)/2.

  • In Asymmetric Relations, element a can not be in relation with itself. (i.e. there is no aRa ∀ a∈A relation.) And then it is the same as Anti-Symmetric Relations. (i.e. you have three choices for pairs (a,b) (b, a)). 
  • Therefore there are 3n(n-1)/2 Asymmetric Relations possible.

8. Irreflexive Relations on a set with n elements : 2n(n-1).

  • A relation has ordered pairs (a,b). For Irreflexive relation, no (a, a) holds for every element a in R. It is also the opposite of reflexive relation.
  • Now for an Irreflexive relation, (a, a) must not be present in these ordered pairs means total n pairs of (a, a) are not present in R, So a number of ordered pairs will be n2-n pairs.
    So total number of reflexive relations is equal to 2n(n-1).

9. Reflexive and Symmetric Relations on a set with n elements: 2n(n-1)/2.

  • A relation has ordered pairs (a,b). Reflexive and symmetric Relations means (a,a) is included in R and (a,b)(b,a) pairs can be included or not. (In Symmetric relation for pair (a,b)(b,a) (considered as a pair). 
  • Whether it is included in relation or not) So a total number of Reflexive and symmetric Relations is 2n(n-1)/2.

The document Relations | RRB JE for Computer Science Engineering - Computer Science Engineering (CSE) is a part of the Computer Science Engineering (CSE) Course RRB JE for Computer Science Engineering.
All you need of Computer Science Engineering (CSE) at this link: Computer Science Engineering (CSE)
12 videos|7 docs|103 tests

Top Courses for Computer Science Engineering (CSE)

FAQs on Relations - RRB JE for Computer Science Engineering - Computer Science Engineering (CSE)

1. What is the domain and range of a relation?
Ans. The domain of a relation is the set of all possible input values or x-coordinates, while the range is the set of all possible output values or y-coordinates. In other words, the domain represents the values that the independent variable can take, and the range represents the corresponding values of the dependent variable.
2. What are the different types of relations?
Ans. There are several types of relations, including one-to-one relations, many-to-one relations, one-to-many relations, and many-to-many relations. In a one-to-one relation, each input value has a unique output value. In a many-to-one relation, multiple input values can have the same output value. In a one-to-many relation, one input value corresponds to multiple output values. Lastly, in a many-to-many relation, multiple input values can have multiple output values.
3. What are the important points to consider in relations?
Ans. When dealing with relations, it is important to consider certain points. Firstly, the domain and range should be clearly defined to understand the scope of the relation. Secondly, it is crucial to identify the type of relation to determine the behavior and patterns between the input and output values. Additionally, it is essential to analyze any restrictions or limitations that may be present in the relation. Lastly, it is important to check for symmetry or asymmetry in the relation, as well as any possible inverse relations.
4. How do relations relate to real-life situations?
Ans. Relations are used to model and analyze various real-life situations. For example, in a social network, relations can represent friendships between people, where each person is connected to others through a relation. In the field of mathematics, relations are crucial for understanding functions, graphs, and mappings. Relations also play a significant role in fields such as computer science, physics, and economics, where they are used to analyze data, determine patterns, and make predictions.
5. What are frequently asked questions about relations in exams?
Ans. In exams, some frequently asked questions about relations may include determining the domain and range of a given relation, identifying the type of relation based on a given set of data or graph, finding the inverse of a relation, analyzing the symmetry or asymmetry of a relation, and solving problems that involve relations and functions. These questions test the understanding and application of relation concepts in various contexts.
12 videos|7 docs|103 tests
Download as PDF
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

study material

,

Exam

,

Relations | RRB JE for Computer Science Engineering - Computer Science Engineering (CSE)

,

Relations | RRB JE for Computer Science Engineering - Computer Science Engineering (CSE)

,

Extra Questions

,

past year papers

,

MCQs

,

Relations | RRB JE for Computer Science Engineering - Computer Science Engineering (CSE)

,

shortcuts and tricks

,

ppt

,

Important questions

,

practice quizzes

,

pdf

,

video lectures

,

Summary

,

mock tests for examination

,

Previous Year Questions with Solutions

,

Free

,

Objective type Questions

,

Sample Paper

,

Semester Notes

,

Viva Questions

;