JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech IV DATA STRUCTURES Previous Question Paper (January/February - 2023 - R18)

B.Tech | IV | IV-I | R18 | January/February - 2023

Answer PaperPaper Code: 157EKMaximum Marks: 75Time: 3 Hours

Note: i) Question paper consists of Part A, Part B.
ii) Part A is compulsory, which carries 25 marks. In Part A, Answer all questions.
iii) In Part B, Answer any one question from each unit. Each question carries 10 marks and may have a, b as sub questions.

Part A

125 marks
a

Write down the applications of stack.

2 marks

Answer

Applications of stack include expression evaluation (infix to postfix conversion), function call management (recursion), undo mechanisms in editors, syntax parsing in compilers, and backtracking algorithms.

b

What are the advantages and disadvantages of the linked list implementation?

3 marks

Answer

Advantages: Dynamic size allocation, efficient insertion and deletion at any position without shifting elements, and no memory wastage due to pre-allocation. Disadvantages: Extra memory required for pointers, no random access (sequential access only), and poor cache locality compared to arrays.

c

What is double hashing?

2 marks

Answer

Sign in to view the complete answer paper.

d

Write operations on dictionaries.

3 marks

Answer

Sign in to view the complete answer paper.

e

List the properties of binary search tree.

2 marks

Answer

Sign in to view the complete answer paper.

f

Write the properties of Splay Tree.

3 marks

Answer

Sign in to view the complete answer paper.

g

List out the applications of BFS.

2 marks

Answer

Sign in to view the complete answer paper.

h

Give the heap sort algorithm. Write the complexity of your algorithm.

3 marks

Answer

Sign in to view the complete answer paper.

i

Define Trie? What are the properties of Tries?

2 marks

Answer

Sign in to view the complete answer paper.

j

Give the importance preprocessing for Good suffix heuristic.

3 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

What is the complexity of finding maximum and minimum value from an array of n values? Explain the steps of deriving complexity.

5 marks

Answer

Sign in to view the complete answer paper.

b

Distinguish between the stack and the queue data structures.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Write an algorithm/pseudocode to count the number of nodes in a Singly Linked List?

5 marks

Answer

Sign in to view the complete answer paper.

b

Assume that a stack is represented using linked list. Write down the algorithms for the following operations:- (i) Push (ii) Pop.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

What are the properties of a good hash function? With necessary examples explain four different hashing techniques.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the implementation of skip list representation with an example.

5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Given input keys {1, 3, 23, 9, 4, 29, 19} and a hash function h(X) = X mod table size. The initial hash table contains 10 slots, with starting index 0. Show the resulting table after rehashing when the load factor= 0.5, using linear probing.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the implementation of deletion of new node in dictionary with an example.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Give an algorithm to perform binary search. Using the algorithm, search for elements 23 and 47 in the given set of elements [12 23 27 35 39 42 50].

5 marks

Answer

Sign in to view the complete answer paper.

b

Construct a B-Tree with order m=3 for the key values 2, 3, 7, 9, 5, 6, 4, 8, and 1 delete the values 4 and 6. Show the tree in performing all operations.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

What is a Red-Black Tree? Mention the properties that a Red-Black tree holds.

4 marks

Answer

Sign in to view the complete answer paper.

b

Show the results of inserting 43, 11, 69, 72, and 30 into an initially empty AVL tree. Show the results deleting of the node 11 and 72 one after the other from constructed AVL Tree.

6 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

Give algorithm for DFS and demonstrate DFS using suitable example.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write an algorithm/ C program to perform merge sort.

5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Demonstrate the implementation to do the partition of a list using quick sort and then use insertion sort for sorting sub lists.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write an algorithm/pseudocode to sort elements using Heap sort technique? Illustrate the working of Heap sort algorithm on the following input: 35, 15, 0, 1, 60.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Demonstrate running time analysis of Brute Force String Matching Algorithm using suitable example.

5 marks

Answer

Sign in to view the complete answer paper.

b

Discuss in detail about Bad Character Heuristic using suitable example.

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

List and demonstrate types of tries with an example.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain about the Boyer- Moore algorithm.

5 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the solved question paper with answers of DATA STRUCTURES from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for B.Tech CE IV IV-I, January/February - 2023, R18.

For the question paper without answers, switch to the Question Paper tab.

Other papers in DATA STRUCTURES

Loading Question Papers

Fetching data from database...