Skip to content
Previous Year Question Paper

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

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

Attempt any five questions.

All questions carry equal marks.

Q.1
a)Unit 1

Give the asymptotic bounds for f(n)=2n²-4n+20 and represent in θ notation.

b)Unit 1

Define Quicksort? Sort elements 22,12,30,46,28,14,8,10,56,18,3 using Merge sort.

Q.2
a)Unit 1

Write an algorithm to find matrix multiplication using Strassen's method.

b)Unit 2

Construct Huffman coding for the given character frequencies and write applications.

Q.3
Unit 2

Solve job sequencing with deadlines using Greedy: n=5, P=(5,20,10,15,1), d=(3,2,1,2,3).

Q.4
a)Unit 3

Solve 0/1 Knapsack using DP: n=4, m=40, W=(2,11,22,15), P=(11,21,31,33).

b)Unit 2

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

Explain in detail about the FIFO branch and bound.

Q.6
a)Unit 4

Write an algorithm for the 8-queens problem using backtracking.

b)Unit 4

Draw the state space tree for 'm' coloring when n=3 and m=3.

Q.7
a)Unit 5

Use OBST to compute w(i,j), r(i,j), c(i,j) for identifier set (double,int,for,if) and construct optimal BST.

b)Unit 5

Explain in detail Height balanced tree 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) Hamiltonian graph and cycle d) Breadth First Search.