Professional Documents
Culture Documents
Assignment 1 - Dicrete Math
Assignment 1 - Dicrete Math
Assignment 1 - Dicrete Math
Summative Feedback:
Internal verification:
Part 1:
1. Let A and B be two non-empty finite sets. If cardinalities of the sets A, B, and A ∩ B are
72, 28 and 13 respectively, find the cardinality of the set A ∪ B.
2. Let A = { n∈N: 20≤n<50 } and B = { n∈N: 10<n≤30 }. Suppose C is a set such that C⊆A
and C⊆B. What is the largest possible cardinality of C ?
C = A ∩ B = { n ∈ N : 20 ≤ n ≤ 30 }
A = { n∈N: 20≤n<50 } C = {20,21,22,23,24,25,26,27,28,29,30}
B = { n∈N: 10<n≤30 }
The largest possible cardinality of C is 11.
C⊆A and C⊆B
3. Consider the sets A and B, where A = { 3,|B| }and B = { 1,|A|,|B|}. What are the sets ?
2 ,|B|≠ 3
It follows that |A∣ = {
1,|B|≠ 3
.
Suppose that |A∣=1, then B={1, 1, |B|} = {1, |B|} and we have a contradiction
with |B∣=3. => |A|=2 and thus |B|≠3.
Taking into account that B= {1, |A|, |B|}= {1,2,|B|} and |B∣ < 3, we conclude that
|B|=2.
Part 2:
A set is an unordered collection of distinct objects. The objects in a set are called the
elements, or members, of the set. A multiset (mset, for short) is an unordered collection of
objects (called the elements) in which, unlike a standard (Cantorian) set, elements are allowed to
repeat. In other words, an mset is a set to which elements may belong more than once, and hence
it is a non-Cantorian set.
Set theory is applicable not only in one field or area. Because of its very general or
abstract nature, set theory has many applications in other branches of mathematics e.g. Discrete
structure, Data structure etc. In the branch called analysis of which differential and integral
calculus are important parts, an understanding of limit points and what is meant by continuity of
a function are based on set theory. The algebraic treatment of set operations leads to boolean
algebra, in which the operations of intersection, union and difference are interpreted as
corresponding to the logical operations “and”, “or” and “not” respectively. Boolean algebra is
used extensively in the design of digital electronic circuitry, such as that found in calculators and
personal computers. Set theory provides the basis of topology, the study of sets together with the
properties of various collections of subsets.
A major reason for set theory is that it makes the terminology of other forms of mathematics
easier aside from that of course everyone “uses” set theory every-day, even if they don’t know it
or have never learned set theory.
For example, I will take multiset in C++ Standard Template Library. Multisets are a type
of associative containers similar to set, with an exception that multiple elements can have same
values. Some Basic Functions associated with multiset:
end() – Returns an iterator to the theoretical element that follows last element in the multiset
max_size() – Returns the maximum number of elements that the multiset can hold
empty() – Returns whether the multiset is empty
Part 3:
1. Determine whether the following functions are invertible or not. If it is invertible, then
find the rule of the inverse f-1(x)
i. f : R → R+
f(x) = x^2
The function f(x)=x^2 is not injective in the domain D(f)=R , since we have an
example:
Replace x = 2 in the equation, we have: (-2) ^2 = 4 = 2^2 but -2 is not = 2.
Conclusion: f : R → R+ ; f(x) = x^2 is no inverse function.
ii. f : R+ → R+
f(x) = 1/x
This function is surjective and injective, therefore the function has an inverse
function.
y = 1/x x = 1/y f(x) = 1/x f^-1(x) = 1/x
Verification f (f^−1(x) )=1/ 1/x =x
=> f(x) = 1/x f^−1(x) =1/x
iii. f : R+ → R+
f(x) = x^2
This function is surjective and injective, therefore the function has an inverse
function.
y = x^2 x = √y f(x) = x^2 f^-1(x) = √x
Verification f(f^−1(x)) = (√x)^2 = x
=> f(x) = x^2 f^−1(x) = √x
iv. f : [-π/2 , π/2]
f(x) = sinx
The function y = sinx is not monochromatic over all domains. However, if we
consider the segment [-π/2 , π/2] then the function y = sinx is a covariate function,
so there is only an inverted image, and that inverted image is denoted x= arcsiny .
And x ∈ [-π/2 , π/2]; y ∈ [-1, 1].
π/2 y = arcsinx
-1 1
-π/2
So the inverse of y = sinx is y = arcsinx ( y is the arc where sin equals x).
v. f : [0, π] [-2, 2]
f(x) = 2cosx
Considering the function y = 2cosx on the segment 0 ≤ x ≤ π, then the function y
= 2cosx is a decreasing function, so there is only an inverse, and that inversion is
denoted x = 2arccosy. So y = 2cosx, (0 ≤ x ≤ π; -2 ≤ y ≤ 2) => x = 2arccosy.
π
3
1
y = arccosx
-2 -1 1 2
Therefore the opposite function ,which convert Celsius to Fahrenheit is 9/5y + 32.
Where y is the temperature in Celsius.
Part 4:
1. Formulate corresponding proof principles to prove the following properties about defined
sets. A=B⇔A⊆B and B ⊆ A.
Let x be arbitrary.
Because A ⊆ B if x ∈ A then x ∈ B
Because B ⊆ A if x ∈ B then x ∈ A
Hence, x ∈ A if x ∈ B, thus A = B.
To prove this distributive Laws for three non-empty finite sets A, B, and C, I would use
the Indirect method. Let A , B , C be sets. If A ⊆ B and B ∩ C = ∅ , then A ∩ C = ∅. If we
assume the conclusion is false and we obtain a contradiction --- then the theorem must be true.
Assume A ⊆ B and B ∩ C = ∅ , and A ∩ C ≠ ∅ . To prove that this cannot occur, let x ∈ A∩C.
Therefore, x ∈ A ∩ C ⇒ x ∈ A and x ∈ C ⇒ x ∈ B and x ∈ C ⇒ x ∈ B ∩ C. But this contradicts
the second premise. Hence, the theorem is proven