You are on page 1of 1

Reg. no. M.A.R COLLEGE OF ENGINEERING AND TECHNOLOGY VIRALIMALAI - 621 316.

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERI NG CS9212 / DATA STRUCTURES AND ALGORITHMS
SEM /YEAR: I/I DATE :22-12-12 MODEL EXAM FIRST YEAR PART-A (10*2=20) 1. Define big Oh notation. 2. Give two examples for NP Hard Problem. 3. Give an example for Fibonacci heap. 4. Define binomial heap. 5. Define AVL trees. 6. What is the purpose of Red black trees? 7. What is the run time complexity of Quick Sort? 8. Define the advantages of greedy algorithms. 9. What are the advantages of dynamic programming? 10. List two example problems which can be solved by back tracking. PART-B (5*16=80) 11. (a) (i) Write algorithm to perform inorder and preorder traversal of binary tree. (8) (ii) Explain about recurrence equation with an example. (8) Or (b) (i) Explain the principles of Amortized analysis. (10) (ii) Write algorithm to insert a node in the beginning of a list. (6) 12. (a) Write algorithm to construct Fibonacci heap with suitable example. (16) Or (b) Write algorithm to construct Binomial heap with suitable example. (16) 13. (a) (i) Construct a B-tree to insert the following (order of the tree is 3) 5, 25, 3, 75, 4, 43, 6, 8, 10. (12) (ii) What are the properties of a Red black tree? (4) Or (b) (i) What is the need for splay trees? Give an example. (8) (ii) Write algorithm to Construct Tries. (8) 14. (a) (i) Write algorithm for Quick Sort. (8) (ii) Write intermediate steps to perform Quick Sort for the following : 5, 25, 4, 33, 6, 9, 47, 50, 2. (8) Or (b) Write algorithm for Tree Vertex Splitting. (16) 15. (a) Describe how Eight Queens problem can be solved using back tracking. Write the algorithm. (16) Or (b) State the Knapsack problem and explain how it can be solved using branch and bound algorithm. (16) **********ALL THE BEST********** MARK: 100 DURATION: 3 HRS

You might also like