0% found this document useful (0 votes)
53 views3 pages

Time: 3 Hours: Roll No

The document contains questions from a theory examination on data structures. It has 6 sections with 2 or 3 questions in each section covering topics like time-space tradeoffs, arrays, linked lists, stacks, queues, trees, graphs, sorting, searching and other data structure concepts.

Uploaded by

reshu.tyagi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views3 pages

Time: 3 Hours: Roll No

The document contains questions from a theory examination on data structures. It has 6 sections with 2 or 3 questions in each section covering topics like time-space tradeoffs, arrays, linked lists, stacks, queues, trees, graphs, sorting, searching and other data structure concepts.

Uploaded by

reshu.tyagi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

Printed Page: 1 of 2

Subject Code: KCS301


Roll No: 0 0 0 0 0 0 0 0 0 0 0 0 0

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

1. Attempt all questions in brief. 2 x 10 = 20


Q no. Question Marks CO
a. Define Time-Space trade-off. 2 1
b. Differentiate Array and Linked list. 2 1
c. Explain Tail Recursion with suitable example. 2 2
d. Write the full and empty condition for a circular queue data structure. 2 2
e. Examine the minimum number of interchanges needed to convert the 2 3
array 90, 20, 41,18, 13, 11, 3, 6, 8,12, 7, 71, 99 into a maximum heap.
f. Differentiate sequential search and binary search. 2 3
g. Compute the Transitive closure of following graph. 2 4
Write short notes on adjacency multi list representation a Graph. 2 4 131
h.
i. What is the importance of threaded binary tree? 2 5 .

j. Write short notes on min heap. 2 5 242

.
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

3. Attempt any one part of the following:


Q no. Question Marks CO
a. Consider the two dimensional lower triangular matrix (LTM) of order 10 1
N ,Obtain the formula for address calculation in the address of row
major and column major order for location LTM[j][k], if base address
is BA and space occupied by each element is w byte.
th
b. Write a C program to insert a node at k position in single linked list. 10 1
4. Attempt any one part of the following:

Q no. Question Marks CO


a. Convert the following infix expression to reverse polish notation 10 2
expression using stack. √ 4

b. Write a C program to implement stack using single linked list. 10 2


QP20E290QP . 131
5. Attempt any one part of the following:
Q no. Question Marks CO
.
a. Write an algorithm for merge sort and apply on following elements 10 3
242

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

Q no. Question 13:42:16 | Marks CO


a. Describe Prim`s algorithm and find the cost of minimum spanning tree 10 4
using Prim`s Algorithm.
2021 10 4

b. Apply the Floyd warshall’s algorithm in above mentioned graph


-
(i.e. in Q.no 6a) Mar

-
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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy