PREVIOUS YEAR QUESTION PAPER

IT5402 – Design and Analysis of Algorithms

Anna University

Regulation 2019 Semester 4 2024

Question Paper Details

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

View Question Paper PDF

Access the previous year question paper for your examination preparation.

View / Download PDF

How to Use This Question Paper

More Question Papers

Browse other previous year question papers for this subject.

View All Subject Question Papers

Question Paper Intelligence

Automatically extracted historical question data. Academic accuracy and examination rules require verification.

21Extracted entries
100Maximum marks (metadata)
180Duration (minutes)
5Choice candidates

Part-wise extracted questions

Part A10
Part B11

Question type candidates

Other Or Unclassified9
Definition6
Comparison2
Derivation2
Design1
Numerical1

Recorded Bloom level candidates

BL L23
BL L34
BL L41
BL L51

Section marks require review. Marks charts are withheld.

Optional-choice evidence

Detected alternatives only. Confirm the actual choice rules in the original question paper.

Part B — Question 11: Option a · Option b
Part B — Question 12: Option a · Option b
Part B — Question 13: Option a · Option b
Part B — Question 14: Option a · Option b
Part B — Question 15: Option a · Option b

Question navigator

Extracted questions

Part A — 1

Define the basic asymptotic notations. 2 C 0 1 L2

Definition

Source quality review required

Part A — 2

Compare the order of growth of log2 n and logen. 2 . C 0 1 L3

Comparison

Source quality review required

Part A — 3

Differentiate Divide and Conquer Strategy with Dynamic 2 C 0 2 L4 Programming.

Comparison

Source quality review required

Part A — 4

Define the optimal substructure property of an LCS. 2 C 0 2 L2

Definition

Source quality review required

Part A — 5

Define the elements of greedy strategy. 2 COS L2

Definition

Source quality review required

Part A — 6

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 Unclassified

Source quality review required

Part A — 7

What is Linear Programming? 2 C 0 4 L2

Definition

Source quality review required

Part A — 8

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.

Design

Source quality review required

Part A — 9

What is meant by polynomial time algorithms? List two examples 2 COS L2 that are not solved in polynomial time.

Definition

Source quality review required

Part A — 10

Define NP completeness. 2 COS L1

Definition

Source quality review required

Part B — 11a

(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 Unclassified

Source quality review required

Part B — 11b

(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 Unclassified

Source quality review required

Part B — 12a

(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 Unclassified

Source quality review required

Part B — 12b

(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 Unclassified

Source quality review required

Part B — 13a

(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 Unclassified

Source quality review required

Part B — 13b

(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 Unclassified

Source quality review required

Part B — 14a

(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 Unclassified

Source quality review required

Part B — 14b

(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

Numerical

Source quality review required

Part B — 15a

(a) Prove that Circuit satisfiability is an NP complete problem. 13 COS L4

Derivation

Source quality review required

Part B — 15b

(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

Derivation

Source quality review required

Part B — 16

(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 Unclassified

Source quality review required

Advanced Examination Analysis

Historical analysis based on extracted question papers. Topic classifications, marks and planning estimates are provisional.