Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

CS201-Discrete Math End Term Exam

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

Indian Institute of Information Technology Dharwad

End Term Examination - Odd SemesterAug - Dec 2021

CS201 – Discrete Mathematics

09.12.2021 TIME ALLOWED: 1Hrs and 30 Min

INSTRUCTIONS TO CANDIDATES

1. This examination paper contains Three (3) questions and comprises


Six (6) printed pages.

2. Answer all questions. The marks for each question are indicated at the
beginning of each question.

3. Answer each question beginning on a FRESH page of the answer book.

4. This IS NOT an OPEN BOOK exam.

5. Candidates may use calculators. However, they should write down


systematically the steps in the workings.

6. Candidates must write his/ her roll number, page number and signature
on each page of the answer sheet.
CS201

Question 1. (10 marks)

(I) Define the following terms with an example. (5 marks)

(a) Null graph


(b) Complete graph
(c) Path graph
(d) Cut vertex and cut edges
(e) Euler and Hamilton paths
(f) Subgraph
(g) r-Regular graph
(h) Connected and Disconnected Components
(i) Maximal and perfect matching
(j) Chromatic number

(II) Assume that v ≥ 3 and no circuits of length three. Let a connected


planar graph G consist of v2 number of vertices. Then how many
maximum number of edges G consists of? (1 marks)

(III) A lecture timetable is to be drawn up. Since some students wish


to attend several lectures, certain lectures must not coincide. The
asterisks in the following table show which pairs of lectures cannot
coincide. How many periods are needed to timetable all seven lectures?
Support your answer. (2 marks)
MA201 CS201 CS207 EC105 CS202 HS206 MA202
MA201 - * * * - - *
CS201 * - * * * - *
CS207 * * - * - * -
EC105 * * * - - * -
S202 * - - - - - -
HS206 - - * * - - *
MA202 * * - - - * -

(IV) Let graph g consists of 9 vertices and 16 edges. There are two vertices
of degree three, three vertices of degree two, two vertices of degree five,

2
CS201

and one vertex has degree six. Then how many vertices have degree
four. (2 marks)

Question 2. (15 marks)

(I) Define the following terms with an example. (3 marks)

(a) Injective
(b) Surjective
(c) Bijective
(d) Function Composition
(e) Equivalence Relation
(f) Equivalence Class

(II) Solve the following. (4 marks)

(a) Let f : R −→ R, f (x) = x2 and g : R −→ R, g(x) = 3x–1. Find


f ◦ g and g ◦ f .
(b) Find the inverse of each functions.
(i) f (x) = −2x−2
x+2
.
(ii) f (x) = −(x − 1)3 .
(iii) f (x) = (x − 2)5 + 3.
(iv) f (x) = 3 − 2x5 .
(c) Let A = {1, 2, 3, 4, 5}, and let
R = {(1, 1), (1, 3), (1, 4), (2, 2), (2, 5), (3, 1),
(3, 3), (3, 4), (4, 1), (4, 3), (4, 4), (5, 2), (5, 5)} be an equivalence re-
lation on A. Then enlist the equivalence class on R.
(d) Define a relation R on the integers by xRy if x2 − y 2 ≥ 3. Choose
the most complete correct statement below:
a) R is reflexive. b) R is symmetric. c) R is transitive. d) R is
reflexive and transitive. e) R is symmetric and transitive. f ) R

3
CS201

is reflexive and symmetric. g) R is an equivalence relation. h)


None of the above.
Support your answer.

(III) State whether following arguments are valid or not. Further, support
your answer. (2 marks)

(a) If |A| = 4 and |B| = 5, then there cannot be a surjective function


from A to B.
(b) The function h : N −→ N defined by h(y) = y + 1 is surjective.
(c) Let R be a relation defined on the set Z by aRb if a ̸= b. Then
R is symmetric and transitive.
(d) Show that the relation R in the set R of real numbers, defined
as R = {(a, b) : a ≤ b2 } is neither reflexive nor symmetric nor
transitive.

(IV) Answer the following questions. (6 Marks)

(i) Find the truth value of the following. (3 marks)


