DATA STRUCTURES
DATA STRUCTURES
com
QUESTION BANK
UNIT-I: ARRAYS
B) Explain the procedure to convert infix expression to postfix expression with the
tR
B) Explain basic operations of queue. List the steps to implement queue using stack. [5 M]
w
w
UNIT-IV: TREES
1. A) Explain binary tree ADT. [4 M]
B) Discuss representation of binary tree using arrays and linked list. [6 M]
2. A) What operations can be performed on binary trees? Discuss. [4 M]
B) Write in-order, pre-order and post-order traversal of a binary tree. [6 M]
3. A) Construct max heap for the following: [5 M]
140, 80 , 30 , 20 ,10 ,40 ,30 ,60 ,100 ,70 ,160 ,50 , 130, 110, 120
B) Explain in-order traversal of threaded binary tree with an example. [5 M]
4. A) Define binary search tree. Show how to insert and delete an element from binary
Search tree with an example? [6 M]
B) Write algorithm to insert and delete an element from binary search tree. [4 M]
UNIT-V: GRAPHS
UNIT-VI: SORTING
w
w
B) Discuss how to sort elements using merge sort with suitable example. [5 M]
2. A) Rearrange following numbers using quick sort: [5 M]
10, 6, 3, 7, 17, 26, 56, 32, 72
B) Write a program to sort the elements using radix sort. [5 M]
A) State and explain insertion sort with example. [5 M]
3. B) Differentiate between iterative merge sort and recursive merge sort [5 M]
A) State and explain heap sort with example. [6 M]
4. B) Evaluate time complexity and space complexity of an algorithm. [4 M]
www.FirstRanker.com