April / May 2025
Advanced Data Structures
Anna University
1 question papers available. Select an examination session to view its question paper.
Advanced Data Structures
Based on available extracted papers. Question groups and frequency are provisional, not official syllabus weightage or examination predictions.
Prove that multi pop operation costs 0(1) amortized time. 2 C O l L2
0 eligible source papersDo amortized cost and Average case analysis are same? Justify 2 C O l LS your answer with a clear example.
0 eligible source papersWrite down the properties of Red Black Tree with a neat example 2 C 0 2 L2 depicting each property.
0 eligible source papersSearch the key 8 in the following splay tree and simulate the 2 C 0 2 L2 results step by step: 0 ^ 0 0 (i) 0 © ( z ) ^ S Analyze the Complexity of Binomial heap, Fibonacci heap and 2 COS L2 Leftist heap with respect to Merge, Insert and Deletemin operations.
0 eligible source papersMerge the following two heaps and draw the resultant leftist heap, 2 COS LS (lo) ( T ) (m ( T ) ( ^ //| (33) Hj
0 eligible source papersWhen a relation would become an Equivalence Relation? Write 2 C 0 4 L2 down its properties with suitable examples.
0 eligible source papersDerive the complexity if Union by Rank and Path compression has 2 C 0 4 L3 been performed together in a Disjoint Set.
0 eligible source papersWrite a recursive code to perform Depth First Search in a given 2 COS L3 graph.
0 eligible source papersWrite down the Max flow - Min Cut Theorem. Mention the 2 COS L2 significance of this theorem.
0 eligible source papers(a)(i) Draw a digital circuit of k bit Binary counter (8-bit) and implement C O l L3 the s?ime using a suitable algorithrr!. Record the numiber of flips after every increment in a sequence of n increments in a worst case scenario. (ii) Derive the amortized cost of Binary Counter implemented in the C O l L3 above problem using Aggregate method and Potential Method.
0 eligible source papers(b) (i) Derive the amortized cost per operation for Dynamic Table implementation using Aggregate analysis and Potential Method with a neat illustration. (Simulate the insertions in Dynamic Table to prove the amortized cost using aggregate analysis) Write down the properties of Skip list. In the following skip list, simulate the process of inserting the elements I S , 24 and deleting the elements 12 and 22. >+-> 2(1 23
0 eligible source papers(a) (i) Construct an AVL tree with values 23,22,21,24,25,26,27,36,45,44 into an initially empty tree. Delete 24, 36 from, the tree. Simulate the tree that results after each insertion and deletion. Perform post order traversal of the resultant tree. Write suitable routines to delete a given node from an AVL tree with necessary rotations (Deletion algorithm) (ii) Construct a B- Tree of order 4 for the following elements: "MM", "AC", "GG", "PQ", "PS", "MN", "LL", "LK", "LT", "NN". Further delete the elements AC, PQ, LL.
0 eligible source papers(b) (i) Simulate the step by step process of inserting the following C 0 2 L3 numbers one by one in the Red-Black tree: 8S 1S 17 20 70 80 100 65 90 45 SS 30 Draw the figures depicting your tree immediately after each insertion and identify the rebalancing rotation or color change (if any). Further delete the following elements from the constructed tree: 20 70 17 4S . • (ii) Write down the algorithms involved in the process of Inserting a 4 C 0 2 L3 new element in a Top down splay tree using Templates.
0 eligible source papers(a) i) Create a Fibonacci Heap with the following numbers: 8 C 0 3 L3 25, 20, 16, 30, 19, 2 1 , 55, 71, 18, 32, 24, 36, 42 i) After Creation, perform DeleteMin operation twice. ii) Further decrease the keys 30 to 21 and 20 to 1 in the Fibonacci Heap. ii) Write down the DeleteMin and DecreaseKey algorithms of 5 C 0 3 L3 Fibonacci Heap and denve its amortized cost using aggregate analysis.
0 eligible source papers(b) (i) Write suitable algorithms to perform Insert, DeleteMin and Merge 8 C 0 3 L3 operations in a Binomial heap. (ii) If a set of key priority pairs (k,p) has been followed while creating 5 C 0 3 L3 Treaps, Construct a Treap with the following randomly generated (keyT-priority) pairs : (10, 35), (20, 10) , (80, 65), (90, 15), (50, 25), (60, 17), (95,32) (30, 56). Delete the pairs (80, 65) and (30, 56)
0 eligible source papers(a) (i) If singleton sets of the numbers 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 9 C 0 4 L3 ,13,14 are available. Show the result of the following sequence of instructions when performed: union(1,2), union(3,4), union(3,5), union(1,7), union(3,6), union(8,9), union(1,8), union(3,10), union (3,11), union(3,12), union(3,13), union(14,15), union(16,0), union(14,16), union (1,3), union(1, 14) a. union arbitrarily b. union by size c. union by height (ii) Write about the Dynamic Equivalence Problem. Write down the 4 C 0 4 L2 pseudocode to find the representative element of the Set.
0 eligible source papers(b) (i) Construct a Minimum Cost Spanning Tree for the following graph 9 C 0 4 L3 using Disjoint Sets. Consider each of the vertices as a singleton set during the construction of spanning tree. Write down the algorithm involved behind this process. 1 (ii) Perform Path compression for the following Disjoint Set if Find(9) 4 C 0 4 L3 has been performed. Simulate the process step by step with a suitable algorithm: root cn Q « m >> o Z £ N 1 © © ®
0 eligible source papers(a) (i) Consider the following directed weighted graph- Using Floyd- 9 C 0 5 L3 Warshall Algorithm, find the shortest path distance between every pair of vertices in a step by step manner. Also write down its algorithm. 4 1 ( A r 0 HJ) ii) Draw a depth first spanning tree for the following graph starting at 4 C 0 5 L3 the node 0 and identify the articulation points of the graph in a step by step manner: Q—© ©
0 eligible source papers(b) (i) Find out the shortest path from the source vertex (A) to all other 9 C 0 5 L3 vertices in the following graph using Bellman ford algorithm. Also, Write down the algorithm used to compute the shortest path Nodes of the following network are connected with each other with COS L3 a strong relation. Strongly connected nodes form a group. Spot out the connected components which are strong in the following network by simulating the results in a step by step manner. / > / i ( 2 k Cl>
0 eligible source papers(i) Develop an application to design an INDEX CHAIN which 8 C02 L6 C03 attempts to store the strings in the following manner: C CA CAR C A R S CAB C A B L E C A B L E S etc. Write appropriate functions to perform the following operations: a) Adding of a new word in INDEX b) Checking the presence of word using its prefix. c) Auto complete the word during the search, if the string "CA" Is given. (ii) Assume a networking company with the structure shown below 7 COS 1=4 wants to provide a real time streaming of data with better performance by optimizing maximum flow of information between the sender and receiver. Amount of data received by the intermediary nodes should be disbursed immediately. a) Provide a step by step solution to this problem by optimizing the maximum flow of information between sender and receiver. b) Write down the equations which depicts the flow of network (Residual flow and Augmented path).
0 eligible source papersHistorical analysis based on extracted question papers. Topic classifications, marks and planning estimates are provisional.