Unit 1
Unit 1
Noida
Unit: 1
Discrete Mathematics
(AMCA 0105) BHUSHAN
ASSISTANT PROFESSOR
MCA 1st Semester
MCA Department
Text Books :
1. Discrete Mathematics and Its Applications, Kenneth H. Rosen,
McGraw-Hill, 2006.
2. Discrete Mathematical Structures, B. Kolman, R. C. Busby, and S. C.
Ross, Prentice Hall, 2004.
3. Koshy, Discrete Structures, Elsevier Pub. 2008 Kenneth H. Rosen,
Discrete Mathematics and Its Applications, 6/e, McGraw-Hill, 2006.
Reference :
1. Discrete and Combinatorial Mathematics, R.P. Grimaldi, Addison
Wesley, 2004.
2. Discrete Mathematical Structures, Y N Singh, Wiley-India, First Edition,
2010.
3. Grewal B. S., “Numerical methods in Engineering and Science”,
Khanna Publishers, Delhi, 43rd Edition 2015.
11/20/24 BHUSHAN AMCA 0105 and DM UNIT 1 9
Noida Institute of Engineering and Technology, Greater
Noida
Online Link :
https://www.youtube.com/watch?v=9AUCdsmBGmA&list=PL0862D1A947
252D20&index=10
https://www.youtube.com/watch?v=oU60TuGHxe0&list=PL0862D1A94725
2D20&index=11
https://www.youtube.com/watch?v=_BIKq9Xo_5A&list=PL0862D1A94725
2D20&index=13
https://www.youtube.com/watch?v=gs0dQF3pGqM&list=PLmXKhU9FNes
TpQNP_OpXN7WaPwGx7NWsq
https://www.youtube.com/watch?v=Yk6-ZBb9vh4
11/20/24 BHUSHAN AMCA 0105 and DM UNIT 1 10
Noida Institute of Engineering and Technology, Greater
Noida
Course Objective
To develop mathematical ability in understanding mathematical
1 reasoning, ability to perform combinatorial analysis and
knowledge about discrete structures.
2 Perform operations on discrete mathematics such as sets,
functions and relations.
3 Verify the correctness of an argument using symbolic logic and
truth tables.
4 Solve problems using counting techniques and Combinatorics.
5 To improve formal reasoning skills acquisition and
mathematical knowledge.
11/20/24 BHUSHAN AMCA 0105 and DM UNIT 1 11
Noida Institute of Engineering and Technology, Greater
Noida
Course Outcome: At the end of course , the student will be able to:
CO1 Use mathematical and logical notation to define and formally reason about K1,K2
basic discrete structures such as Sets, Relations, Functions and Induction.
CO3 Identify and prove properties of Algebraic Structures like Groups, Rings and K3
Fields
Program Outcomes
Program outcomes examine what a • Computational Knowledge
program or process is to do, achieve, • Problem Analysis
or accomplish for its own • Design /Development of Solutions
improvement and/or in support of • Conduct investigations of complex
institutional or divisional goals: Computing problems
generally numbers, needs, or • Modern Tool Usage
satisfaction driven. They can address
• Professional Ethics
quality, quantity, fiscal sustainability,
• Life-long Learning
facilities and infrastructure, or
• Project management and finance
growth.
• Communication Efficacy
• Societal and Environmental
Concern
• Individual and Team Work
• Innovation and Entrepreneurship
3 3 2 3 3 2 2 2
CO 2
3 3 3 3 2 3 2 2 2
CO 3
3 3 3 3 2 3 2 3 2
CO 4
3 3 3 2 2 2 3 2
CO 5
3 3 2 3 3 2 2 2 2 2
PEO 1
3 3 2 3 2 3 3 2 2 2
PEO 2
3 3 3 3 2 3 2 2 2 2
PEO 3
Year Percentage
2020-21 97%
2019-20 100%
2018-19 100%
• Sets are used to define the concepts of relations and functions. The
study of geometry, sequences, probability, etc. requires the
knowledge of sets.
• ‘The theory of sets was developed by German mathematician Georg
Cantor (1845-1918).
• He first encountered sets while working on “problems on
trigonometric series”.
• Studying sets helps us categorize information. It allows us to make
sense of a large amount of information by breaking it down into
smaller groups
- "proper subset“
A B - A is a proper subset of B (A ≠B)
Every element in A is also in B and
A≠B
( x: x B x A) ˄ A ≠ B
1. Commutative Laws:
For any two finite sets A and B;
(i) A U B = B U A
(ii) A ∩ B = B ∩ A
2. Associative Laws:
For any three finite sets A, B and C;
(i) (A U B) U C = A U (B U C)
(ii) (A ∩ B) ∩ C = A ∩ (B ∩ C)
5. De Morgan’s Laws:
For any two finite sets A and B;
(i) A – (B U C) = (A – B) ∩ (A – C)
(ii) A - (B ∩ C) = (A – B) U (A – C)
De Morgan’s Laws can also we written as:
(i) (A U B)’ = A' ∩ B'
(ii) (A ∩ B)’ = A' U B'
A= {a, b, c, d } B = {1, 2, 3}
a
R = {(a,2), (b,1), (b, 2), (c,3), (d,2)}.
b 1
c 2
d 3
Is this relation a function?
R 1 2 3
a X
b x X
c x
d x
11/20/24 BHUSHAN AMCA 0105 and DM UNIT 1 45
Functions and Relations
• Recall that: Let f: A → B be a function. The graph of f is the set of
ordered pairs
Gf = {(x, f (x)) | x A}.
Let A be a set with n elements. How many distinct relations are there
on A?
Answer: The number of relations is the same as the number of subsets
of AxA. There are n2 elements in AxA. Thus, P(AxA), the power
set of AxA, has 2n2 elements. Therefore, there are 2 n2 relations on a
set with n elements.
• Note that a relation can be both not reflexive and not irreflexive.
2
1
3
4
0 0 0 0
0 1 1 1
0 1 1 1
0 0 0 0
• Solution:
– Since for each x, xRx then it is reflexive.
– Since it is reflexive, it is not ir reflexive.
– Since x = ±y if and only if y = ±x, then it is symmetric.
– It is not anti symmetric since, for example, (1,–1)
and (–1,1) are both in R but 1 ≠ –1
– It is also transitive because essentially the product of ±1 and ±1
is ±1.
– https://niet.instituteoncloud.com/
• Solution:
– It is not reflexive since, for example, (1,1) R.
– It is not irreflexive since, for example, (0,0) R.
– It is not symmetric since, for example, (2,1) R
but (1,2) R.
– It is antisymmetric because x = y =0 is the only time that (x,y)
and (y,x) are both in R.
– It is not transitive since, for example, (4,2) R and (2,1) R but
(4,1) R.
Relation R IR S A T E
R = {(x,y) | x + y = 0} ✓
R = {(x,y) | x = ±y} ✓ ✓ ✓ ✓
{(x,y) | x – y is a rational number} ✓ ✓ ✓ ✓
R = {(x,y) | x = 2y} ✓
R = {(x,y) | x y ≥ 0} ✓ ✓
R = {(x,y) | x y = 0} ✓
R = {(x,y) | x = 1} ✓ ✓
R = {(x,y) | x = 1 or y = 1} ✓
• Since relations are special kind of sets, all of the operators we used
for combining sets could be used to combine relations.
SoR
R S
A B c
a 1 a 1
e 2 e 2
i 3 i 3
o 4 o 4
5 5
A one-to-one function
a 1 a 1
e 2 e 2
i 3 i 3
o 4 o 4
u 5
An onto function
a 1
b 2
c 3
d 4
• A function such that the image and the pre-image are ALWAYS
equal
• f(x) = 1*x
• f(x) = x + 0
a 1
a 1
b 2
b 2
c 3
c 3
d
4
(f ○ g)(x) = f(g(x))
Step 3: Prove that the result is true for P(k+1) for any positive integer k.
If the above-mentioned conditions are satisfied, then it can be concluded that P(n)
is true for all n natural numbers.
P(1)≣1=1(1+1)(2×1+1)/6=1×2×3/6=1 which is
For n=1,
true
therefore, P(n) is true. Where n = 1
Assume that P(k) is true for some positive integer
k ,i.e.,
1²+2²+3²+4²+……..+k²=k(k+1)(2k+1)/6 --------[1]
6 = 1×2×3×4/4
6 = 24/4=6 which is true.
therefore, P(n) is true, where n=1
Assume that P(k) is true for some positive integer k
=1.2.3+2.3.4+………+k(k+1)(k+2)=k(k+1)(k+2)(k+3)/4
-------------------[1]
We shall now prove that P(k+1) is also true
Now we have,
=1.2.3+2.3.4+………..+(k+1)(k+1+1)(k+1+2)
= k(k+1)(k+2)(k+3)/4 + (k+1)(k+2)(k+3)
= k(k+1)(k+2)(k+3) + 4(k+1)(k+2)(k+3)/4
= (k+1)(k+2)(k+3)(k+4)/4
Thus P(k+1) is true, whenever P(k) is true
Hence, from the principle of mathematical induction, the statement P(n)
is true for all natural numbers n.
Question: Prove that the sum of cubes of n natural numbers is equal to ( (n+1) 2)2 for
all n natural numbers.
Solution:
Step 1: Now with the help of the principle of induction in math let us check the validity
of the given statement P(n) for n=1.
Step 2: Now as the given statement is true for n=1 we shall move forward and try
proving this for n=k, i.e.,
13+23+33+⋯+k3= (k(k+1)2)2 .
Solution:
We see that the given statement is also true for n=k+1. Hence we can say
that by the principle of mathematical induction this statement is valid for all
natural numbers n.
b The………… definition is that when two sets have the same elements.
d A………… includes all the subsets of a given set including the empty
set.
In the end students are able to develop there logical thinking by
using Sets, relation and functions concepts.