PREVIOUS YEAR QUESTION PAPER

CS9201 – Design and Analysis of Algorithms

Anna University

Regulation 2009 Semester 3 2012

Question Paper Details

University Anna University
Degree B.E. Computer Science and Engineering
Department Computer Science and Engineering
Regulation Regulation 2009
Semester 3
Subject Code CS9201
Subject Name Design and Analysis of Algorithms
Exam Session April / May 2012
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.

6Extracted entries
100Maximum marks (metadata)
180Duration (minutes)
0Choice candidates

Part-wise extracted questions

Part A4
Part B2

Question type candidates

Other Or Unclassified6

Section marks — arithmetic candidates

Part A20 marks
Part B80 marks

Examination marks pattern

PartRequired answersMarks per answerSection total
A10220
B51680

Estimated time allocation

Proportional to section marks. This estimate uses the full exam duration without a separate reading or revision reserve.

Section time budget

Part A36.0 min
Part B144.0 min

Question navigator

Extracted questions

Part A — 2

If f(n) =n’+ 3 Ign and g(n) =n + lg n, determine whether {(n) = மெ) or g(n) = 0. (ffm)?

Other Or Unclassified

Source quality review required

Part A — 3

Write an algorithm for performing counting sort.

Other Or Unclassified
Part A — 4

Using the decision tree model prove that any comparison sort algorithm requires in the worst case © (n lg n) comparisons. Determine the smallest possible depth of a leat i ina decision tree for a comparison sort. State the activity selection problem. State any two properties of matrices.

Other Or Unclassified

Source quality review required

Part A — 7

Convert the following to duality representation Maximize 2x; + 5x2 subject to X1+X2 <20 2x1 + 3x2 < 10 5x1, +3 x2 <28 11,332 20 Write and determine the worst case. complexity of simple string matching algorithm Define NP completeness and NP hard. 0. Prove the polynomial reducible property of NP problems NM 5 2௦

Other Or Unclassified

Source quality review required

Part B — 11

1. Solve the following recurrence equation a. T(n) =T(n/2) + 1, where n = 2* for all k>0 ட்டு (4) b. T(n) = T(n/3) + T(2n/3) + cn, where ‘c’ isa constant and ‘n’ is the input size . (4) ii. Write a randomized search algorithm and analyse its time complexity ~ (8)

Other Or Unclassified

Source quality review required

Part B — 12

a. i. Write an algorithm to select the i" smallest number using -a randomized algorithm. Show that the average complexity of this algorithm is linear in time (8) ii. Select the 4 smallest from the list given by A = (3, 2, 9, 0, 7, 5, 4, 8, 6, 1} using the above algorithm (6) 13. 15. 5. Prove that Vertex cover problem is NP — complete. Explain this with an example. [OR] b. i. Write an algorithm to perform matrix.chain multiplication using dynamic programming and analyze this algorithm for its time and space efficiency (8) ii. Determine the optimal number of multiplications required and a way to multiply the chain of matrices given {30, 20, 10, 5, 20, 2} (8) a. i. Write a non-recursive procedure to compute Huffman code and prove that the Huffman code is optimal and greedy (8) ரர்‌, Using the greedy Huffman algorithm determine the huffman code given the following characters and their corresponding frequencies of occurrence (8) a:2, b: 1, ௦:15, d: 9, e:10, £:6, g:5, 14, 1 : 10, 1:2 [OR] b. i. Write an algorithm that solves a system of linear equation using LUP decomposition and analyse this algorithm for time and space complexity (8) ii. Solve the following equation using LU decomposition ட்ட (8). xt+tS5y+4z =12 2x + 3z = 9 Sx+8y+2z =5 ‘a. i. Write the KMP algorithm to perform string matching and show that this algorithm. is linear in time (8) ii. Compute the Prefix function that is used by the KMP algorithm for the pattern given by P= ababbabbab And check whether the string given by abaaabababababbabbabaaab has this pattern.in it by-simulating the algorithm | (8) - [OR] b. Write the simplex algorithm and prove that this algorithm produces a solution that is feasible and optimal if there exist a solution. (16) a. Write an algorithm to solve the Travelling salesman problem and prove that itisa2 time approximation algorithm with an example (16) [OR] (16)

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.