JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B. Tech II DATA STRUCTURES Previous Question Paper (September/October - 2023 - R15)

B. Tech | II | I | R15 | September/October - 2023

Answer PaperPaper Code: 123BPMaximum 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

How do you measure the algorithm running time?

2 marks

Answer

Algorithm running time is measured using Asymptotic Analysis, which evaluates the growth rate of the algorithm's time complexity as the input size (n) increases. It is typically expressed using Big O, Omega, or Theta notation to represent the number of primitive operations performed.

b

Describe best case, average case and worst case efficiency of an algorithm.

3 marks

Answer

Best Case: The minimum time required by an algorithm for the most favorable input configuration. Worst Case: The maximum time required for the least favorable input. Average Case: The expected time taken over all possible inputs, assuming a uniform distribution of input data.

c

List the applications of queue.

2 marks

Answer

Sign in to view the complete answer paper.

d

Define Circular Queue full condition.

3 marks

Answer

Sign in to view the complete answer paper.

e

State the properties of a Binary Tree.

2 marks

Answer

Sign in to view the complete answer paper.

f

Differentiate Max-heap and Min-heap.

3 marks

Answer

Sign in to view the complete answer paper.

g

What is searching and list the types of searching techniques.

2 marks

Answer

Sign in to view the complete answer paper.

h

Write the applications of binary search.

3 marks

Answer

Sign in to view the complete answer paper.

i

Define binary search tree with example.

2 marks

Answer

Sign in to view the complete answer paper.

j

Discuss the drawbacks of AVL trees.

3 marks

Answer

Sign in to view the complete answer paper.

Part B

2

Explain Array and Linked representation of Sparse Matrix.

10 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Explain how to create circular linked list and insert nodes at end.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write algorithm for above operations.

5 marks

Answer

Sign in to view the complete answer paper.

4

Explain the procedure to convert infix expression into postfix expression and write algorithm for it.

10 marks

Answer

Sign in to view the complete answer paper.

OR
5

Write C programs to implement a double ended queue ADT using arrays.

10 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Explain tree traversals with example.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain different ways of representation of graphs.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Explain with an example how to insert an element to maxheap.

5 marks

Answer

Sign in to view the complete answer paper.

b

Given In order traversal of a binary tree is D,G,B,E,A,H,F,I,C and pre order traversal is A,B,D,G,E,C,F,H,I construct binary tree.

5 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

Explain linear search with example.

3 marks

Answer

Sign in to view the complete answer paper.

b

Compare and contrast various sorting techniques.

7 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

State and explain heap sort with an example.

5 marks

Answer

Sign in to view the complete answer paper.

b

Apply radix sort on the following list of elements 45, 37,05,09,06,11,18,27.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Construct a binary search tree for the following 80, 40, 75, 30, 20, 90, 50.

5 marks

Answer

Sign in to view the complete answer paper.

b

What is a trie? Briefly describe compressed tries with its disadvantages.

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Construct an AVL Tree for following elements:10,20,15,3,2,16,18,26.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain about the Knuth-Morris-Pratt pattern matching 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(SE) II I, September/October - 2023, R15.

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

Other papers in DATA STRUCTURES

Loading Question Papers

Fetching data from database...