// Anna University, Chennai / 2020
Anna University — Data Structures (CS8391), November/December 2020
Data Structures · CS8391 · R2017 · B.E. Computer Science and Engineering
Files open in a new tab. Use your browser's download or save option to keep a copy.
Work through the questions
16 questions
No verified answers are available for this paper.
Write down the applications of list.
No verified answer or solution is available for this question.
Compare Array ADT and list ADT.
No verified answer or solution is available for this question.
Write a program to reverse a string using LIFO ADT.
No verified answer or solution is available for this question.
Brief about the generalized version of Queue. And list the operations performed by it.
No verified answer or solution is available for this question.
Illustrate Heap Data Structure.
No verified answer or solution is available for this question.
How to resolve dangling threads in binary tree ? Illustrate.
No verified answer or solution is available for this question.
Give the adjacency matrix representation of the following graph.

Q7 — adjacency matrix graph No verified answer or solution is available for this question.
Give the procedure for finding articulation point.
No verified answer or solution is available for this question.
List the limitations of linear probing.
No verified answer or solution is available for this question.
What are the steps involved in performing selection sort ?
No verified answer or solution is available for this question.
(a) (i) Given two sorted Linked lists L1 and L2. Exemplify and write the functions to compute L1 ∩ L2 and L1 ∪ L2. (10) (ii) State the advantages of Linked list over arrays. Specify any two real time applications of Linked list. (3) (OR) (b) (i) Write an algorithm to perform following operations in a doubly linked list. 1) Insert a node at the end of the list (4) 2) Delete the last node in the list. (3) (ii) Analyze and write algorithm for Circular Linked list for the following operations using structure pointer. 1) Insert (2) 2) Delete (2) 3) Display. (2)
No verified answer or solution is available for this question.
(a) What are circular queues ? Write an algorithm to insert an element and delete an element from a circular queue. And list the applications of queue. (13) (OR) (b) (i) Write a C program to implement a LIFO list that grows and shrinks dynamically. (7) (ii) Convert the following Infix expression to Postfix expression. (4 + 8)* (6 – 5)/((3 – 2)* (2 + 2)) (3) (iii) Find the value of the following postfix expression. Show stack contents-step by step output. 54 6 + 7 4 – * 9 / 35 15 + + (3)
No verified answer or solution is available for this question.
(a) (i) Write C functions to perform deletion in Binary search tree (Include all the cases). (5) (ii) Construct a binary search tree for the values 45, 56, 39, 12, 34, 32, 10, 78, 67, 89, 91. Give the pre order and post order traversal of the resultant binary search tree. (6+2) (OR) (b) Construct B tree to insert the following key elements with order 5. 2, 14, 12, 4, 22, 8, 16, 26, 20, 10, 38, 18, 36, 48, 6, 24, 28, 40, 42, 32 (13)
No verified answer or solution is available for this question.
(a) (i) Write a program to find an Euler circuit in a graph. (6) (ii) Find the Euler’s path and Euler’s circuit for the graph given below. (7) (OR) (b) Consider the following graph, in what order will the nodes be visited using Breadth first search and Depth first search, and give the routine for same. (13)

Q14(a) — Euler path graph 
Q14(b) — traversal graph No verified answer or solution is available for this question.
(a) (i) Write a function to perform selection sort. Give example. (5) (ii) Give the routine for Insertion sort. Sort the following sequence using insertion sort 3, 10, 4, 2, 8, 6, 5, 1. (6) (iii) Compare Binary search and Linear search. (2) (OR) (b) Consider a hash table with 9 slots. The hash function is h(k) = k mod 9. The following keys are inserted in the order 15, 38, 8, 5, 20, 33, 14, 30. Draw the contents of the hash table when the collisions are resolved by (i) Chaining (ii) Linear Probing (iii) Double hashing. The second hash function h2(x) = 7 – (x mod 7). (13)
No verified answer or solution is available for this question.
(a) (i) Compare B trees with B+ trees. (5) (ii) Create a B+ tree of order 5 for the following data arriving in sequence : 90, 27, 7, 9, 18, 21, 3, 4, 16, 11, 21, 72. (10) (OR) (b) Write a routine to implement two stacks using single array. (15)
No verified answer or solution is available for this question.