Time: 3 Hours: Roll No
Time: 3 Hours: Roll No
B. TECH
(SEM III) THEORY EXAMINATION 2020-21
DATA STRUCTURES
Time: 3 Hours Total Marks: 100
Note: 1. Attempt all Sections. If require any missing data; then choose suitably.
SECTION A
.
SECTION B
.55
QP20E290QP
_
2. Attempt any three of the following: 117
Consider a multi- Question Marks CO
Q no. |
a. dimensionalAKTU Array A[90] [30] [40] with base address 10 1
starts at 1000. Calculate the address of A[10] [20] [30] in row major
order and column major order. Assume the first element is stored
at A[2][2][2] and each element take 2 byte.
b. Evaluate the following postfix expression using stack. 10 2
13:42:16
2 3 9 * + 2 3 ^ - 6 2 / + , show the contents of each and every steps. also
find the equivalent prefix form of above expression. Where ^ is an
exponent operator. 2021 -
c. Explain any three commonly used hash function with the suitable 10 3
example? A hash function H defined as H(key) =key%7, with linear
-
Mar
probing, is used to insert the key 37,38,72,48,98,11,66 into a table
indexed from 0 to 6. what will be the location of key 11? Justify your
d. answer, also count the total number of collisions in this probing.
| 22
Write an algorithm for Breadth First search (BFS) and explain with the 10 4
e. help of suitable example.
If the in order of a binary tree is B,I,D,A,C,G,E,H,F and its post order is 10 5
I,D,B,G,C H,F,E,A then draw a corresponding binary tree with neat
and clear steps from above assumption.
1|Page
AKTU_QP20E290QP | 22-Mar-2021 13:42:16 | 117.55.242.131
Downloaded from : uptukhabar.net
Printed Page: 2 of 2
Subject Code: KCS301
Roll No: 0 0 0 0 0 0 0 0 0 0 0 0 0
SECTION C
45,32,65,76,23,12,54,67,22,87. .
b. Write a C program for Index Sequential Search. 10 3
_ 117 55
6.
Attempt any one part of the following:
AKTU
-
7. Attempt any one part of the following:
Marks CO
Q no. | 22 Question
a. Write Short notes of following 10 5
(a) Extended Binary Trees (b) Complete Binary Tree
(c) Threaded Binary Tree.
b. Insert the following sequence of elements into an AVL tree, starting 10 5
with empty tree 71,41,91,56,60,30,40,80,50,55 also find the minimum
array size to represent this tree.
2|Page
AKTU_QP20E290QP | 22-Mar-2021 13:42:16 |
117.55.242.131 Downloaded from : uptukhabar.net