Data Structures March 2022
Data Structures March 2022
UNIT-II
3 a) Write an algorithm to reverse a Single linked list (7M)
b) Explain the implementation of a double-linked list with an example. (7M)
Or
4 a) Outline the applications of Single Linked List and write algorithms to merge two (7M)
single linked lists into one list.
b) Explain the procedure to insert elements into circular linked lists. (7M)
UNIT-III
5 a) Explain the working of Circular Queues with an example. (7M)
b) Write the algorithm for the Converting an expression from Infix notion to Postfix (7M)
notation
Or
6 a) Explain the implementation of Deqeues with a suitable example. (7M)
b) Describe Infix, Prefix, and Postfix of an expression. Convert the given Infix (7M)
expression to postfix expression using the stack algorithm and show the stack
details at each conversion step. (( + ^ − ( ∗ /
UNIT-IV
7 a) Outline the Binary Search Tree concept and write an algorithm to search an (7M)
element in the Binary Search Tree.
b) Define Binary Search Tree and create a Binary Search Tree using following data: (7M)
45, 39, 56, 12, 34, 78, 32, 10, 89, 54, 67, 81
1 of 2
|''|''|||''|'''|||'|
Code No: R201218 R20 SET - 1
Or
8 a) What is a Binary Heap? Explain the different types of Heaps. (7M)
b) (7M)
Write down the Inorder, Preorder, and Postorder traversals for the given Tree?
UNIT-V
9 a) What is a Graph? Illustrate the different memory representations with an example. (7M)
b) Identify which data structure is suitable for representing the following diagram (7M)
and explain which techniques are used to represent memory.
Or
10 a) Write an algorithm to traverse a Graph using Depth First Search (7M)
b) Define the graph and Consider the graph given below. Create the adjacency matrix (7M)
for the given graph.
2 of 2
|''|''|||''|'''|||'|