Jawaharlal Nehru Technological University Hyderabad

Jawaharlal Nehru Technological University Hyderabad B.Tech II DATA STRUCTURES Previous Question Paper (March - 2022 - R13)

B.Tech | II | I | R13 | March - 2022

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

Answer any five questions

All questions carry equal marks

Main

115 marks
a

Explain the concept of asymptotic notations, indicating the normally used notations.

8 marks

Answer

Asymptotic notations are mathematical tools used to describe the limiting behavior of a function, specifically the growth rate of an algorithm's running time or space requirements as the input size n approaches infinity. They provide a high-level abstraction that ignores machine-dependent constants and lower-order terms to focus on the efficiency class of an algorithm.

The three primary notations are:

  1. Big O Notation (O): Provides an asymptotic upper bound on the growth rate of a function. It represents the worst-case time complexity, ensuring the algorithm will not perform worse than this limit.
  2. Omega Notation (Ω): Provides an asymptotic lower bound on the growth rate of a function. It represents the best-case time complexity, ensuring the algorithm will perform at least this well.
  3. Theta Notation (Θ): Provides an asymptotic tight bound on the growth rate of a function. It occurs when the function is bounded both above and below by the same growth rate, indicating the average or exact complexity.
b

List out any two applications of linked list and two advantages of doubly linked lists over singly linked list.

7 marks

Answer

Applications of linked lists include:

  1. Dynamic Memory Allocation: Linked lists are used to manage free memory blocks in operating systems.
  2. Implementation of Stacks and Queues: They provide a flexible structure for implementing these data structures where the number of elements is not known in advance.

Advantages of doubly linked lists over singly linked lists:

  1. Bidirectional Traversal: A doubly linked list allows traversal in both forward and backward directions, whereas a singly linked list only supports forward traversal.
  2. Efficient Deletion: Deleting a node in a doubly linked list is more efficient if the pointer to the node is already known, as it does not require traversing from the head to find the preceding node to update its pointer.
215 marks
a

Explain the insertion and deletion operations in doubly lined list.

12 marks

Answer

Sign in to view the complete answer paper.

b

What are the properties of sparse matrix?

3 marks

Answer

Sign in to view the complete answer paper.

315 marks
a

With an example, explain the operations performed on stacks.

10 marks

Answer

Sign in to view the complete answer paper.

b

What are the applications of stack?

5 marks

Answer

Sign in to view the complete answer paper.

415 marks
a

Explain various operations that are performed on queue with suitable algorithms.

11 marks

Answer

Sign in to view the complete answer paper.

b

Explain about Deque.

4 marks

Answer

Sign in to view the complete answer paper.

515 marks
a

Construct the binary tree whose following traversals are given:

inorder : DFEIHBAJCNOMK

postorder: FIHEDBJONMKCA

11 marks

Answer

Sign in to view the complete answer paper.

b

Give the difference between tree and graph.

4 marks

Answer

Sign in to view the complete answer paper.

615 marks
a

Define Max-heap. Write Max-Heapify algorithm that maintain max-heap property.

10 marks

Answer

Sign in to view the complete answer paper.

b

Explain about threaded binary tree.

5 marks

Answer

Sign in to view the complete answer paper.

715 marks
a

Construct the open hash table and closed hash table for the input: 30, 20, 56, 75, 31, 19 using the hash function h(k)= k mod 11.

9 marks

Answer

Sign in to view the complete answer paper.

b

Explain about insertion sort with an example.

6 marks

Answer

Sign in to view the complete answer paper.

815 marks
a

Discuss Knuth Morries Pratt (KMP) algorithm. Compute whether the pattern P=10100111 is present in the string T=1001010100111 or not.

10 marks

Answer

Sign in to view the complete answer paper.

b

Discuss about splay trees.

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 ITE II I, March - 2022, R13.

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

Other papers in DATA STRUCTURES

Loading Question Papers

Fetching data from database...