0% found this document useful (0 votes)
10 views3 pages

Discrete Structures Problem Sheet 5

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views3 pages

Discrete Structures Problem Sheet 5

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Discrete Structures - Problem Sheet-5

1 List the ordered pairs in the relation R from A = {0, 1, 2, 3, 4} to


B = {0, 1, 2, 3}, where (a, b) ∈ R if and only if
a) a = b.
b) a + b = 4.
c) a > b.
d) a | b.
e) gcd(a, b) = 1.
f ) lcm(a, b) = 2.
2 List all the ordered pairs in the relation R = {(a, b) | a divides b } on
the set {1, 2, 3, 4, 5, 6}
3 For each of these relations on the set {1, 2, 3, 4}, decide whether it is
reflexive, whether it is symmetric, whether it is antisymmetric, and
whether it is transitive.
a) {(2, 2), (2, 3), (2, 4), (3, 2), (3, 3), (3, 4)}
b) {(1, 1), (1, 2), (2, 1), (2, 2), (3, 3), (4, 4)}
c) {(2, 4), (4, 2)}
d) {(1, 2), (2, 3), (3, 4)}
e) {(1, 1), (2, 2), (3, 3), (4, 4)}
f ) {(1, 3), (1, 4), (2, 3), (2, 4), (3, 1), (3, 4)}
4 Determine whether the relation R on the set of all people is reflexive,
symmetric, antisymmetric, and/or transitive, where (a, b) ∈ R if and
only if
a) a is taller than b.
b) a and b were born on the same day.
c) a has the same first name as b.
d) a and b have a common grandparent.
5 Consider the relations on the set of real numbers:
R1 = {(a, b) ∈ R2 | a > b}, the “greater than” relation,
R2 = {(a, b) ∈ R2 | a ≥ b}, the “greater than or equal to” relation,
R3 = {(a, b) ∈ R2 | a < b}, the “less than” relation,
R4 = {(a, b) ∈ R2 | a ≤ b}, the “less than or equal to” relation,
R5 = {(a, b) ∈ R2 | a = b}, the “equal to” relation,
R6 = {(a, b) ∈ R2 | a ≠ b}, the “unequal to” relation.
Find
a) R2 ∪ R4 b) R3 ∪ R6 c) R3 ∩ R6 d) R4 ∩ R6 e) R3 − R6
f ) R6 − R3 g) R2 ⊕ R6 h) R3 ⊕ R5
Find
a) R2 ◦ R1 b) R2 ◦ R2 c) R3 ◦ R5 d) R4 ◦ R1 e) R5 ◦ R3
f ) R3 ◦ R6 g) R4 ◦ R6 h) R6 ◦ R6
6 Let R1 and R2 be the “divides” and “is a multiple of ” relations on the
set of all positive integers, respectively. That is,
R1 = {(a, b) | a divides b } and R2 = {(a, b) | a is a multiple of b }
Find a) R1 ∪ R2 b) R1 ∩ R2 c) R1 − R2 d) R2 − R1 e) R1 ⊕ R2
7 Let R1 and R2 be the “congruent modulo 3” and the “congruent
modulo 4” relations, respectively, on the set of integers. That is,
R1 = {(a, b) | a ≡ b (mod 3) } and R2 = {(a, b) | a ≡ b (mod 4) }.
Find
a) R1 ∪ R2 b) R1 ∩ R2 c) R1 − R2 d) R2 − R1 e) R1 ⊕ R2
8 If f : R  R is given by f(x) = x3 – 2, find f -1

9 Determine whether the function f : Z → Z is defined by


f(x)= x + 1 for all x є Z is one-to-one and onto
10 Define Cartesian product and find A x B, B x A and A x A, where
A = { a, b , c } and B = { 2, 4 }
11 Let f : X → Y and g : Y → X. Prove that the function g is equal to f -1

12 Determine whether the function f : R → R is given by


