(Backlog) Csen 2001
(Backlog) Csen 2001
Group – A
(Multiple Choice Type Questions)
CSEN 2001 1
B.TECH/AEIE/IT/3RD SEM/CSEN 2001 (BACKLOG)/2020
(viii) What is the possible number of binary trees that can be created with 3 nodes,
giving the sequence N, M, L when traversed in post-order.
(a) 15 (b) 3 (c) 5 (d) 8.
(ix) Which of the following is false about a binary search tree?
(a) The left child is always lesser than its parent
(b) The right child is always greater than its parent
(c) The left and right sub-trees should also be binary search trees
(d) In order sequence gives decreasing order of elements.
(x) What is the number of edges present in a complete graph having n vertices?
(a) (n*(n+1))/2 (b) (n*(n-1))/2
(c) n (d) Information given is insufficient.
Group – B
2. (a) Define abstract data type with an example.
(b) Compare between array and linked list.
(c) Define Big-O, Omega and Theta notations.
3+ 3 + (3 × 2) = 12
Group – C
4. (a) Write an algorithm to push an element in a given stack.
(b) Evaluate the following postfix expression:
7 9 2 + * 8 15 3 / - *
(c) Write an algorithm to convert infix to postfix expression.
3 + 3 + 6 = 12
CSEN 2001 2
B.TECH/AEIE/IT/3RD SEM/CSEN 2001 (BACKLOG)/2020
Group – D
6. What is a Binary Search Tree (BST)? Draw a BST for the following sequence of numbers
55, 16, 76, 33, 88, 115, 98, 39, 44, 56, 69, 44
Traverse the above constructed tree in Preorder, Inorder and Postorder.
(1 + 5 + (3 × 2)) = 12
7. (a) What is an expression tree? Represent the following expression using a tree.
E= (a-b) / ((c*d)+e).
(b) Consider the graph in the figure below. Find out the output of BFS and DFS
traversal (consider 1 to be start node). Show every step with explanation using
corresponding data structure.
(1 + 3) + (4 + 4) = 12
Group – E
8. (a) Consider the list of numbers :- 78, 66, 52, 46, 44, 40, 36, 33, 29, 19, 11, 10, 9, 6
Assume your target is 9 and the start index (lo) is 0 and the end index (hi) is 13
at the beginning. You are applying Binary Search algorithm to find it.
(i) What will be the value of hi and lo when you find your target?
(ii) What will be the exact number of key comparisons to find your target?
Show every step.
(b) Bubble sort algorithm is inefficient because it continues execution even after an
array is sorted by performing unnecessary comparisons. Therefore, the number of
comparisons in the best and worst cases are the same. Modify the algorithm in
such a fashion that it will not make the next pass when the array is already sorted.
6 + 6 = 12
Department &
Submission Link
Section
IT https://classroom.google.com/c/Mjk4MjAwODI4NjQ0/a/Mjk4MjEwNjI0NTMy/details
CSEN 2001 3