IA2-Question Bank Ds
IA2-Question Bank Ds
Question Bank-IA2
2024-2025
Sem:3 Sec: ’C’
1.Develop C function to perform the following operations
i). Concatenation of two single linked list
ii), Find the length of single linked list
2. Write C function for the following operations on doubly linked linked list
i). Insert an element at front ii). Delete an element from front iii). Search an item
4. Prove that:
a) The maximum number of nodes on level i of a binary tree is 2i, i ≥ 0.
b). The maximum number of nodes in a binary tree of depth k is 2k -1, k ≥ 1.
5.Write the recursive function for : i )inorder ii)preorder iii) postorder.also find preorder,
inorder and postorder sequence for the following binary tree
7. Develop C functions to insert an item into BST and construct BST step by step for the
given data 100,85,45,55,110,20,70,65,113,145,132,96.
10.What is forest? Explain the steps how forest can be converted into binary tree with an
example. Write the recursive steps of forest traversal.
11.Show adjacency matrix and adjacency list representation of the given graph
12.write C function for DFS, also apply DFS and BFS traversal for the following graphs.
17. Explain linear probing. also apply linear probing for the given hash table of size 10 to
insert the keys 72, 27, 36, 24, 63, 81, 92, and 101 into the table.
(Take h(k) = k mod m, m = 10).