JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech II DATA STRUCTURES Previous Question Paper (November/December - 2018 - R13)

B.Tech | II | II-I | R13 | November/December - 2018

Answer PaperPaper Code: 113BPMaximum Marks: 75Time: 3 Hours

Note: This question paper contains two parts A and B. Part A is compulsory which carries 25 marks. Answer all questions in Part A. Part B consists of 5 Units. Answer any one full question from each unit.

PART – A

125 marks
a

Define Time and Space Complexity.

2 marks

Answer

Time Complexity is the amount of computer time required by an algorithm to run as a function of the length of the input. Space Complexity is the amount of memory space required by an algorithm to solve a problem as a function of the input size.

b

What is data structure? What are the factors that influence the choice of a particular data structure?

3 marks

Answer

A data structure is a specialized format for organizing, processing, retrieving, and storing data in a computer so that it can be accessed and worked with efficiently. Factors influencing the choice include the nature of the data (frequency of access/updates), the required efficiency of operations (search, insert, delete), and memory constraints.

c

Differentiate between Dequeue and Priority queue.

2 marks

Answer

Sign in to view the complete answer paper.

d

Given the following arithmetic expression in infix notation as 12/(7-3)+2*(3+8)-7. Translate this expression into postfix notation and then evaluate it.

3 marks

Answer

Sign in to view the complete answer paper.

e

If there are 27 nodes in a complete binary tree, what will be its height and how many nodes will be in the last level?

2 marks

Answer

Sign in to view the complete answer paper.

f

What is the time complexity of DFS traversal as an n-vertex simple graph that is represented with adjacent matrix structure?

3 marks

Answer

Sign in to view the complete answer paper.

g

What is hash collision? Explain with an example.

2 marks

Answer

Sign in to view the complete answer paper.

h

Compare linear search with binary search.

3 marks

Answer

Sign in to view the complete answer paper.

i

What is Trie? Explain the suffix trie with an example.

2 marks

Answer

Sign in to view the complete answer paper.

j

What are the properties of B-Tree?

3 marks

Answer

Sign in to view the complete answer paper.

PART – B

210 marks
a

Define Double linked list. Write an algorithm to delete an element from the existing linked list.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the algorithm specifications and various notations used to analyze the performance of an algorithm.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Describe the Asymptotic notations with an example.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write an algorithm that appends two lists together. Use linked list.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

What is circular queue? Write a C function to insert an item in the circular queue.

5 marks

Answer

Sign in to view the complete answer paper.

b

Define stack. Explain the operations of stack with an example.

5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Write a C program which converts the infix expression into postfix expression.

5 marks

Answer

Sign in to view the complete answer paper.

b

What is Dequeue? Explain the operations of Dequeue with an example.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Write insertion and deletion algorithm of Max Heap.

5 marks

Answer

Sign in to view the complete answer paper.

b

From the following graph find the traversal of nodes using BFS and DFS.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Explain various graph representations with an example and mention the pros and cons of each representation.

5 marks

Answer

Sign in to view the complete answer paper.

b

Construct the Max heap of the following elements {60, 10, 40, 20, 90, 30, 50, 70, 80}

5 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

Write the algorithm for Insertion sort. Explain their best case and worst case complexities.

5 marks

Answer

Sign in to view the complete answer paper.

b

Insert the following list of elements into the Hash table by using Quadratic probing (size of the table is 10) {89, 56, 9, 20, 45, 36, 11, 77}

5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Sort the following list of elements by using Quick sort, show the contents of the list at the end of each pass. {75, 10, 20, 70, 80, 90, 100, 40, 30, 50}

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the complexity of quick sort algorithm.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Construct the Splay tree for the following list of elements (Splay node is 89) {22, 55, 6, 7, 66, 49, 3, 34, 67, 56, 89}

5 marks

Answer

Sign in to view the complete answer paper.

b

Write algorithms for rotations of an AVL.

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Construct the Red-Black tree for following elements {45, 32, 78, 56, 13, 27, 19, 82, 14}

5 marks

Answer

Sign in to view the complete answer paper.

b

Draw the flow chart for KMP algorithm.

5 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of DATA STRUCTURES from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for B.Tech IT II II-I, November/December - 2018, R13.

For the solved question paper with answers, switch to the Answer Paper tab.

Other papers in DATA STRUCTURES

Loading Question Papers

Fetching data from database...