# DATA STRUCTURES AND ALGORITHMS EE2204 APRIL/MAY 2010 ANNA UNIVERSITY QUESTION PAPER

Third Semester

Electrical and Electronics Engineering

EE2204 — DATA STRUCTURES AND ALGORITHMS

(Common to Electronics and Instrumentation Engineering and Instrumentation and

Control Engineering)

(Regulation 2008)

Time: Three hours Maximum: 100 Marks

Answer ALL Questions

PART A — (10 × 2 = 20 Marks)

1. List out the areas in which data structures are applied extensively.

2. Convert the expression ((A+B)*C-(D-E)^(F +G)) to equivalent Prefix and

Post fix notations.

3. How many different trees are possible with 10 nodes?

4. What is an almost complete binary tree?

5. In an AVL tree, at what condition the balancing is to be done?

6. What is the bucket size, when the overlapping and collision occur at same

time?

7. Define graph.

8. What is a minimum spanning tree?

9. Define NP hard and NP complete.

10. What is meant by dynamic programming?

(ii) Explain with a pseudo code how a linear queue could be converted into a circular queue. (Marks 4)

Or

(b) (i) What is a stack ADT? Write in detail about any three applications of stack. (Marks 11)

(ii) With a pseudo code explain how a node can inserted at a user specified position of a doubly linked list. (Marks 5)

12. (a) (i) Discuss the various representations of a binary tree in memory with suitable example. (Marks 8)

(ii) What are the basic operations that can be performed on a binary tree? Explain each of them in detail with suitable example. (Marks 8)

Or

(b) (i) Give an algorithm to convert a general tree to binary tree. (Marks 8)

(ii) With an example, explain the algorithms of in order and post order traversals on a binary search tree. (Marks 8)

13. (a) What is an AVL tree? Explain the rotations of an AVL tree. (Marks 16)

Or

(b) (i) Explain the binary heap in detail. (Marks 8)

(ii) What is hashing? Explain any two methods to overcome collision problem of hashing. (Marks 8)

14. (a) (i) Explain Dijkstra's algorithm and solve the single source shortest path problem with an example. (Marks 12)

(ii) Illustrate with an example, the linked list representation of graph. (Marks 4)

Or

(b) (i) Write the procedures to perform the BFS and DFS search of a graph. (Marks 8)

(ii) Explain Prim's algorithm to construct a minimum spanning tree from an undirected graph. (Marks 8)

15. (a) (i) With an example, explain how will you measure the efficiency of an algorithm. (Marks 8)

(ii) Analyze the linear search algorithm with an example. (Marks 8)

Or

(b) Explain how the travelling salesman problem can be solved using greedy algorithm. (Marks 16)

## No comments:

Post Your comments,Views and thoughts Here, Give Us Time To Respond Your Queries