November / December 2012
PROGRAMMING AND DATA STRUCTURES
Anna University
1 question papers available. Select an examination session to view its question paper.
PROGRAMMING AND DATA STRUCTURES
Based on available extracted papers. Question groups and frequency are provisional, not official syllabus weightage or examination predictions.
What is meant by problem solving? and Mention some of the problem solving strategies?
1 eligible source papersState the difference-between arrays and linked lists
1 eligible source papersWhat is a balance factor in AVL trees?
1 eligible source papersGive the infix expressions for the following prefix expression. a) * - + A B C D b) + - a * B C D
1 eligible source papersHow are graphs represented inside a computer's memory? Which method do you prefer and why?
0 eligible source papersDifferentiate between depth first and breadth-first traversal of graphs
1 eligible source papersGive the applications of priority queues.
1 eligible source papersWhat is collision in hashing? What are the methods of resolving collision in hashing?
1 eligible source papersMerge sort is better than insertion sort. Why?
1 eligible source papersWhich is the best way of choosing the pivot element in quick sort?
1 eligible source papersHow will you resolve the collisions, while inserting elements into the hash table using separate chaining and linear probing? Write the routines for inserting, searching and removing elements from the hash table using the above mentioned techniques (16)
0 eligible source papersa)(i).Given two lists LI and L2, write the routines to compute LI D L2 using basic operations. (8) (ii) Write a routine to implement stack of size N using an array. The elements in the stack are to be integers. The operations to be supported are PUSH, POP and DISPLAY. Take into account the exceptions of stack overflow and stack underflow. (6)
0 eligible source papersb) Define the basic queue structure. How is circular queue implemented? Give example.(16)
0 eligible source papersa) Explain the three standard ways of traversing a binary tree with the recursive Aigorithm. (16)
0 eligible source papersb) (i) Write an algorithm to insert an item into a binary search tree and trace the algorithm with the items 6, 2, 8, 1, 4, 3, 5. (8) (ii) Describe the algorithms used to perform single and double rotation on AVL tree. (8)
0 eligible source papersa) (i).Write the routine for-sorting n elements in increasing order using heap sort. (8) (ii) Sort 3,1,4,1,5,9,2,6 in decreasing order using heap sort. (8)
0 eligible source papers(b) write a routine and Explain with example about the quick sort. (16)
0 eligible source papersa)(i) What is topological sort? Write an algorithm to perform topological sort <8) (ii) Write the Dijkstra's algorithm to find the shortest path for a weighted graph. (8)
0 eligible source papersb)(i) Write about kruskal's algorithm (8) (ii) Find a minimum spanning tree for the following graph using prim's algorithm. (8)
0 eligible source papersHistorical analysis based on extracted question papers. Topic classifications, marks and planning estimates are provisional.