ESP-V _ESP(CS)-501 _Question Bank _Merged All _V2.0 (1)
ESP-V _ESP(CS)-501 _Question Bank _Merged All _V2.0 (1)
SEMESTER: 5th
SUBEJCT
ESP(CS)-501
CODE:
SUBEJCT
Essential Studies for Professionals - V
NAME:
Section
Text Book Name, Chapte
Module No. No. (if Exercise Nos.
Author, Publisher r No
any)
Computer System 5, 7, 9, 2, 4, 1, 5,
Architecture, 1, 2, 3, 7, 9, 10, 2, 6, 3,
Third Edition , 4 5, 2, 7, 8, 3, 5, 2,
Morris Mano 6, 2, 6, 2
G.K publishers
2, 6, 8, 7, 3, 5, 4,
GATE Computer
Module 1 2, 3, 4 7, 4, 2, 11, 7, 8,
Science
3, 5
Engineering
Computer System
Architecture, 2, 4, 3, 5, 10, 38,
3, 4, 5
Third Edition , 56, 58, 65, 5, 8, 9
Morris Mano
G.K publishers
Module 2 GATE Computer GATE Previous
3
Science Year Questions
Engineering
Computer
1, 2,
Organization and 1, 4 , 5
4,5,6
Module 3 Design, Patterson
Discrete Mathametics
Module 4 U.S. Gupta and G.K
GATE Previous
publishers GATE Year Questions
6
Create an AVL tree by the following elements in Lexicographic order: Jan, Feb,
Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov & Dec. Show balance factors after
7 insertion of each element.
Consider a sequence a of elements a0 = 1, a1 = 5, a2 = 7, a3 = 8, a4 = 9, and a5 = 2.
The following operations are performed on a stack S and a queue Q, both of which
are initially empty.
I: push the elements of a from a0 to a5 in that order into S.
II: enqueue the elements of a from a0 to a5 in that order into Q. III: pop an element
8 from S.
IV: dequeue an element from Q. V: pop an element from S.
VI: dequeue an element from Q.
VII: dequeue an element from Q and push the same element into S. VIII: Repeat
operation VII three times.
IX: pop an element from S. X: pop an element from S.
Show the stack and the queue at each intermediate step.
(a) Consider a binary search tree (BST) containing the following elements: {20, 10,
30, 5, 15, 25, 35}. Draw the BST after inserting all the elements in the given order.
Then, explain the process of finding the minimum and maximum elements in a
BST. (5 marks)
(b) What are AVL trees, and how do they differ from regular binary search trees?
Discuss the rotation operations (left rotation, right rotation, left-right rotation, right-
left rotation) used in AVL trees to maintain balance. Explain how these rotations
help in maintaining the balance property of AVL trees. (5 marks)
9
a) Explain the difference between a min-heap and a max-heap. How are these
structures implemented in an array, and what are the properties that must be
maintained to ensure the integrity of these heaps? (5 marks)
4 5 CO4 BL3
5 Prove that where is the size of the largest independent set.
6 Prove that where represents chromatic polynomial of a graph (Note that denotes a complete 4 5 CO4 BL3
graph with vertices).
8 Prove that the chromatic polynomial of a tree with vertices is . 4 5 CO4 BL3
9 1 2 CO1 BL1
What do you mean by gcd of two numbers?
10 1 2 CO1 BL1
What is the difference between relatively prime numbers and prime numbers?
12 1 2 CO1 BL3
List all the primes between 100 and 150.
14 1 2 CO1 BL5
If (mod 7), then (mod 7)
15 1 2 CO1 BL1
What do you mean by division algorithm?
16 1 2 CO1 BL3
Express 2940 as product of primes.
17 1 2 CO1 BL2
Prove that square of any odd natural number is of the form 8k+1 .
2.Examine the graphical representation of a bijective function. How can you visually determine if a function is
bijective by looking at its graph? 5 CO5,BL5
4. How many reflexive relations are there on a set with n elements? 5 CO1, BL1
6. Apply Kuratowski's Theorem and its significance in identifying non-planar graphs. How does the theorem
work, and why is it a reliable criterion for determining planarity? 5 CO3, Apply
8. Evalute the Graph Color Theorem and its connection to planar graphs.
9. How does the theorem relate to coloring the vertices of a planar graph with a minimal number of colors?
5 CO5, Evaluate
10. Evaluate ~(p ∧ q) <-> (p ∨ q) using DNF and CNF 5 CO5, Evaluate
11.Justify (A+B) (A`+C) =AC+AB 5 CO5, Evaluate
12Find the condition for which a 4 digit natural number is divisible by 8. 5 CO5, Evaluate
15. Explain the ``independent set" of a graph using an example. 5 CO5, Evaluate
10 MARKS QUESTIONS
1. Given A={1,2,3,4}.Consider the following relation on A:
R={(1,1),(2,2),(2,3),(3,2),(4,2),(4,4)}.
a. Verify whether R is reflexive or not?
b. If not find the reflexive closure of R. 10 CO3,Apply
2.A. Write the converse, inverse and contrapositive of the following statements-
1. You will qualify GATE only if you work hard.
2.If you are intelligent, then you will pass the exam
B. Discuss the significance of Cartesian product of two sets with a real life example. 10 CO2,
Understand
Or
Given A={1,2,3,4}.Consider the following relation on A:
R={(1,1),(2,2),(2,3),(3,2),(4,2),(4,4)}.
a. Verify whether R is reflexive or not?
b. If not find the reflexive closure of R. 5 CO3,
Apply
7.A.Prove that the chromatic polynomial of a tree with 𝑛 vertices is 𝑃(𝐺; 𝑡) = 𝑡(𝑡 − 1)n–1
B.Compute the chromatic polynomial of the following graph: 10 CO5, Evaluate
8.A.For a simple connected graph 𝐺 with 𝑛 vertices, prove that χ(G)= 𝑛 if and only if 𝐺 = 𝐾n
B.For a simple connected graph 𝐺, with at least two vertices, prove that χ(G)=2 if and only if 𝐺 is
bipartite. 10 CO5, Evaluate
9.A. You are given a graph below: Find
the followings:
i. All paths from V1 to V4
ii. All trails from V1 to V4
B. Derive the incident matrix for the following graphs: 10 CO3, Evaluate
10.A.
I. Draw a simple graph having four vertices each of degree 2.
II. Draw a connected graph with 3 vertices and 4 edges.
III. Find the minimum number of connected components of a simple graph with 16 vertices and
10 edges.
𝑃 ≤ √𝑛
44. What do you mean by a countable and uncountable set? Justify with examples.
45. Let X= {1,2,3,4}. Then determine whether or not the relation below is a function from X into X. f=
{(2,3), (1,4), (2,1), (3,2), (4,4)}
46. Let the functions f and g be defined by 𝑓(𝑥) = 2𝑥 + 1 and 𝑔(𝑥) = 𝑥2 − 2
Find the formula defining composition function 𝑓 ● 𝑔
47. Let 𝑓 ∶ ℝ → ℝ be defined by 𝑓(𝑥) = 2𝑥 − 3. Show that f is bijective and hence find 𝑓–1
48. Consider a set A={a,b,c} and the relation R defined on A by R={(a,a),(a,b),(b,c),(c,c)}.
a. Verify whether R is symmetric or not?
b. If not find the symmetric closure of R.
49. Discuss the significance of Cartesian product of two sets with a real-life example. 50.
a. Define equivalence relation.
b. Show that the relation {𝑥𝑅𝑦 ∶ 4|𝑥 − 𝑦, 𝑥, 𝑦 ∊ 𝕫} is an equivalence relation on 𝕫
c. Hence deduce the equivalence class of [0], [1], [2] and [3].
51. Let 𝐴 = {1, 2, 3, 4, … , 9} and let ~ be a relation on 𝐴 × 𝐴 defined by (𝑎, 𝑏) ~ (𝑐, 𝑑) if
𝑎 + 𝑑 = 𝑏 + 𝑐. Then
a. Prove that ~ is an equivalence relation.
b. Find [(2,5)], i.e., the equivalence class of (2,5).
52. Describe Idempotent and inverse law with example
53. Differentiate Commutative law and Associative law