MMW HW02
MMW HW02
MMW HW02
HOMEWORK 02
INSTRUCTIONS
• Use PDF format before uploading your answer.
• Hand-written answer will be accepted.
• ALWAYS INDICATE YOUR NAME AND SECTION ON YOUR ANSWER
Question 1 (7 points)
Give one example or an application of a SUBSET.
Question 2 (7 points)
What is a POWER set of a given set? Give one example.
• The power set of a given set is the set of all possible subsets of that set, including
the empty set and the set itself.
To find the power set of A, we need to find all possible subsets of A, including
the empty set and A itself. We can list all the subsets of A as follows:
• The formula for the cardinality of the union of three sets A, B, and C is:
where:
n denotes the cardinality or number of elements in a set
∩ denotes the intersection of sets.
For example:
Question 4 (7 points)
Give one example or an application of a CROSS PRODUCT or CARTESIAN PRODUCT of two
sets.
• One example of an application of the Cartesian product of two sets is in the field of
mathematics and computer science when dealing with relational databases. In this
context, the Cartesian product of two sets A and B (written as A x B) is a set of all
possible ordered pairs where the first element belongs to A and the second element
belongs to B.
For example, suppose we have two sets: A = {1, 2} and B = {x, y, z}. The Cartesian
product A x B would be:
A x B = {(1, x), (1, y), (1, z), (2, x), (2, y), (2, z)}
This means that there are six possible ordered pairs that can be formed by
taking one element from A and one element from B.
Question 5 (7 points)
What is a relation? And give one example.
• A relation is a set of ordered pairs that establish a connection between two sets of
elements. A relation can be represented using a graph or a table, and it can have
various properties such as being reflexive, symmetric, or transitive.
One example of a relation is the "greater than" relation, denoted by the symbol
">", which relates two numbers if one is greater than the other. For instance, the
relation "5 > 3" means that 5 is greater than 3, and it can be represented as the
ordered pair (5,3) or as a directed arrow pointing from 5 to 3. In this case, the two sets
of elements are the set of all real numbers, and the relation is the subset of pairs of
numbers where the first element is greater than the second element.
Question 6 (7 points)
Define a function, and give one example.
• A function is a relation between two sets of elements such that each element of the
first set is associated with exactly one element of the second set. In other words, a
function maps every element from one set (the domain) to a unique element in
another set (the range).
One example of a function is the square function, denoted by the symbol "f(x)
= x^2". This function maps each real number x to its square, which is another real
number. For instance, f(2) = 2^2 = 4, and f(-3) = (-3)^2 = 9. The domain of this function
is the set of all real numbers, and the range is the set of non-negative real numbers.
The graph of the square function is a parabola that opens upward and passes through
the origin.
Question 7 (7 points)
What is a BINARY OPERATION? Give one example.
addition (+) and multiplication (×) are binary operations on the set of real numbers. If
we take any two real numbers, say 2 and 3, we can apply the addition operation to get
the result 5 (i.e., 2 + 3 = 5) or apply the multiplication operation to get the result 6 (i.e.,
2 × 3 = 6).