Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

SEE_2CSOE52_DS_Question Paper, Exams of Data Structures and Algorithms

SEE_2CSOE52_DS_Question Paper SEE_2CSOE52_DS_Question Paper SEE_2CSOE52_DS_Question Paper

Typology: Exams

2020/2021

Uploaded on 06/14/2022

himanshu-nakrani
himanshu-nakrani 🇮🇳

1 document

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Page 1 of 2
NIRMA UNIVERSITY
Institute of Technology
Semester End Examination, May-2021
B. Tech., Semester VI (Open Elective)
2CSOE52 DATA STRUCTURES
Time: 1.5 Hour Max Marks: 40
Instructions: 1. Attempt all questions.
2. Figures to right indicate full marks
3. Assume suitable assumptions if required and specify them.
Q-1
Answer the following.
[10]
A)
CO1
Write an algorithm to perform the following operations on a double
ended queue implemented as a simple queue.
(a) Insert an element from front
(b) Delete an element from rear
05
B)
CO1
Consider a two dimensional array A[2:9, -4:7, 4:12]. The base
address of the array is 2000 and the memory required by each
elements is 2 bytes. Find the address of the location A[4, 2, 9] using
both the row and column major order. Show all the intermediate
steps.
05
Q-2
Answer the following.
[10]
A)
CO2
How an insert operations takes place in a circular doubly linked list.
Write an appropriate algorithmic steps to perform insertion at end in
circular doubly linked list.
05
B)
CO2
Convert the following infix expression into postfix expression using
any of the known methods. Show all the intermediate steps in table
format.
(A - B) *(C D) / (E + F) * ( G + H )
05
Q-3
Answer the following.
[10]
A)
CO1
The preorder traversing sequence of a Binary Search Tree (BST) is
given as { 18, 10, 5, 1, 7, 15, 30, 25, 35, 32, 38 }, construct the
binary tree from above sequence. Also give the postorder
traversing sequence of constructed binary tree.
05
B)
CO2
Construct an AVL Tree by inserting the elements in the below given
order :
99, 88, 77, 66, 55, 44, 33, 22, 10.
Show all the intermediate steps.
05
OR
B)
CO2
Construct Minimum Spanning Tree(MST) from below given graph
using Kruskal’s algorithm. Show all the intermediate steps
of MST construction.
05
pf2

Partial preview of the text

Download SEE_2CSOE52_DS_Question Paper and more Exams Data Structures and Algorithms in PDF only on Docsity!

Page 1 of 2

NIRMA UNIVERSITY

Institute of Technology

Semester End Examination, May-

B. Tech., Semester– VI (Open Elective) 2CSOE52 – DATA STRUCTURES Time: 1.5 Hour Max Marks: 40 Instructions: 1. Attempt all questions.

  1. Figures to right indicate full marks
  2. Assume suitable assumptions if required and specify them. Q- 1 Answer the following. [10] A) CO Write an algorithm to perform the following operations on a double ended queue implemented as a simple queue. (a) Insert an element from front (b) Delete an element from rear

B)

CO Consider a two dimensional array A[2:9, - 4:7, 4:12]. The base address of the array is 2000 and the memory required by each elements is 2 bytes. Find the address of the location A[4, 2, 9] using both the row and column major order. Show all the intermediate steps.

Q- 2 Answer the following. [10] A) CO How an insert operations takes place in a circular doubly linked list. Write an appropriate algorithmic steps to perform insertion at end in circular doubly linked list.

B)

CO Convert the following infix expression into postfix expression using any of the known methods. Show all the intermediate steps in table format. (A - B) *(C – D) / (E + F) * ( G + H )

Q- 3 Answer the following. [10] A) CO The preorder traversing sequence of a Binary Search Tree (BST) is given as { 18 , 10, 5, 1, 7, 15, 30, 25, 35, 32, 38 }, construct the binary tree from above sequence. Also give the postorder traversing sequence of constructed binary tree.

B)

CO Construct an AVL Tree by inserting the elements in the below given order : 99, 88, 77, 66, 55, 44, 33, 22, 10. Show all the intermediate steps.

OR

B)

CO Construct Minimum Spanning Tree(MST) from below given graph using Kruskal’s algorithm. Show all the intermediate steps of MST construction.

Page 2 of 2 Q- 4 Answer the following. [10] A) CO The keys 19 , 25 , 11, 1, 3, 4, 32 , 15 are inserted into an initially empty hash table of length 9 with hash function h(k) = k% 9 and collision resolution technique linear probing. What will be the resultant hash table? Show all the intermediate steps.

OR

A)

CO Write an efficient algorithms to perform insertion and deletion operation on priority queue using linked list.

B)

CO 3

Identify a sorting technique that sorts the given set of data without comparing the elements. Sort the following data in ascending order using the identified sorting technique. Show all the intermediate steps. 4244, 1234, 95, 987, 345,333, 5678, 11, 473, 182, 9, 3 6