0% found this document useful (0 votes)
17 views3 pages

DAA October 2022

DAA

Uploaded by

pvmane1908
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views3 pages

DAA October 2022

DAA

Uploaded by

pvmane1908
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Total No. of Questions : 7] SEAT No.

:
PA-3400 [Total No. of Pages : 4
[5919]-12
M.Sc.
COMPUTER SCIENCE
CSUT-112 : Design and Analysis of Algorithms
(2019 Pattern) (Semester - I)
Time : 3 Hours] [Max. Marks : 70
Instructions to the candidates:
1) All questions are compulsory.
2) Neat diagrams must be drawn wherever necessary.

Q1) Solve any five of the following. [5×2=10]


a) Define θ notation and show that 5n +3n is θ(n ).
2 2

b) List any four algorithms that use divide and conquer strategy.
c) Define minimum spanning tree.
d) What do you mean by longest common subsequence problem?
e) Define :-
i) Tree edge
ii) Back edge
f) Give implicit and explicit constraints of 8 Queen’s problem.
g) Write two bounding function associated with every node in LCBB.
Q2) Solve the following.
a) Rank the following functions in their increasing order of growth rate. [7]
en, nn, n!, loge(nn), n2
b) Find out the shortest paths from source ‘s’ to all other vertices. [5]

[5919]-12 1 P.T.O.
Q3) Solve the following.
a) Explain quick sort algorithm. Sort the following numbers using quick
sort. [7]
26, 5, 37, 1, 61, 11, 59, 15, 48, 19.
b) Find an optimal solution to the knapsack instance [5]
n = 3 m = 20 (p1, p2, p3) = (25, 24, 15)
(w1, w2, w3) = (18, 15, 10)
Using function method, from dynamic programming.

Q4) Solve the following.


a) Using prim’s algorithm find the minimum spanning tree of the following
graph (G). Start vertex is ‘V’. [7]

b) Find longest common sub - sequance of X and Y. Where [5]


X = <A, B, C, B, D, A, B>
Y = <B, D, C, A, B, A>

Q5) Solve the following.


a) Solve traveling sales person problem (TSP) using dynamic programming
method for the graph G given by adjacency matrix. [7]

 0 15 9 5 
19 0 7 10 
A= 
 ∞ 10 0 10 
 
6 ∞ 6 0

[5919]-12 2
b) Find the minimum spanning tree for the following graph using Kruskal’s
algorithm. [5]

Q6) Solve the following.


a) Draw BFS and DFS for following graph. [7]

b) Sort the following numbers with counting sort algorithm. [5]

5, 3, 1, 2, 1, 4, 1, 3, 2, 5.

Q7) Write a short note on any two of the following. [2×6=12]

a) Define the term with example.

i) Optimization problem

ii) NP Hard

iii) Matrix chain multiplication

[5919]-12 3

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy