Skip to content
Previous Year Question Paper

CSIT-403 – Analysis & Design of Algorithm (ADA)

June 2023•CSIT•SEMESTER-4
June 2023
Max Marks: 70
Duration: 3 Hours
Instructions:

• Attempt any five questions.

• All questions carry equal marks.

Q.1
a)Unit 1

Explain algorithm design technique? How do you measure the algorithm running time?

b)Unit 1

Give the divide and conquer solution for binary search and analyze the time complexity for it.

Q.2
a)Unit 1

Explain the quick sort algorithm, simulate it with the following data 20, 35, 10, 16, 54, 21, 25.

b)Unit 4

Write an algorithm for traveling salesperson problem using check bounds.

Q.3
a)Unit 5

Discuss the operations performed on the binary search tree for the following data : 20, 49, 41, 93, 69, 90, 76, 62, 81, 75, 10, 79, 87, 38 and delete 41 and 76.

b)Unit 5

Differentiate between BFS and DFS.

Q.4
a)Unit 3

Solve the following 0/1 Knapsack problem using dynamic programming P= (11, 21, 31, 33), W= (2, 12, 23, 15), C= 42, n= 4.

P=(11,21,31,33),W=(2,12,23,15),C=42,n=4P = (11, 21, 31, 33), W = (2, 12, 23, 15), C = 42, n = 4

b)Unit 3

Design a three stage reliability system with device types d1,d2d_1, d_2 and d3d_3. The costs are 30,30, 15 and 20respectively.Thecostofthesystemistobenomorethan20 respectively. The cost of the system is to be no more than 105. The reliability of each device is 0.9, 0.8 and 0.5 respectively.

d1,d2,d3d_1, d_2, d_3

Q.5
a)Unit 3

On which type of problem we apply multi stage graph technique? Explain with example.

b)Unit 4

Briefly explain 8-queen problem using backtracking with algorithm.

Q.6
a)Unit 4

Identify the Hamiltonian cycle from the following graph. alt=''

b)Unit 2

Compute the optimal solution for job sequencing with deadlines using greedy method. N = 4, profits (P1,P2,P3,P4)(P_1, P_2, P_3, P_4) = (100, 10, 15, 27), deadlines (d1,d2,d3,d4)(d_1, d_2, d_3, d_4) = (2, 1, 2, 1).

N=4,(P1,P2,P3,P4)=(100,10,15,27),(d1,d2,d3,d4)=(2,1,2,1)N = 4, (P_1, P_2, P_3, P_4) = (100, 10, 15, 27), (d_1, d_2, d_3, d_4) = (2, 1, 2, 1)

Q.7
a)Unit 2

Consider the following instance of the knapsack problem and solve it using greedy method n= 7, m= 15. (P1,P2,P3,P4,P5,P6,P7)(P_1, P_2, P_3, P_4, P_5, P_6, P_7) = (10, 5, 15, 7, 6, 18, 3) and (W1,W2,W3,W4,W5,W6,W7)(W_1, W_2, W_3, W_4, W_5, W_6, W_7) = (2, 3, 5, 7, 1, 4, 1).

n=7,m=15,(P1,P2,P3,P4,P5,P6,P7)=(10,5,15,7,6,18,3),(W1,W2,W3,W4,W5,W6,W7)=(2,3,5,7,1,4,1)n = 7, m = 15, (P_1, P_2, P_3, P_4, P_5, P_6, P_7) = (10, 5, 15, 7, 6, 18, 3), (W_1, W_2, W_3, W_4, W_5, W_6, W_7) = (2, 3, 5, 7, 1, 4, 1)

b)Unit 2

Apply the Kruskal algorithm for the following graph and explain. alt=''

Q.8
a)Unit 5

2-3 trees

b)Unit 1

Merge sort

c)Unit 2

Optimal merge patterns

d)Unit 3

Floyd Warshall algorithm