JNTU

JNTU B.Tech II DATA STRUCTURES Previous Question Paper (April/May - 2023 - R18)

B.Tech | II | II-I | R18 | April/May - 2023

Answer PaperPaper Code: 153AKMaximum Marks: 75Time: 3 Hours

Question paper consists of Part A, Part B. Part A is compulsory, which carries 25 marks. In Part A, Answer all questions. In Part B, Answer any one question from each unit. Each question carries 10 marks.

Part A

125 marks
a

Give examples for stack.

2 marks

Answer

Common examples include the undo mechanism in text editors, the back button in web browsers, and the function call stack used for managing recursive function calls and local variables in programming.

b

How to construct a queue using stacks?

3 marks

Answer

A queue can be constructed using two stacks, say Stack1 and Stack2. To enqueue, push the element onto Stack1. To dequeue, if Stack2 is empty, pop all elements from Stack1 and push them into Stack2, then pop from Stack2. If Stack2 is not empty, simply pop from Stack2.

c

What is a skip list?

2 marks

Answer

Sign in to view the complete answer paper.

d

List the drawbacks of open addressing.

3 marks

Answer

Sign in to view the complete answer paper.

e

What does the color notate in red-black tree?

2 marks

Answer

Sign in to view the complete answer paper.

f

What operations are performed on Splay trees?

3 marks

Answer

Sign in to view the complete answer paper.

g

What is a max heap?

2 marks

Answer

Sign in to view the complete answer paper.

h

Give example for adjacency list of a graph.

3 marks

Answer

Sign in to view the complete answer paper.

i

Define trie.

2 marks

Answer

Sign in to view the complete answer paper.

j

What are the merits and demerits of brute force method for pattern matching?

3 marks

Answer

Sign in to view the complete answer paper.

Part B

2

Write and explain algorithms for Push and pop operations of stack using linked list.

10 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Describe the conditions of overflow and underflow in a queue.

5 marks

Answer

Sign in to view the complete answer paper.

b

Discuss the applications of queues.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

Demonstrate skip list representation of a dictionary.

5 marks

Answer

Sign in to view the complete answer paper.

b

How to perform reassign operation on a dictionary.

5 marks

Answer

Sign in to view the complete answer paper.

OR
5

Explain the algorithm for implementing quadratic probing on a hash table.

10 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Illustrate search operation on binary search tree.

5 marks

Answer

Sign in to view the complete answer paper.

b

Discuss the importance of height balanced trees for searching.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

With suitable examples, illustrate right-left rotation on AVL tree.

5 marks

Answer

Sign in to view the complete answer paper.

b

Differentiate between splay tree and red-black tree.

5 marks

Answer

Sign in to view the complete answer paper.

8

Make a comparison of breadth first search and depth first search for a graph.

10 marks

Answer

Sign in to view the complete answer paper.

OR
9

Write an algorithm for merge sort and explain with a suitable example.

10 marks

Answer

Sign in to view the complete answer paper.

10

Describe the Knuth-Morris-Pratt algorithm for pattern matching.

10 marks

Answer

Sign in to view the complete answer paper.

OR
11

ā€œA compressed trie is an advanced version of the standard trie.ā€ Support or oppose this statement with necessary explanation.

10 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 JNTU for B.Tech CSE(DS) II II-I, April/May - 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...