DATA STRUCTURES USING C
DATA STRUCTURES USING C
Q.3(a) Define queue. Write a C program to implement enqueue and dequeue operations. [08] [L3]
Use array data structure to implement the queue.
(b) Explain about insertion and deletion operations on single linked lists. Write a ‘C’ [06] [L3]
program for the same.
Q.4(a) Define stack. Write a C program to implement stack operations using array. [08] [L3]
(b) Explain sparse matrix representation using array with an example. Discuss the [06] [L2]
advantage and disadvantages of this method.
Q.5(a) Explain, in detail, deletion of a node from a binary tree with one suitable example. [06] [L2]
(b) Define priority queue. Discuss briefly about the heap representation of priority queue. [08] [L2]
Q.6(a) Given the following inorder and preorder traversals, construct the binary tree. [08] [L3]
Inorder traversal : B F G H P R S T W Y Z
Preorder traversal : P F B H G S R Y T W Z
(b) What is a threaded binary tree? Explain with an example. [06] [L1]
Q.7 Explain Depth First Search and Breadth First Search algorithms with an example in [14] [L2]
detail.
Q.8(a) Insert the following list of elements into the hash table by using linear probing (size [07] [L3]
of the hash table is 10) : 36, 48, 66, 27, 23, 87, 10, 12.
(b) What is trie? Explain the compressed trie with an example. [07] [L1]
END OF THE QUESTION PAPER