a) Consider the following sets and use them to answer the questions that follow:
S1 = {1, 3, 5, 7, 9}.
S2 = {2, 3, 4, 6}.
S3 = {2, 4, 8}.
i). Define the Cartesian Product, S1XS2.
ii). Define the Cartesian Product, S1XS2XS3.
b) From the Cartesian Product S1XS2 defined above, what would the following relational expressions yield?
NOTE: Be sure to explain.
i). K= {(x, y) | (x belongs toS1, y belongs to S2 and x = y}.
ii). L = {(x, y) | (x belongs to S1, y belongs to S2 and 2x - y = 0}.
iii). M = {(x, y) | (x belongs to S1, y belongs to S2 and x = y2}.
c) From the Cartesian Product S1XS2XS3 defined above, what would the following relational expressions yield?
NOTE: Be sure to explain.
i). P = {(x, y) | (x belongs to S1, y belongs to S2, z belongs to S3 and x = y + z}.
ii). Q = {(x, y, z) | (x belongs to S1, y belongs to S2, z belongs to S3 and 2x + y = z}.
iii). R = {(x, y, z) | (x belongs to S1, y belongs to S2, z belongs to S3 and y2= z}.
Comments
Leave a comment