Unit 5
Unit 5
Noida
Unit: 5
Discrete Mathematics
BHUSHAN
(AMCA 0105)
MCA Department
MCA 1st Semester
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 BMCA 0105 and DM UNIT 5 9
Noida Institute of Engineering and Technology, Greater
Noida
Online Link :
https://www.youtube.com/watch?
v=9AUCdsmBGmA&list=PL0862D1A947252D20&index=10
https://www.youtube.com/watch?
v=oU60TuGHxe0&list=PL0862D1A947252D20&index=11
https://www.youtube.com/watch?
v=_BIKq9Xo_5A&list=PL0862D1A947252D20&index=13
https://www.youtube.com/watch?
v=gs0dQF3pGqM&list=PLmXKhU9FNesTpQNP_OpXN7WaPwGx7NWsq
https://www.youtube.com/watch?v=Yk6-ZBb9vh4
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 BMCA 0105 and DM UNIT 5 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%
For example: a0 = 1 a1 = 6 a2 = 10
an = an−1 + 2 an−2 + 3 an−2
a3 = a0 + 2a1 + 3a2
= 1 + 2(6) + 3(10) = 43
A0 = C0 A1 = C1 ……………………… Ak = Ck
rk - c1rk-1 - c2rk-2 - … - ck = 0
(r+1)(r-2) = 0
r1 = 2 and r2 = -1
a0 = A + B = 2
a1 = 2A - B = 7
Solve above these equation A = 3 and B = -1
an = 3n + n3n is a solution.
r1 = 2 and r2 = -2
A = 1, B = 2, C= 0 and D=1
where c1, c2, …….., ck are real numbers, and f(n) is a function depending
only on n.
The recurrence relation
Example 1 an = an-1 + 2n
bn = 2bn-1 - bn-2 + 2n
c = 4 and d=0
then bn = 4.2n.
Pigeonhole Principle states that if there are fewer pigeon holes than
total number of pigeons and each pigeon is put in a pigeon hole, then
there must be at least one pigeon hole with more than one pigeon. If n
pigeons are put into m pigeonholes where n > m, there's a hole with
more than one pigeon.
In the evening, each pigeon will pick one of the pigeonholes to stay
If k is a positive integer and k + 1 objects are placed into k boxes, then
at least one of the boxes will contain two ore more objects
P(t ∈ ω| H0) = α
the level of significance is the size of the type I error or the maximum
producer’s risk.
The Null Hypothesis is the assumption that the event will not occur.
To put this company's claim to the test, create a null and alternate
hypothesis.
In contrast, the alternate theory states that the probability of a show of
heads and tails would be very different.
Time series tracks the movement of the chosen data points, such as a
security's price, over a specified period of time with data points
recorded at regular intervals.
Daily
Monthly
Quarterly
Yearly
Tim
Timee
Series
Series
Sm No
No Yes
Yes
Smoothing
oothing Trend?
Trend
Trend
Methods
Methods Trend? Models
Models
Moving
Moving Exponential
Exponential
Average
Average Sm
Smoothing
oothing
Auto-
Auto-
Linear
Linear Quadratic
Quadratic Exponential
Exponential Regressive
Regressive
They do not predict price direction, but rather smoothen out the price
data and define the current direction with a lag.
It filters out the “noise” from random price fluctuations thus makes it
easier to spot a trend.
It is simply takes the sum of all of the past closing prices over a time
period and divides the result by the total number of prices used in the
calculation.
It takes the sum of all closing prices, multiplies them by the position
of the data point, and divides by the number of periods.
This makes it the moving average of choice for many technical traders
You want to know whether the mean petal length of iris flowers
differs according to their species.
You can test the difference between these two groups using a t-test
and null and alterative hypothesis.
The null hypothesis (H0) is that the true difference between these
group means is zero.
t-test can only be used when comparing the means of two groups.
F test can be defined as a test that uses the f test statistic to check
whether the variances of two samples (or populations) are equal to the
same value.
On conducting the hypothesis test, if the results of the F-test are
statistically significant then the null hypothesis can be rejected
otherwise it cannot be rejected.
Q10 Find the first four terms each of the following recurrence relation
ak = aK-1+ 3aK-2 For all integers k >= 2, a0 = 1, a1 = 2
Q11 Solve the recurrence relation 2ar-5ar-1+2ar-2 =0 then find the
particular solution ao = 0 and a1 = 1
Q12 Find N if P ( N, 4) = 42 P (N, 2)
Q13 Solve the recurrence relation yn+2 - Yn+1 - 2yn =n2
Q14 Construct a binary tree from the given two Travels
In order 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11
Post order 1, 4, 3, 2, 6, 8, 9, 11, 10, 7, 5
Q15 If NC5 = 20 NC4, find N
Q4 In a Press Conference, there are 450 foreign journalists. 275 people can
speak German, 250 people can speak English, 200 people can speak
Chinese and 260 people can speak Japanese. Find the maximum number of
foreigners who cannot speak at least one language.
(a) 401 (b) 129 (c) 324 (d) 415
Q5 How many positive integers less than or equal to 100 are divisible by 2,
4 or 5?
(a) 12.3 (b) 87.2 (c) 45.3 (d) 78.2
Q6 There is a class of 40 students out of which 16 are girls. There are 27
students who are right-handed. How many minimum numbers of girls who
are left-handed in this class?
(a) 17 (b) 56 (c) 23 (d) 3
.
11/20/24 BHUSHAN BMCA 0105 and DM UNIT 5 83
Glossary Questions
QAttempt all parts Fill in The Blanks,
Hints(Pigeonhole Principle, Hypothesis testing, Moving Average ,
Chi-Square Test)
a The ………….. states that if n items are put into m containers, with n>m,
then at least one container must contain more than one item.
1.
11/20/24 BHUSHAN BMCA 0105 and DM UNIT 5 99
11/20/24 BHUSHAN BMCA 0105 and DM UNIT 5 100