Skip to content
Previous Year Question Paper

CS/SD-402 (GS) – Analysis Design of Algorithm

June 2024CSESEMESTER-4
June 2024
Max Marks: 70
Duration: 3 Hours
Instructions:

Attempt any five questions.

All questions carry equal marks.

Q.1
a)Unit 1

Obtain asymptotic bound using substitution method for T(n)=3T(n/3)+n and represent in θ notation.

b)Unit 1

What is Merge sort? Sort the elements 20,30,15,11,35,19,12,11,55 using Merge sort.

Q.2
a)Unit 1

Discuss Strassen's matrix multiplication and Classical O(n³) methods. When does Strassen's outperform?

b)Unit 2

Define spanning tree? Construct a minimal spanning tree for the given graph using Prim's algorithm.

Q.3
Unit 2

Solve job sequencing with deadlines using Greedy: n=4, P=(100,10,15,27), d=(2,1,2,1).

Q.4
a)Unit 2

Apply greedy method to solve 0/1 Knapsack: n=3, m=20, W=(18,15,10), P=(25,24,15).

b)Unit 3

Construct a multistage graph for the given graph using the greedy method.

Q.5
a)Unit 3

Explain the Floyd Warshall algorithm for the given graph.

b)Unit 4

Using branch and bound technique explain the 0/1 knapsack problem.

Q.6
a)Unit 4

Give the solution to the 8-queens problem using backtracking.

b)Unit 4

What is graph coloring? Explain graph coloring for the given graph.

Q.7
a)Unit 3

Use OBST to compute w(i,j), r(i,j), c(i,j) for identifier set (char,float,while,else) with given probabilities and construct optimal BST.

b)Unit 5

Explain in detail about 2-3 Trees with an example.

Q.8
Unit 1/2/4/5

Write short notes on any two: a) Binary search algorithm and its time complexity b) Single source shortest path c) Parallel algorithms d) NP Completeness.