Skip to content
Previous Year Question Paper

AD/AG/AL/CD/CY/IO/IS-303 (GS) – Data Structure

December 2023AIMLSEMESTER-3
December 2023
Max Marks: 70
Duration: 3 Hours
Instructions:

Attempt any five questions.

All questions carry equal marks.

Q.1
a)Unit 3

Construct a Binary tree for the given traversals (Postorder and Inorder). Also, find the Preorder traversal of the Binary tree so formed.

b)Unit 3

How a tree can be stored in the memory? Explain with an example. Explain the advantages and disadvantages of the array representation of a tree.

Q.2
a)Unit 3

Construct an expression tree for the algebraic expression (3a-b)²(4c+2d)³.

b)Unit 3

Explain the Binary Search Tree with an example. Make a BST for the given sequence and perform deletions. Also write an algorithm to insert an element into a BST.

Q.3
a)Unit 3

Define AVL Trees. Explain its rotation operations with example. Construct AVL Tree by inserting the given data.

b)Unit 3

Define Huffman tree and describe an algorithm to create a Huffman tree. Construct a Huffman Tree for data structures with its optimal code.

Q.4
a)Unit 4

Explain in detail about the graph traversal techniques with suitable example.

b)Unit 4

Consider the given undirected graph. Find the adjacency list representation and find a minimum cost spanning tree by Kruskal's algorithm.

Q.5
a)Unit 5

Write the algorithm to create a heap and sort the given elements using heap sort.

b)Unit 2

How do you implement a circular queue in C using array? Write routines to implement operations for it. Differentiate between Linear Queue and Circular Queue.

Q.6
Unit 1

Define doubly linked list. Describe an algorithm to insert an element at the beginning of the doubly linked list. Describe an algorithm to delete an element from the end of doubly linked list. Also explain the advantages and disadvantages of doubly linked list.

Q.7
a)Unit 1

Given a 2D array A[-100:100, -5:50]. Find the address of element A[99, 49] considering the base address 10 and each element requires 4 bytes for storage. Follow row-major order.

b)Unit 5

What do you understand by stable and in-place sorting?

c)Unit 3

Define Extended binary tree with example.

Q.8
a)Unit 5

Define hash function. Discuss various methods used for resolving hash collisions.

b)Unit 1

Suppose multidimensional arrays A and B are declared. Find the length of each dimension, the number of elements, and address of the element B[3,3,3].