MCS 211 June2010 June2023
MCS 211 June2010 June2023
MCS 211 June2010 June2023
om
MASTER IN COMPUTER APPLICATIONS
(MCA-NEW)
Term-End Examination
.c
December, 2021
u ru
MCS-211 : DESIGN AND ANALYSIS OF
tG
ALGORITHMS
combinatorial problems. 10
MCS-211 1 P.T.O.
(d) Describe a task scheduling problem as an
optimization problem. Apply the
om
scheduling algorithm with deadlines to
maximize the total profit to the following
problem : 10
.c
Jobs Deadlines Profits
ru
1 2 60
u
2 3 50
tG
3 4 70
4 en 5 80
5 4 75
6 3 55
m
7 2 40
ign
Pattern : f g h
MCS-211 2
(b) What is the similarity between Dijkstra’s
single source shortest path and Prim’s
om
minimum cost spanning tree algorithms ?
Apply Dijkstra’s algorithm to find the
shortest path from v1 to all other vertices of
.c
the following graph : 10
u ru
tG
en
3. (a) Apply Horner’s method for evaluating a
m
polynomial expression
p(x) = 6x6 + 5x5 + 4x4 – 3x3 + 8x – 7
ign
at x = 3.
Calculate : 10
ss
algorithm. 10
MCS-211 3 P.T.O.
4. (a) Apply the DFS algorithm to the following
graph with the starting vertex v1. List the
om
order in which vertices will be visited.
.c
u ru
tG
en
Show the complexity analysis if a graph is
represented through
(i) Adjacency list, and
m
MCS-211 4
(b) Explain the use of master method. Write
and interpret all the three cases of the
om
master method to solve recurrence relation
problem. 10
.c
u ru
tG
en
m
ign
ss
UA
NO
IG
MCS-211 5 P.T.O.
o m
. c
uru
t G
en
n m
s i g
A s
O U
N
IG
o m
. c
uru
t G
en
n m
s i g
A s
O U
N
IG
o m
. c
uru
t G
en
n m
s i g
A s
O U
N
IG
No. of Printed Pages : 4 MCS-211
om
MASTER IN COMPUTER APPLICATIONS
(MCA-NEW)
Term-End Examination
.c
December, 2022
ru
MCS-211 : DESIGN AND ANALYSIS OF
u
ALGORITHMS
tG
Time : 3 hours Maximum Marks : 100
(Weightage : 70%)
en
Note : Question no. 1 is compulsory. Attempt any
three questions from the rest.
m
ign
om
graph. Assume that the root vertex is a .
.c
u ru
Derive the complexity of the algorithm. 10
tG
(e) Apply Huffman’s algorithm to construct a
en
Huffman’s tree and optimal binary prefix
code for the letters and its frequencies as
m
given in the following table : 10
Letter Frequency
ign
A 15
B 6
ss
C 7
D 5
UA
E 12
I 13
Z 2
NO
an example. 10
MCS-211 2
(b) (i) Apply Dijkstra’s single source
shortest path algorithm to the
om
following graph with a as starting
vertex. Show all the intermediate
steps. 7
.c
u ru
(ii)
tG
What is the significant feature of
en
Bellman-Ford’s algorithm which is not
supported in Dijkstra’s algorithm ? 3
m
3. (a) Write and explain pseudocode for
Ford-Fulkerson’s algorithm for maximum
ign
bipartite matching. 10
would be visited. 7
(b) How many comparisons are needed for a
binary search in a set of 512 elements ? 3
IG
MCS-211 3 P.T.O.
(c) Apply Floyd-Warshall’s algorithm to the
following graph and show D2. 10
.c om
u ru
5. (a) Describe the task scheduling algorithm as
tG
an optimization problem and calculate its
complexity. Consider the following jobs and
its service times and apply the task
en
scheduling algorithm to minimize the total
amount of time spent in the system. 10
m
Job Service time
1 10
ign
2 15
3 8
ss
4 12
5 6
UA
MCS-211 4
No. of Printed Pages : 4 MCS-211
om
MASTER OF COMPUTER
u.c
APPLICATIONS
(MCA-NEW)
ur
Term-End Examination
June, 2023
tG
MCS-211 : DESIGN AND ANALYSIS OF
ALGORITHMS
en
Time : 3 Hours Maximum Marks : 100
(Weightage : 70%)
m
the rest.
desirable characteristics ? 5
UA
2
P. T. O.
[2] MCS-211
om
(e) Explain Depth First Search (DFS)
algorithm with an suitable example. 5
u.c
(f) What is Dynamic Programming approach
of problem solving ? Write the steps
involved in dynamic programming. 6
ur
(g) What are Optimization and Decision
problems ? Give an example of each. 5
tG
(h) Design a state space tree for the given
subset sum problem. S = {4, 6, 7, 8}, W = 8.
en
4
2. (a) Explain all the three cases of Master’s
m
n
T n 9T
3
ss
(b) Evaluate :
p x 3x 4 2x 3 5x 7 at x 2
UA
om
example. 6
(b) Explain Quick sort algorithm using divide
and conquer approach. 6
u.c
(c) What are strongly connected components ?
Explain how adjacency matrix and
ur
adjacency list are created for a connected
graph with the help of a suitable diagram.
tG
2+3+3
4. (a) Show the step by step execution of
en
Kruskal’s algorithm for the following
graph : 6
m
ign
ss
A1 30 × 35
A2 35 × 15
IG
A3 15 × 5
P. T. O.
[4] MCS-211
om
5. Write short notes on any four of the following :
4×5=20
u.c
(i) Deterministic vs. Non-deterministic
algorithms
(ii) CLIQUE and vertex cover problem
ur
(iii) Backtracking problem with example
tG
(iv) Bellman-Ford algorithm
(v) Fractional Knapsack problem
en
m
ign
ss
UA
NO
IG
MCS–211