November / December 2013
Data Structures and Algorithms
Anna University
4 question papers available. Select an examination session to view its question paper.
Data Structures and Algorithms
Data Structures and Algorithms
Data Structures and Algorithms
Data Structures and Algorithms
Based on available extracted papers. Question groups and frequency are provisional, not official syllabus weightage or examination predictions.
| Question | 2011 | 2012 | 2013 |
|---|---|---|---|
| Give the steps involved in divide and conquer methodology. | 1 | 1 | 0 |
| Representative question | Grouped questions | Source papers |
|---|---|---|
| State any two applications of 'Stack'. | 2 | 2 |
Give the steps involved in divide and conquer methodology.
2 eligible source papersWhat are the two methods available for deleting an element in an unordered list implemented using arrays? Which one 15 efficient? Differentiate between normal and binary trees. What is the minimum and maximum number of elements in a heap of height 772 State the reason for the improved performance of shell sort. When a rooted binary tree becomes heap? List the basic steps in divide and conquer technique. What are the problems that can be solved using backtracking technique? How graphs are implemented using adjacency matrix? Compare and contrast Kruskal’s and Prim’s algorithms.
0 eligible source papersExplain the concept of greedy algorithm with respect to minimum spanning tree problem. [8] How merge sort is carried out using divide and conquer technique. [8] i) Give the algorithm to evaluate an arithmetic expression in postfix notation using a stack and also find the value of the expression A B C * D/+ with A=2,B=3, C=4 and D=6. [8] it) Define ADT, Explain the concept of List ADT with the possible operations, Show how it is implemented using cursor. [8] [OR] Explain the implementation of lists using pointers (singly linked list). List ail possible operations on them. Illustrate them using simple code and diagrams. _[16] Show how the values 14, 17, 11, 7, 53, 4, 13 are inserted into an empty AVL tree one by one followed by the deletions of 53 and 11. [16] [OR] List and explain the different binary tree traversal techniques available with appropriate pseudocode and diagrams. [16] Give the quick sort algorithm. Build the initial heap for the array (42, 83, 21, 90, 55, 93, 81, 97, 37, 73]. [16] [OR] b] Write down the heap sort algorithm with heapify procedure. Illustrate the operation of quick sort.on the array A = [42, 83, 21, 90, 55, 93, 81, 97, 37, 73, 84, 83]. [16] P.T.O. QS 15. B] i) Explain the working of Dijkstra's Algorithm with a simple example. ii) How all pairs of shortest paths are found? [OR] i) State the basic idea behind BFS and DFS. ii) Explain the working of BFS along with the data structures used in detail. -:000:- [10} [6] [4] [12]
0 eligible source papersState any two applications of 'Stack'.
1 eligible source papersWhat is the disadvantage of using a normal queue?
1 eligible source papersHow a level order traversal of a tree is performed?
1 eligible source papersDifferentiate between a full binary tree and a complete binary tree.
1 eligible source papersDifferentiate between the CALL HEAP which appears in two places in the Heapsort algorithm.
1 eligible source papersWhy we select the minimum element and exchange it with the first element in insertion sort?
1 eligible source papersGive the steps involved in divide and conquer methodology.
2 eligible source papersList and explain the purpose of different data structures used in BFS.
1 eligible source papersWhat is the difference between connected vertices and adjacent vertices?
1 eligible source papersGive the problem statements for SSSP and APSP
1 eligible source papersWrite a detailed note on divide-and-conquer approach and greedy technique in algorithm design with examples. [16]
0 eligible source papersa] i) With a neat flow chart explain the algorithm which converts an infix expression to its postfix form. [8] ii) Show how the following expression is converted using the same: (A-B) *C + D/(EAF). [8] [OR] b] i) How a normal queue is represented using an array? Explain the operations. [5] ii) What is the problem with this representation? [3] ii) With diagrams explain the concept and implementation of Circular Queue. [8]
0 eligible source papersa] i) Design an algorithm that compares a random and sorted array and finds average distance traveled by the elements in moving from random to sorted order [10] ii) Explain Insertion Sort algorithm. [8] [OR] b] i) Explain how Bubble Sort algorithm is modified to -count the number of comparison and exchanges made while sorting. [6] ii) Briefly explain the algorithm to convert an arbitrary array of integers into a heap. Demonstrate the same for the array {5, 3, 7, 27, 9, 11, 14, 2, 8}. [10]
0 eligible source papersa] i) List and explain the different tree traversals available for binary trees. {8] ii) Draw a complete a full binary tree with 3 levels (including the root), label each node with an alphabet and perform all possible tree traversals in the same using flags. [8] [OR] P.T.O -1-
0 eligible source papersDefine 'Stack' and give any two applications of it.
1 eligible source papersWhat is the advantage of using a dynamic queue?
1 eligible source papersGive the property of a binary-search-tree.
1 eligible source papersDerive the expression for finding the height of a full tree of order d&nd size n.
0 eligible source papersGive the reason for improved performance of shell sort.
1 eligible source papersWhat is the minimum and maximum number of elements in a heap of height h?
1 eligible source papersState the problems encountered and their solutions in DFS.
1 eligible source papersWrite the procedure to print the shortest path in Floyd's algorithm.
1 eligible source papersHow the values of A matrix are calculated during k t h iteration?
0 eligible source papersa] Rewrite operations ENQUEUE and DEQUEUE for a dynamic queue. [8] b] Give the algorithm to evaluate an arithmetic expression in postfix notation using a stack and also find the value of the expression A B C * D / + with A = 2, B = 3, G = 4 and D= 6. [8]
0 eligible source papersa] i) Give algorithms for different tree traversal techniques on a binary tree. [8] ii) Construct a complete binary tree with two levels after the root; name the nodes with alphabets in level order and perform the possible tree traversals in it. [8] [OR] b] i) Give procedures that returns a pointer to the minimum and maximum elements in a binary search Tree. {4] ii) How insertions and deletions are made in a binary search tree. [12]
0 eligible source papersa] i) When a rooted binary tree becomes heap? [2] ii) Give the heap sort algorithm. [7] iii) Carryout heap sort for the heap with elements 27, 9,14, 8, 5, 11, 7, 2 and 3 (elements are in level order). [7] [OR] b] Give the algorithm description for sorting by exchange and shell sort with proper explanations. [16] P.T.O.
0 eligible source papersa] Write a detailed note on divide-and-conquer approach and greedy technique in algorithm design with examples. [16] [OR] b] Describe backtracking with two examples of your choice. [16]
0 eligible source papersa] Explain the procedure for carrying out BFS in a given graph. Show the operations of BFS on the following undirected graph. [16] © &—&—® [OR] b] Write down Floyd's algorithm that can also find out the path, Dijkstra's algorithm and compare them. [16] -:o0o:- - 2 -
0 eligible source papersi) Give the algorithm for converting a given infix expression into its postfix form. {8] ii) Explain the operations involved in maintaining a. dynamic queue. 18]
0 eligible source papersa] i) What is a binary search tree? State the binary-search-tree property. {6] ii) Explain any four operations involved in querying a binary’search tree. [10] [OR] b] i) Write a note on preliminaries oftree data structures. [6] ii) Explain pre-order and post-order tree traversals with their algorithms. [10]
0 eligible source papersa] i) State the properties of a heap. {6] ii) Explain heap sort algorithm with a seven element heap. 110] [OR] b] i) Explain the working of sorting by selection. {8] ii) How sorting by insertion works-on the given array? {8]
0 eligible source papersa] Write a detailed note on backtracking and.greedy technique in algorithm design with examples. [16] [OR] b] Explain the working of divide and conquer with an appropriate example. [16]
0 eligible source papersa] i) Write a note on single-source shortest path algorithm. 4$] 11) How ail pairs of shortest paths are found? 18] [OR] b] i) State the basic idea behind BFS and DFS. 14] ii) Explainthe working-of DFS with an-example. _ 112] -:000:-
0 eligible source papersHistorical analysis based on extracted question papers. Topic classifications, marks and planning estimates are provisional.