Define the basic asymptotic notations. 2 C 0 1 L2
DefinitionSource quality review required
Anna University
| University | Anna University |
|---|---|
| Degree | B.Tech. Information and Technology |
| Department | Information and Technology |
| Regulation | Regulation 2019 |
| Semester | 4 |
| Subject Code | IT5402 |
| Subject Name | Design and Analysis of Algorithms |
| Exam Session | November / December 2024 |
| Duration | 3 hrs |
| Maximum Marks | 100 |
Access the previous year question paper for your examination preparation.
View / Download PDFBrowse other previous year question papers for this subject.
View All Subject Question PapersAutomatically extracted historical question data. Academic accuracy and examination rules require verification.
Section marks require review. Marks charts are withheld.
Detected alternatives only. Confirm the actual choice rules in the original question paper.
Define the basic asymptotic notations. 2 C 0 1 L2
DefinitionSource quality review required
Compare the order of growth of log2 n and logen. 2 . C 0 1 L3
ComparisonSource quality review required
Differentiate Divide and Conquer Strategy with Dynamic 2 C 0 2 L4 Programming.
ComparisonSource quality review required
Define the optimal substructure property of an LCS. 2 C 0 2 L2
DefinitionSource quality review required
Define the elements of greedy strategy. 2 COS L2
DefinitionSource quality review required
Consider a system Ax = b where A can be factored as A = LU, 2 COS LS where L is lower triangular and U is upper triangular. Write the two steps/stages to solve the system Ax = b. -
Other Or UnclassifiedSource quality review required
What is Linear Programming? 2 C 0 4 L2
DefinitionSource quality review required
Construct the dual to the primal problem 2 C 0 4 L3 Maximiite- Z - 3X| BX^, .Subject U- •+ BX^ <5S - 3>4 < 18 Where X, > 0, X^ s 0.
DesignSource quality review required
What is meant by polynomial time algorithms? List two examples 2 COS L2 that are not solved in polynomial time.
DefinitionSource quality review required
Define NP completeness. 2 COS L1
DefinitionSource quality review required
(a)(i) Write an algorithm to determine the number of times each 8 C O l L4 element has occurred in an array. Analyze the algorithm and estimate the running time associated with cost. (ii) Solve the following recurrence relation using Master's Theorem; 5 C 0 1 LS T(n) = 7T(n/3) + n'
Other Or UnclassifiedSource quality review required
(b)(i) Write the recurrence relation of Factorial function and determine 8 C 0 1 L4«- its complexity. (ii) Find the order of growth for the following recurrence: 5 C 0 1 LS T(n) = 4T(n/2) + n^ T(1) = 1.
Other Or UnclassifiedSource quality review required
(a)(i) Find an optimal parenthesization of a matrix-chain product whose 8 C 0 2 LS sequence of dimensions is ( 5, 3, 2, 4, 6). A 1 = 5 * 3 A 2 = 3 * 2 A 3 = 2 * 4 A4 = 4 * 6 (ii) Simulate the divide and conquer strategy of mergesort for n = 32 5 C 0 2 LS elements using recursion tree. (Draw the tree and justify)
Other Or UnclassifiedSource quality review required
(b)(i) Write the algorithm of quicksort using Partitioning method and 8 C 0 2 LS describe the best case, worst case and average case analysis. (ii) Determine an L C S of x= <A,B,C,B,D,A,B> AND 5 C 0 2 LS y = <B,D,C,A,B,A>.
Other Or UnclassifiedSource quality review required
(a) (i) Determine the Huffman Encoding Tree for { A : 10 8:10 C: 25 8 COS LS D:15 E:30 F: 21} (ii) Simulate the activity selection problem for the following set of 5 COS LS activities. A 1 2 3 4 5 6 7 8 9 S 1 3 0 5 3 4 5 3 6 F 4 5 .6 7 9 9 11 13 14
Other Or UnclassifiedSource quality review required
(b) 8 + 5 COS LS i. Find the L, U and P values for the following and solve it further to determine the values of the variables Xi, Xg and X3. Xi + X2 + X3 = 1 3 x i + X2 - 3 x 3 = 5 Xi - 2 x 2 - 5 x 3 = 10 ii. Write down the algorithm involved in it.
Other Or UnclassifiedSource quality review required
(a)14(a) (i)(i) WhatWhat isis thethe standardstandard formform ofof linearlinear programmingprogramming problem?problem? 8 CC 00 44 LSLS ConvertConvert thethe givengiven linearlinear programprogram toto standardstandard form,form, minimizeminimize ZZ == 2x22x2 ++ 5X35X3 .. subjectsubject toto xixi ++ X2X2 >> 22 ll §§ ff \\ 2xi2xi ++ XX 22 ++ 66 xx 33 << 66 §§ hh ^^•^ ^^ // xixi -- X2X2 ++ 33 xx 33 == 44 j Xi,Xi, X2X2 ,, X3X3 >> 00 ^ (ii) Find an initial basic feasible solution for the linear program in 5 C 0 4 L3 standard form obtained in 14 a (i).
Other Or UnclassifiedSource quality review required
(b) Solve the linear program using SIMPLEX. 13 ^ C 0 4 L3 maximize Xi+x-z subject to: 4xi - X2 < 8 2xi + X 2 < 1 0 5xi - 2x2 > -2 x-i, X2 >0
NumericalSource quality review required
(a) Prove that Circuit satisfiability is an NP complete problem. 13 COS L4
DerivationSource quality review required
(b) Prove that the vertex-cover problem is NP-complete and give a 13 COS L4 polynomial-time approximation algorithm for the same. P A R T - 0(1 X 15=15Marks) Q.No. Questions IVlarks CO B L
DerivationSource quality review required
(i) Given two strings s 1 = P A R K and s2 = S P A K E of 6+4 C 0 4 LS lengths m and n respectively. a. Find the minimum number of edits (operations) to convert ' s 1 ' into '52'. b. Write the algorithm to solve the problem. (ii) Consider a farmer who cultivates only two kinds of fruit trees - 5 C 0 3 L5 A and B. Both the trees require Water and Fertilizer only. To grow each tree of A and B, the following quantities are required: • Each unit of A requires 1 unit of Water and 3 units of Fertilizer • Each unit of B requires 1 unit of Water and 2 units of Fertilizer The farmer has a total of 5 units of Water and 12 units of Fertilizer. On each yield, the farmer makes a profit of . Rs 6 per unit A grown . Rs 5 per unit B grown. Now, the farmer wishes to maximize his profit. How many units of A and B should he cultivate respectively? f \ Formulate the above requirements as a linear programming problem.
Other Or UnclassifiedSource quality review required
Historical analysis based on extracted question papers. Topic classifications, marks and planning estimates are provisional.