(a) Suppose p is false, q is false, s is true. Find the truth value
of (s ∨ p) ∧ (q ∧ ¬s).
(b) Suppose p is true, q is true, r is false, s is false. Find the
truth value of (s ∨ p) ∧ (¬r ∨ ¬s)
(c) Suppose p is true, q is true, s is false. Find the truth value
of (¬s ∨ p) ∨ (q ∧ ¬s)
(d) Suppose p is false, s is false, r is true. Find the truth value
of ¬[(s ∧ p) ∨ ¬r]
(e) Suppose p is false, q is true, s is true. Find the truth value
of (p ∧ ¬q) ∨ ¬s.
(f) Suppose p is true, q is true, r is true, s is false. Find the
truth value of (¬p ∨ s) ∨ (s ∧ r).
(ii) Let A = {1, 2, 4, 7, 9, 12, 14, 15} and B = {1, 3, 4, 5, 6, 7, 12, 13, 14}.
Then find: (3 marks)
i. A ∪ B
ii. A ∩ B
iii. A − B

4
CS201

Question 3. (15 marks)

(I) Solve the followings. (3 marks)

(i) Consider the following conditional statement: p : If the flood


destroys my shop or the fire destroys my shop, then the insurance
company will pay me. Then state the contrapositive and converse
of p.
(ii) If P → Q is false, can you determine the truth value of ¬(P ∧
Q) → Q? Explain your answer.
(iii) Is the following a true statement? 3 > 2 if and only if 0 < 3 − 2.

(II) Determine whether the following inference pattern is valid or invalid. If


the inference pattern is invalid, indicate a combination of truth values
which will produce counterexample. f the inference pattern is valid,
produce some evidence which will confirm validity. (Note that the
notation ⊢ indicates, conclusion [hence or therefore]) (2 marks)

(i) (P ∧ Q) → ¬T, W ∨ R, W → P, R → Q ⊢ (W ∨ R) → ¬T .
(ii) ¬T → ¬R, ¬S, T → W, R ∨ S ⊢ W .
(iii) ¬R → (S → ¬T ), ¬R ∨ W, ¬P → S, ¬W ⊢ T → P .
(iv) ¬P, P → Q, Q → R, ⊢ ¬R.

(III) Provide the formal proof of the following. (5 marks)

(i) Show that the hypotheses: It is not sunny this afternoon and it
is colder than yesterday.
We will go swimming only if it is sunny.
If we do not go swimming, then we will take a canoe trip.
If we take a canoe trip, then we will be home by sunset.
These lead to the conclusion:
We will be home by the sunset.
(ii) If the graphs are isomorphic, then they have the same number of
edges.
The graphs have different number of edges.
These lead to the conclusion: ???

5
CS201

(iii) The Loksabha President call a special session only if the Senate
can not reach a compromise.
If a majority of the cabinet are in agreement, then the Loksabha
President will call a special session.
The Senate can not reach a compromise.
Therefore, a majority of the cabinet are in agreement.
(iv) If Ajay is not reelected, then Vijay will lose its air base.
Ajay will be reelected if and only if Vijay votes for him.
If Vijay keeps its air base, Ajay will be reelected.
Hence, Ajay will be reelected
(v) If a pair of angles A and B are right angles, then they are equal.
The angles A and B are equal.
Hence, the angles A and B must be right angles.

(IV) Answer the following questions. (5 marks)

(a) It is observed that 73% students are interested in Mathematics


and 83% students are interested in Computer Sciences. Let us as-
sume that p% students are interested in both the subjects. Then
can we claim the p is not less than 56 and not greater than 73?
Support your answer.
(b) A placement organization observed that, in last year, there were
three sections (A, B and C) in a free mock Amazon placement
paper. Out of them 33 participants cleared the cut-off in Section
1, 34 participants cleared the cut-off in Section 2 and 32 cleared
the cut-off in Section 3. 10 participants cleared the cut-off in
Section 1 and Section 2, 9 cleared the cut-off in Section 2 and
Section 3, 8 cleared the cut-off in Section 1 and Section 3. The
number of participants who cleared each section alone was equal
and was 21 for each section. Then a) how many participants
cleared all the three sections? B) how many participants cleared
only one of the three sections?

END OF PAPER

You might also like