JNTUH

JNTUH B.Tech II DATA STRUCTURES Previous Question Paper (April/May - 2018 - R13)

B.Tech | II | I | R13 | April/May - 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

What is space complexity?

2 marks

Answer

Space complexity is the total amount of memory space required by an algorithm to execute as a function of the input size. It includes both fixed space (program code, constants) and variable space (dynamic memory allocation, recursion stack space).

b

What is Big-O and Omega Notation?

3 marks

Answer

Big-O Notation provides an asymptotic upper bound on the growth rate of a function, representing the worst-case time complexity. Omega Notation provides an asymptotic lower bound on the growth rate, representing the best-case time complexity.

c

What is a Queue? Give its basis operation.

2 marks

Answer

Sign in to view the complete answer paper.

d

Convert to postfix: 2+3*4+6/2.

3 marks

Answer

Sign in to view the complete answer paper.

e

State the different representations of a Graph.

2 marks

Answer

Sign in to view the complete answer paper.

f

What is a Max-heap?

3 marks

Answer

Sign in to view the complete answer paper.

g

What is the time complexity of linear search?

2 marks

Answer

Sign in to view the complete answer paper.

h

What is a hash function? Give example.

3 marks

Answer

Sign in to view the complete answer paper.

i

What is a Red-Black Tree?

2 marks

Answer

Sign in to view the complete answer paper.

j

What is an AVL Tree?

3 marks

Answer

Sign in to view the complete answer paper.

Part B

2

What is a Circular Linked List? Write an algorithm for insertion and searching an element into a circular linked list.

10 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

How to represent One, Two, Three and Multidimensional arrays in C? Explain with example.

5 marks

Answer

Sign in to view the complete answer paper.

b

What is a sparse matrix? Give representations.

5 marks

Answer

Sign in to view the complete answer paper.

4

What is a Stack? Explain all the primitive operations performed on a stack.

10 marks

Answer

Sign in to view the complete answer paper.

OR
5

What is a Circular Queue? Explain various operations on a Circular Queue.

10 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Construct an expression tree for the given expression: A+(B-C)*D+(E*F).

5 marks

Answer

Sign in to view the complete answer paper.

b

A binary tree has 9 nodes. The inorder and postorder traversal sequences are given below. Give the preorder traversal. Inorder: D G B A H E C F I Postoder: G D B H E I F C A

5 marks

Answer

Sign in to view the complete answer paper.

OR
7

Explain BFS and DFS algorithms.

10 marks

Answer

Sign in to view the complete answer paper.

8

Explain linear search and binary search. Which method is efficient in terms of complexity?

10 marks

Answer

Sign in to view the complete answer paper.

OR
9

Explain how to sort the array of elements using heap sort.

10 marks

Answer

Sign in to view the complete answer paper.

10

Write an algorithm for insertion and deletion in a Binary Search Tree?

10 marks

Answer

Sign in to view the complete answer paper.

OR
11

Show each step of the AVL Tree built from a sequence of insertions corresponding to the following keys 44,17,32,78,50,54,62,48,88?

10 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of DATA STRUCTURES from JNTUH for B.Tech CSE II I, April/May - 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...