Data Structures and Algorithms - CD3291 - Important Questions
Data Structures and Algorithms - CD3291 - Important Questions
UNIT 1
Part A
2. What is abstract data type? What are all not concerned in an ADT?
4. What is the best, worst and average case time complexities of linear search
algorithm?
6. Write a python program to create a class CIRCLE. Also find the area of circle.
Part B
1. Explain the concept of single and multiple inheritance with example program.
6. Explain the concept of multilevel and hybrid inheritance with example program.
Page: 1 / 5
UNIT – II
PART-A
PART – B
UNIT – III
PART-A
Page: 2 / 5
1. What is the importance of sorting and searching techniques?
6. What is hashing?
8. What is rehashing?
9. What are the advantages and disadvantages of separate chaining and linear
probing?
hashing. PART – B
5. Consider a hash table with 9 slots. The hash function is h(K)=k mod 9. The
following keys are inserted in the order 5,28,19,15,20,33,12,17,10. 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).
Page: 3 / 5
UNIT – IV
PART-A
1. Define binary tree.
5. How are binary tree represented using an array and linked list? Give example.
PART – B
3. What are the expression trees. Write the procedure for constructing an
expression tree.
4. How to insert and delete an element into binary search tree and write down the
code for the insertion routine with an example.
5. i) Show the result of inserting 43,11,69,72 and 30 into an initially empty AVL
tree. Show the results of deleting the nodes 11 and 72 one after the other of
constructed tree. ii) Explain the AVL rotations with a suitable example. 16.i)
Explain the insert and delete operations of heap with examples. ii) State algorithm
to sort elements of a given array in ascending order using heapsort. Sort the
Page: 4 / 5
following numbers using heap sort:48,0,-1,82,108,72,54 17.Construct a B-Tree
with order m=3 for the key values 2,3,7,9,5,6,4,8,1 and delete the values 4 and 6.
Show the tree in performing all the operations.
UNIT – V
PART-A
5. How are binary tree represented using an array and linked list? Give example.
PART – B
Page: 5 / 5