Relation Algebra is the algebra of Sets that deals with a Set of finite relations that is closed under some operators. These operators work upon one or more relations.
In mathematics a relation is a set of ordered pairs and the symbol for the set is denoted by “”. There are some examples of relations,
(0, 2), (55, 21), (3, 50),
(0, 2), (2, 5), (3, 9),
A relation is a set of ordered pairs as said above and there is no matter about the Numbers that are in a relation. In short, any set of numbers would be called a relation so long as these numbers appears in pairs.
The Domain of a algebra relation is the set of all the first numbers arranged in the ordered pairs. In short the domain is all of the x values while The Range of a relation is the set of the second numbers that are arranged in the each pair or in other words it is the set of the ‘y’ values.
For example if we have a set of a relation as
S = (0,1), (2, 33), (40, 25),
Here domain of this relation is 0, 2, 40 and the range of the relation is 1, 33, 25.
Like the usual formula for the relation of the Position and time of a ball can be notices and the general formula that shows this relation is,
g (time) = position,
The term relation shows the relationship between the sets of information like consider about all the people in the class and their height. If the name of the students in the class and the height of the students are paired together then this is called a relation. In relations the pairs of names and heights are ordered that means names comes first and the other that is height comes second.
A function is a well mannered relation. All Functions are relations but not all relations are functions.
Relation algebra is an algebraic structure equipped with the Boolean operations of conjunction, dis-conjunction and negation, the Boolean constants, the relational operations and the converse in such a way that these operations and constants satisfy certain equations that constitutes algebra relations.
Relation algebra is equal to expressive power to relational Calculus and this result is named as Codd's theorem.
If there are three relations R1, R2, R3 are defined on set A = a, b, c as follows.
R1 = (a, a), (a, b), (a, c), (b, b), (b, c), (c, a), (c, b), (c, c) ,
R2 = (a, b), (b, a), (a, c), (c, a),
R3 = (a, b), (b, c), (c, a)
Find whether R1, R2, R3 is reflexive, symmetric and transitive?
Given that (1) R1 = (a, a), (a, b), (a, c), (b, b), (b, c), (c, a), (c, b), (c, c),
(2) R2 = (a, b), (b, a), (a, c), (c, a) ,
(3) R3 = (a, b), (b, c), (c, a)
If we check the condition for reflexive i.e. a relation ‘R’ on Set ‘A’ is said to be reflexive if every element of ‘A’ is related to itself.
(1) Reflexive: - (a, a), (b, b), (c, c) ∊ R1. So we can say that relation R1 is reflexive.
Symmetric: - Here we observe that (a, b) ∊ R1 but (b, a) ∉ R1. So relation R1 is not symmetric on relation ‘A’.
Transitive: - Here we observe that (b, c) ∊ R1 and (c, a) ∊ R1 but (b, a) ∉ R1. So relation ‘R1’ is not transitive on relation ‘A’.
(2) Reflexive: - (a, a), (b, b), (c, c) are not present in R2. So we can say that relation R1 is not reflexive.
Symmetric: - Here we observe that the order pair obtained by interchanging the components of ordered pairs in R2 is also in R2. So relation R1 is symmetric on relation on ‘A’.
Transitive: - Here we observe that (a, b) ∊ R2 and (b, a) ∊ R2 but (a, a) ∉ R2. So relation R2 is not transitive on relation ‘A’.
(3) Reflexive: - (a, a), (b, b), (c, c) are not present in R3. So we can say that relation
R3 is not reflexive.
Symmetric: - We observe that the (b, c) ∊ R3 but (c, a) ∉ R3. So relation R3 is symmetric on relation on ‘A’.
Transitive: - We find that (a, b) ∊ R3 and (b, c) ∊ R3 but (a, c) ∉ R3. So relation R3 is not transitive on relation ‘A’.
The relation ‘R’ on Set A = 2, 3, 4 where,
R = (2, 2), (3, 3), (4, 4), (2, 3), (3, 4)
Since 2, 3, 4 ∊ A and (2, 2), (3, 3), (4, 4) ∊ R i.e. for each a ∊ A, (a, a) ∊ R. So relation ‘R’ is reflexive.
And we find that (2, 3) ∊ R but (3, 2) ∉ R.
So relation ‘R’ is not symmetric.
Also, (2, 3) ∊ R and (3, 4) ∊ R but (2, 4) ∉ R. So ‘R’ is not transitive.
Given that (1) R1 =(1, 1), (1, 2), (1, 3), (2, 2), (2, 3), (3, 1), (3, 2), (3, 3),
(2) R2 = (1, 2), (2, 1), (1, 3), (3, 1),
(3) R3 = (1, 2), (2, 3), (3, 1).
If we check the condition for reflexive i.e. a relation ‘R’ on Set ‘A’ is said to be reflexive if every element of ‘A’ is related to itself.
(1) Reflexive: - (1, 1), (2, 2), (3, 3) ∊ R1. So we can say that relation ‘R1’ is reflexive.
Symmetric: - Here we observe that (1, 2) ∊ R1 but (2, 1) ∉ R1. So relation ‘R1’ is not symmetric on relation ‘A’.
Transitive: - Here we observe that (2, 3) ∊ R1 and (3, 1) ∊ R1 but (2, 1) ∉ R1. So relation R1 is not transitive on relation ‘A’.
(2) Reflexive: - (1, 1), (2, 2), (3, 3) are not present in R2. So we can say that relation ‘R1’ is not reflexive.
Symmetric: - Here we observe that the order pair obtained by interchanging the components of ordered pairs in R2 is also in R2. So relation R1 is symmetric on relation on ‘A’.
Transitive: - Here we observe that (1, 2) ∊ R2 and (2, 1) ∊ R2 but (1, 1) ∉ R2. So relation R2 is not transitive on relation A.
(3) Reflexive :-( 1, 1), (2, 2), (3, 3) are not present in R3. So we can say that relation R3 is not reflexive.
Symmetric: - We observe that the (2, 3) ∊ R3 but (3, 1) ∉ R3. So relation R3 is symmetric on relation on ‘A’.
Transitive: -We find that (1, 2) ∊ R3 and (2, 3) ∊ R3 but (1, 3) ∉ R3. So relation R3 is not transitive on relation A.
Given the relation R on R defined as R = (p, q): p ≤ q,
Here we have R = (p, q): p ≤ q, where p, q ∊
First we check reflexive condition:
Reflexivity: - For any a ∊ R, we have
P ≤ P
⇒ (P, P) ∊ R for all P ∊ R.
⇒ So, ‘R’ is reflexive.
Symmetry: We find that (2, 3) ∊ R but (3, 2) ∉ R. so R is not symmetric.
Transitivity: let (P, q) ∊ R and (q, r) ∊ R. then,
⇒ P ≤ q and q ≤ r
⇒ p ≤ r
⇒ (p, r) ∊ R, so ‘R’ is transitive.
x + 3 = 6 and 2x + y = 5
Therefore x = 3 and 6 + y = 5
Therefore y = -1.
R be given by f(x) = x2 + 3 Find
(i) Given f(x) = 28 = x2 + 3
x2 = 28 – 3 = 25
x =
= 5
(ii) To find f-1 (39) and f-1 (2)
f-1 (39) = x
f (x) = 39 = x2 + 3
x2 = 39 – 3 = 36
x =
= 6
f-1 (2) = x
f (x) = 2 = x2 + 3
x2 = 2 – 3 = -1
x =
.
(0, 1, 2, 3, 4, 5)}?
R = {(1, 5), (2, 6), (3, 7), (4, 8), (5, 9), (6, 10)}
Domain of R = {1, 2, 3, 4, 5, 6}
Range of R = {5, 6, 7, 8, 9, 10}.
A, y
B}. Write R in Roster form?
R = {(1, 4), (1, 6), (2, 9), (3, 4), (3, 6),
(5, 4), (5, 6)}