Skip to content
Previous Year Question Paper

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

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

Attempt any five questions.

All questions carry equal marks.

Q.1
a)Unit 1

Trace the quick sort algorithm to sort the list C,O,L,L,E,G,E in alphabetical order.

b)Unit 1

Discuss Strassen's matrix multiplication and derive its time complexity.

Q.2
a)Unit 1

Design merge sort algorithm and discuss its best-case, average-case and worst-case Efficiency.

b)Unit 2

How to solve the Knapsack problem with greedy method? Explain.

Q.3
a)Unit 2

Write an algorithm for single source shortest path and explain with an example.

b)Unit 2

Discuss briefly about the minimum spanning tree.

Q.4
a)Unit 3

What do you mean by forward and backward approach of problem solving in Dynamic Programming?

b)Unit 3

How the reliability of a system is determined using dynamic programming? Discuss.

Q.5
a)Unit 3

Find an optimal solution for 0/1 Knapsack problem using DP: n=4, M=5, W=(2,3,4,5), P=(3,4,5,6).

b)Unit 4

Explain the 8 queen's problem and apply the backtracking to solve the 8 queen's problem.

Q.6
Unit 4

Write the control abstraction for LC-Search. Explain how Traveling Salesperson problem is solved using LCBB with the given cost matrix.

Q.7
a)Unit 5

Discuss the differences between BFS and DFS.

b)Unit 5

What are 2-3 trees used for? Why are 2-3 trees better than BST trees? Write the limitations of 2-3 tree.

Q.8
Unit 1/3/5/4

Discuss briefly any two: a) Heap sort b) Dynamic Programming c) Height balanced tree d) Parallel algorithm.