f(x)= cos x for all x  R is one-to-one and onto.
13 Let A = { 1, 2, 3, 4, 5 } and the relation R = { (x, y) / x divides y }.
Find the relation R and represent R in matrix and graph.
14 Show that the functions f(x)=x3 and g(x)=x1/3 are inverse of each
other.
15 Find the relation R = { (x,y) / x ≤ y } which is defined on A = { 1, 2,
3, 4 }
16 Define one-to-one, onto and bijection functions with examples
17 Let S = { (x, x2)/ x  W } and T = { (x, 2x)/ x  W }, where
W = {0, 1, 2, 3, ……}. Find the ranges of S and T, also find SUT, S∩T.
18 Represent the relation in the form of matrix and graph where
R : A → B and R= { (a,1), (a,2), (a,3), (b,4), (c,2), (d,1), (d,4) }
19 If f(x) = x + 2, g(x) = x - 2 and h(x) = 3x for xR, where R is the set of
real numbers, find f o g, f o h and (f o h) o g
20 If A = { 1, 2, 3, 4 } and the relation R : A → A is given by
R = { (1,1), (2,4), (4,1), (3,4) }. Determine whether the relation
is reflexive, symmetric, anti-symmetric, transitive and irreflexive.
21 Let X={1,2,3,4,5,6,7} and R={(x,y)/x-y is divisible by 3}, Show that
relation R is an equivalence and partial ordering.
22 Let A={1, 2, 3, 4} and R={(1,2), (2,3), (3,3), (3,4), (4,2)} be a relation
defined on A. Find the transitive closure of R.
23 If X = {1,2 … 7} and R = {(x, y) / x-y is divisible by 3}, show that
R is an equivalence relation.
24 Let R={(1,2),(3,4),(2,2} and S={(4,2),(2,5),(3,1)} be two relation find
R-S, S-R, R-R, S-S.

Common questions

Powered by AI

To prove that \( f \) and \( g \) are inverses, we show \( f(g(x)) = x \) and \( g(f(x)) = x \) for all \( x \). For \( f(g(x)) = (x^{1/3})^3 = x \). For \( g(f(x)) = (x^3)^{1/3} = x \). Therefore, \( f \) and \( g \) commute, and each function undoes the action of the other, satisfying the definition of inverse functions.

The given relation \( R \) is not reflexive since not all elements relate to themselves, e.g., (1,1) is missing. It is not symmetric, as (1,2) is present but (2,1) is not. It is not antisymmetric because (3,4) is present without (4,3). However, it is not transitive because, for example, (1,2) and (2,3) do not imply (1,3) is present. The transitive closure adds necessary pairs like (1,3) to make it transitive. The transitive closure of \( R \) includes all possible transitive pairs derived from the pairs in \( R \).

The range of \( S \) is \{x^2 \mid x \in W\}, and the range of \( T \) is \{2x \mid x \in W\}. \( S \cap T \) includes values that can be expressed both as a square and a multiple of 2. The union \( S \cup T \) contains all elements from both ranges. Specifically, it combines squares like 0, 1, 4, and multiples like 0, 2, 4. Since \( S \) is defined as perfect squares and \( T \) as even integers, finding intersections may result only when these align, like 4.

The relation \( R \) is not reflexive as not all elements relate to themselves (e.g., (2,2) is missing). It is not symmetric because (2,4) is present but (4,2) is not. It is antisymmetric since when both (a, b) and (b, a) exist, a must equal b, which is not violated. The relation is not transitive as, for example, (1,1) and (1,2) do not imply (1,2) is in R. R is not irreflexive because (1,1) is in R.

To show that \( R \) is an equivalence relation, we confirm it is reflexive ((x − x) is always 0, which is divisible by 3), symmetric (if x-y is divisible by 3, then y-x is also divisible by 3), and transitive (if x-y and y-z are divisible by 3, then x-z is also divisible by 3). For partial ordering, it must also be antisymmetric; however, since x-y divisible by 3 implies y-x must also be divisible, this suggests it is reflexive and not antisymmetric, so R is not a partial order, just an equivalence relation.

The union \( R1 \cup R2 \) includes all pairs that are congruent modulo 3 or 4. It is reflexive since \( a \equiv a \pmod{3} \) and \( a \equiv a \pmod{4} \) for all \( a \). It lacks symmetry because \( a \equiv b \pmod{3} \) does not imply \( b \equiv a \pmod{4} \). It is transitive because if two pairs are related by \( R1 \) or \( R2 \), the same congruence properties carry over.

The ordered pairs in the relation \( R \) where \( a + b = 4 \) are \( (0,4), (1,3), (2,2), (3,1), (4,0) \). However, since \( B = \{0, 1, 2, 3\} \), the valid pairs in \( R \) from \( A \) to \( B \) are \( (1,3), (2,2), (3,1), (4,0) \).

The function \( f(x) = x+1 \) is one-to-one because if \( f(a) = f(b) \), then \( a+1 = b+1 \) implies \( a = b \). It is onto because, for any integer \( y \), there exists an integer \( x = y - 1 \) such that \( f(x) = y \). Thus, \( f \) maps every integer \( x \) to a unique \( f(x) \) and covers the entire codomain \( Z \).

For \( f \circ g(x) = f(g(x)) = f(x-2) = (x-2)+2 = x \), so \( f \circ g \) is the identity function. For \( f \circ h(x) = f(h(x)) = f(3x) = 3x+2 \). For \( (f \circ h) \circ g(x) = f(h(g(x))) = f(3(x-2)) = f(3x-6) = (3x-6)+2 = 3x - 4 \). Each composition alters the input according to the constituent functions involved.

The function \( f(x) = \cos x \) is not one-to-one because different values can produce the same cosine, e.g., \( \cos(0) = \cos(2\pi) \). It is not onto because the codomain \( R \) includes values outside the range \([-1, 1]\), which \( \cos x \) can never achieve. Therefore, it doesn't cover the entire real number set definitively mapped out for one-to-one and onto functions.

You might also like