Question

In: Computer Science

Complete the following: (With Details and example if needed) Given set S = {-3, -2, 0,...

Complete the following: (With Details and example if needed)

Given set S = {-3, -2, 0, 1, 2, 4}

Relation R is a relation on S such that R = { (?, ?) | ? ∈ ?, ? ∈ ? ??? ?? ≥ 1}

1. Using roster method, what is R?

2. Show the digraph representation of R

3. Show the matrix representation of R

4. if the relation does not have the property, give an example of why:

- Is R reflexive?

- Is R symmetric?

-Is R antisymmetric?

- Is R transitive?

Solutions

Expert Solution

1). Relation R in roster method:-

R = { (-3,-3),(-2,-2),(1,1),(2,2),(4,4),(-3,-2),(-2,-3),(1,2),(2,1),(1,4),(4,1),(2,4),(4,2) }

2). Diagraph:-

4). Is R reflexive?

Any relation is reflexive if for every element in set S is related to each other.

Relation R is non-Reflexive relation because 0 which is element of S is not related to 0 .

that is 0 * 0 is not greater or equal to 1.so , (0,0) doesn't belong to R.

Is R symmetric?

If for every (x,y) R, (y,x) must also belongs to R then the relation R is symmetric relation.

Relation R is clearly symmetric relation.

proof :-

(x,y) R means that xy>=1

xy >=1 can be written as yx>=1

yx>=1 means (y,x)R

therefore every (x,y)R , (y,x) also belongs to R.

Hence, relation R is symmetric.

Is R antisymmetric?

Any relation R is antisymmetric if for every (x,y)R and (y,x)R then y = x.

Clearly , from roster form we can see that (1,4) and (4,1) both are in R but 1 is not equal to 4.

Therefore, R is not antisymmetric.

Is R transitive?

Any relation R is transitive if for every (x,y)R and (y,z)R then (x,z) must also belongs to R.

R is clearly Transitive relation.

Proof :-

(x,y) R means that xy>=1

(y,z) R means that yz>=1

now , either x , y and z are all negative or all positive .

suppose x, y and z are all negative then in that case xz>=1 so , (x,z)R.

suppose x,y and z are all positive then in that case xz>=1 so , (x,z)R

so ,in all cases if (x,y) R and (y,z) R then (x,z) also belongs to R.

Therefore , R is transitive relation.


Related Solutions

Consider the matrix A given by [ 2 0 0 ] [ 0 2 3 ]...
Consider the matrix A given by [ 2 0 0 ] [ 0 2 3 ] [ 0 3 10 ] (20) Find all its eigenvalues and corresponding eigenvectors. Show your work. (+5) Write down the entire eigendecomposition (i.e. the matrices X, Lambda, and X inverse) explicitly.
Consider the given matrix. 3    0    0 0    2    0 16   ...
Consider the given matrix. 3    0    0 0    2    0 16    0    1 Find the eigenvalues. (Enter your answers as a comma-separated list.) λ = 1,2,3 Find the eigenvectors. (Enter your answers in order of the corresponding eigenvalues, from smallest eigenvalue to largest.)
9. Given the following reactions 2 Fe (s) + 3 CO2 (g)→ Fe2O3 (s) + 3...
9. Given the following reactions 2 Fe (s) + 3 CO2 (g)→ Fe2O3 (s) + 3 CO (g) ΔHorxn = +28.0 kJ 4 CO (g) + Fe3O4 (s)→ 3 Fe (s) + 4 CO2 (g) ΔHorxn = -12.5 kJ the enthalpy of the reaction (ΔHorxn) of Fe2O3 with CO 3 Fe2O3 (s) + CO (g)→ CO2 (g) + 2 Fe3O4 (s) is_______. 10. Given the following reactions N2 (g) + O2 (g)→ 2 NO (g) ΔHorxn = +180.7 kJ 2...
Given the following data (2, 5, 1, 0, 5, 0, 7, 2, 3) Calculate the 3rd...
Given the following data (2, 5, 1, 0, 5, 0, 7, 2, 3) Calculate the 3rd quartile from your "data". What's the probability that a randomly selected number from your data is even? Consider the events A = "a randomly selected number from your data is even" and B = "a randomly selected number from your data is above the 3rd quartile". Are these events disjoint, independent, neither, or both? Show your work.
Let S = {-3, -2, -1, 0, 1, 2, 3}. Define a relation R on S...
Let S = {-3, -2, -1, 0, 1, 2, 3}. Define a relation R on S by: xRy if and only if x = y + 4n for some integer n. a) Prove that R is an equivalence relation. b) Find all the distinct equivalence classes of R.
Q1- Given a set S = {1, 2, . . . , n} of players, with...
Q1- Given a set S = {1, 2, . . . , n} of players, with skill levels a1, a2, . . . , an, we need to partition the set of players S into two teams S1 and S2 of equal total skill. The teams do not need to be of equal size. However, every player must be in exactly one team. In other words, S1 ∪ S2 = S                                        (1) S1 ∩   S2 = ∅                                                     (2) Σ ak=...
Consider the set of integer numbers from 0 to 9, that is {0, 1, 2, 3,...
Consider the set of integer numbers from 0 to 9, that is {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}. Bob wishes to use these numbers to create a 7-digit password to secure his new laptop. Note that each number can appear in any position (for example, 0 can be the first number in the password). (a) Find the number of 7-digit passwords that are possible. (b) Find the number of 7-digit passwords with distinct digits. (c) Find...
Consider the following set of vectors in R6 S={[-9 7 -8 3 0 -5], [1 -7...
Consider the following set of vectors in R6 S={[-9 7 -8 3 0 -5], [1 -7 3 2 -8 -8], [-6 -14 1 9 -23 -29], [11 -21 14 1 -16 -11], [8 16 -8 8 10 1], [17 -7 13 -8 8 18] (a) (2 points) Demonstrate that S is not a basis for R6. (b) (4 points) Let H = Span S. Find a basis for H and determine its dimension. (c) (2 points) Determine whether v= [1,1,1,−1,−1,−1]...
Use data below to complete 5 3 0 0 0 5 1 2 0 1 1...
Use data below to complete 5 3 0 0 0 5 1 2 0 1 1 1 1 7 0 2 2 1 2 0 6 4 1 3 2 4 0 1 1 0 0 0 1 3 0 2 1 0 3 0 3 0 1 2 8 2 3 0 0 5 1 1 3 10 1 0 2 0 1 0 Table 1.18 Frequency of Number of Movies Viewed Number of Movies Frequency Relative Frequency Cumulative...
Consider the following reference string: 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0,...
Consider the following reference string: 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2, 1, 2, 0, 1, 7, 0, 1 Find the number of Page Faults with FIFO, Optimal Page Replacement, and LRU with four free frames that are initially empty. Which algorithm gives the minimum number of page faults?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT