Question Bank Daa Final
Question Bank Daa Final
Question Bank Daa Final
1 CO1 K1
2 CO1 K2
3 CO1 K1
4 CO5 K1
5 CO4 K4
6 CO5
K3
7
8 CO4 K3
CO4 K3
9
10 CO3 K3
11 CO4 K3
CO1 K3
12
13 CO5 K3
14 CO4 K6
15 CO5 K6
16 CO1 K5
17 CO1 K2
18 CO1 K2
19 CO1 K2
20 CO2 K2
21 CO5 K2
22 CO1 K2
23 CO1 K2
24 CO2 K4
25
26 CO3
K6
27
28 CO3 K1
29 CO4 K4
30 CO4 K2
31 CO3 K2
32 CO4 K6
33 CO4 K6
34 CO5 K6
35 CO3 K6
36 CO3 K5
37 CO5 K1
38 CO3 K2
39 CO2 K4
40 CO4 K3
41 CO3 K6
CO4
42
43
44
45 K5
46
47
48
49
50 CO4 k2
51 CO5 k1
52 CO4 k1
53 CO5 k6
54 CO5 k3
55 CO4 k4
56 CO4 k1
57 CO4 k1
58 CO4 K4
59 CO4 K4
60 CO4 K3
61 CO4 K5
62 CO4 K4
63 CO4 K2
64 CO4 K2
65 CO4 K3
66 CO4 K4
67 CO1 K2
68 CO1 K2
69 CO3 K3
70 CO1 K3
71 CO1 K2
72
73 CO4 K3
74 CO4 K1
75 CO1 K3
76 CO3 K2
77 CO4 K6
78 CO2 K2
79 CO5 K6
80 CO3 K6
81 CO4 K3
82 CO4 K5
83 CO5 K1
84 CO5 K5
85 CO3 k1
86 CO4 K5
87 CO2 k4
88 CO4 K3
89 CO3 K3
90 CO4 K4
91 CO3 K4
92 CO4 K3
93 CO3 K4
94 CO3 K3
95
Question
Construct a Red Black tree by inserting 9,19,30,15,16 and 27 into an initially empty tree and also delete 15,16 and 30 from
Obtain the solution to knapsack problem by Dynamic Programming method n=6, (p1, p2,...p6)=(w1,w2,...w6)=(100,50,20,1
Solve the Travelling Salesman problem using branch and bound algorithms.
Apply Merge Sort to sort the list a[1:10]=(31,28,17,65,35,42.,86,25,45,52). Draw the tree of recursive calls of merge sort, m
Solve using Masters theorem i) T(n)=2T(n/4)+√n ii) T(n)=7T(n/2)+ n2
What is backtracking ? solve 8 queens problem using backtracking and draw state space tree.
Write an algorithmt String Matching using Rabin-Karp algorithm and also analyze its complexity.
Write an algorithm to solve the N-Queens problem. Show working for N=4.
Write in detail about Hamiltonian cycles.Explain with the help of example.
Explain back tracking in algorithms.
give an algorithm for graph coloring problem and analyze its complexity
Differentiate (0/1) knapsack problem and fractional knapsack problem with examples and justify your answer.
Explain the Divide and Conquer Algorithmic Paradigm. Also list a few algorithms which use this paradigm.
Explain the greedy algorithms with an example.
Explain the Dynamic Programming (DP) Algorithmic Paradigm? List a few problems which can be solved using the same.
Explain the recursive algorithms? State the important rules which every recursive algorithm must follow.
Differentiate between divide and conquer and dynamic programming problem solving approach.
Analyse and solve for optimal sequence for the folllowing matrices A 4X10, B 10X3, C 3X12, D 12X20 and E 20X7.
Construct a Red Black tree by inserting 9,19,30,15,16 and 27 into an initially empty tree
How Red-Black tree is different from B-Tree. Explain with example.
Solve the below graph for the shortest path using multistage graph method with dynamic programming approach.
. Write down the problem statement of TSP. Explain it with the help of an example.
Marks
5
5
5
5
5
10
10
5
5
15
15
5
10
5
5
10
5
10
15
5
5
5
5
5
10
10
5
5
5
5
5
10
5
10
15
10
10
5
5
5
15
5
5
5
5
5
5
5
5
5
5
10
5
5
5
5
5
10
5
5
10
10
5
15
10
10
5
5
10
5
5
10
15
5
15
10
5
5
10
15
10
15
15
10
10
10
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125