YCH_END_SEM_EXAM
YCH_END_SEM_EXAM
3. what are the difference between general tree and binary tree.
6. Construct a binary search tree form the following numbers and do Inorder, Preorder and
Postorder traversals:
56,34,45,37,48,87,63,75,59,94,67
7. (a) The Pre-order and In-order traversals sequence of a nodes in a binary tree are given
below:
87,36,22,15,56,85,48,91,72,6
Delete 48 and draw the resul ng tree. Then Delete 15 and draw the resul ng tree.
8. (a) What are the Best, Worst, & Average case me complexity of an binary search
algorithm
(c) What will be the complexity of the following opera ons – Merge Sort, Shell Sort,
Selec on Sort
(b) How can a polynomial such as 6x6 + 4x3 – 2x + 10 be represented by a linked list?
. ( c ) Difference between linear and non linear data structure. Give two example.
10. (a) Convert the following infix expression into pos ix form by using the stack.
A+(B*C-(D/E^F)*G)*H
(b) write a c func on to perform inser on and dele on opera ons of a queue.
( c) write are the difference between stack and queue. What is sparse matrix? Explain
with an example.
34, 67, 4, 56, 44, 55, 671, 345, 567, 2, 5, 89, 93, 23.