Module I - Question Bank-III B.tech - 2024
Module I - Question Bank-III B.tech - 2024
Module I - Question Bank-III B.tech - 2024
Set
Set theory forms the basis of several other fields of study like counting theory, relations, graph theory and
finite state machines. In this chapter, we will cover the different aspects of Set Theory.
Set - Definition
A set is an unordered collection of different elements. A set can be written explicitly by listing its elements
using set bracket. If the order of the elements is changed or any element of a set is repeated, it does not
make any changes in the set.
Uncountable Sets
A set which is not countable is Uncountable Set.
Theorem 3: The set of all real numbers in the open interval (0,1) is uncountable set.
Cantor’s Diagonal Argument
Theorem: The set {𝟎, 𝟏}∞ is an uncountable set.
Proof:
Cardinality represents the total number of elements present in a set. In case of power set, the cardinality
will be the list of number of subsets of a set. The number of elements of a power set is written as |P
(A)|, where A is any set. If A has ‘n’ elements then the formula to find the number of subsets of a set
in a power set is given by:
|P(A)| = 2n
For example, set A = {1, 2, 3}
n = number of elements of A = 3
So, the number of subsets in a power set of A will be:
Subsets of A = {}, {1}, {2}, {3}, {1,2}, {2,3}, {1,3}, {1,2,3,}
P|A| = 23 = 8
Hence, P(A) is {{}, {1}, {2}, {3}, {1,2}, {2,3}, {1,3}, {1,2,3,}}
An empty set has zero elements. Therefore, the power set of an empty set { }, can be mentioned as;
1. A set containing a null set.
2. It contains zero or null elements.
3. The empty set is the only subset.
Practice Problems
1. Let A= {1,3,5}, B={2,3} and C={4,6}. Find the following Cartesian product:
(i) A×B
(ii) B×A
(iii) (A ∪ B) × C
(iv) (A × B) ∪ C
(v) A ∩ (B × C)
(vi) (A × B) ∪ (B × C)
(vii) (A × B) ∪ (B × A)
(viii) (A × B) ∩ (B × C)
2. Let A= {2,3}, B={-1,2} and C={a,b}. Verify the following Cartesian product:
(i) (A) × (B ∪ C) = (A × B) ∪ (A × C)
(ii) (A) × (B ∩ C) = (A × B) ∩ (A × C)
6. If A= {a, b, c} is a set with 3 elements and B={1,2}is a set with 2 elements, find the number
of relation from A to B.
7. Let A and B be finite sets with |𝐵| = 3. If there are 4096 relations from A to B, what is |𝐴|?
1. Define injective, surjective, and bijective function. write short notes on Composition of
Functions.
2. Let A = {0, ±1, ±2, 3}. Consider the functions 𝑓: 𝐴 → 𝑅 (where r is the set of all real numbers)
defined by 𝑓(𝑥) = 𝑥 3 − 2𝑥 2 + 3𝑥 + 1, for 𝑥 ∈ 𝐴. Find the range of 𝑓.
(i) 𝐴1 = (2,3)
(ii) 𝐴2 = {−2,0,3}
(iii) 𝐴3 = (0,1)
(iv) 𝐴4 = [−6,3]
𝑓 = {(1,7), (2,7), (3,8), (4,6), (5,9), (6,9)} determine𝑓 −1 (6) and 𝑓 −1 (9). If 𝐵1 = {7,8} and
𝐵2 = {8, 9, 10}, 𝑓𝑖𝑛𝑑 𝑓 −1 (𝐵1)𝑎𝑛𝑑 𝑓 −1 (𝐵2 ) .
5. Let 𝑓: 𝑅 → 𝑅 be defined by
3𝑥 − 5 𝑓𝑜𝑟 𝑥 > 0 5 5
𝑓(𝑥) = { . (i) Determine 𝑓(0), 𝑓(−1), 𝑓 (3) , 𝑓(− 3).
−3𝑥 + 1 𝑓𝑜𝑟 𝑥 ≤ 0
7. If A={1,2,3,4,5} and B={6,7,8,9,10,11,12}, find how many functions 𝑓: 𝐴 → 𝐵 are such that
𝑓 −1 ({6, 7,8}) = {1,2}?
8. If A is a finite set with |𝐴| = 𝑛, find how many functions are there from A to A.
5. Given 𝑓: 𝑍 → 𝑍. Find whether function is one-to-one and whether it is onto. If the function is
not onto, determine range f(Z). f(x)=x+7.
6. Let A={1,2,3,4}, B={1,2,3,4,5,6}. (a) How many functions are there from A to B. How many
are one-to-one and how many are onto? (b) How many functions are there from B to A. How
many are one-to-one and how many are onto?
1. Define zero-one matrices and directed graphs. Let A={1,2} and B={p,r,s} and let the relation R
from A to B be defined by 𝑅 = {(1, 𝑞), (1, 𝑟), (2, 𝑝), (2, 𝑞), (2, 𝑠)}.
2. Let A={1,2,3,4} and let R be the relation on A defined by 𝑥𝑅𝑦 if and only if "𝑥 𝑑𝑖𝑣𝑖𝑑𝑒𝑠 𝑦", written
𝑥|𝑦.
ii. Write down R as a set of ordered pairs and matrix form
iii. Draw the digraph of R.
iv. Determine the in-degrees and out-degrees of the vertices in the digraph.
3. Let A={1,2,3,4,6} and R be a relation on A defined by 𝑎𝑅𝑏 if and only if 𝑎 is a multiple of 𝑏. Write
down the relation R. Also represent the relation R as a matrix and draw its digraph.
5. Let 𝐴 = {1,2,3,4,5,6,7} and 𝑅 be the equivalence relation on 𝐴 that induces the partition 𝐴 =
{1,2} ∪ {3} ∪ {4,5,7} ∪ {6}.
6. Let 𝐴 = {1,2,3,4} and 𝑅 = {(1,1), (1,2), (2,2), (2,4), (1,3), (3,3), (3,4), (1,4), (4,4)} . Verify
that 𝑅 is a partial order on 𝐴. Also write down the Hasse diagram for 𝑅.