Skip to content
Previous Year Question Paper

CSIT-303 - Data Structure (DS)

December 2024CSITSEMESTER-3
December 2024
Max Marks:
Duration:
Q.1
a)Unit 1

What is Data structure? Write a brief note on classification of data structure.

b)Unit 1

What do you mean by algorithmic complexity? Explain Time complexity and space complexity in brief.

Q.2
a)Unit 2

How do you implement binary search recursively?

b)Unit 2

How does the size of the input array affect the time complexity of linear search and binary search?

Q.3
a)Unit 3

Evaluate the post fix expression using stack: 8 3 4 + - 3 8 2 / + * 2 $ 3 +

b)Unit 4

Explain and implement a singly linked list with an example?

Q.4
a)Unit 3

Suppose you have a queue with the following elements: [10, 20, 30, 40, 50]. What will be the result of dequeuing two elements from this queue, then enqueueing three new elements with the values of 60, 70 and 80, and finally dequeuing one more element?

b)Unit 3

How can you implement a queue using two stacks, and what are the advantages and disadvantages of this approach?

Q.5
a)Unit 2

Explain Insertion sort in details. Write an algorithm for it. Discuss the complexity of insertion sort.

b)Unit 2

What is max heap? Write an algorithm to perform heap sort. Give example.

Q.6
a)Unit 2

Suppose you have an array with the following elements: [22, 7, 2, 9, 8, 15, 13, 3, 11]. What will be the result of sorting this array using the quicksort algorithm with the first element as the pivot?

b)Unit 5

Construct a binary tree whose preorder and post order traversal as follows

i) Preorder- F, B, A, D, C, E, G, I, H, K, J

ii) Postorder- A, C, E, D, B, H, K, I, J, G, F

Q.7
a)Unit 5

Insert the set of elements {30, 40, 24, 58, 48, 26, 11, 13} to construct a binary search tree starting from a null tree taking one element at a time from left to right. Draw a tree for each steps?

b)Unit 3

Define the properties of circular queue. How will you check whether the circular queue is

i) Full

ii) Empty

Q.8
i)Unit 3

Application of queue

ii)Unit 4

BFS and DFS

iii)Unit 5

Doubly circular linked list