Browse papers
LevelMaster in Data Science (SMS, TU)
SubjectData Structures and Algorithms
Year2082 BS
Exam sessionSecond Assessment · Set page 10; Second Assessment 2082
Full marks45
Time allowed120 minutes
Questions10, all with step-by-step solutions
A

Group A

5 questions·3 marks each
1Short answer3 marks

Compare data type with abstract data type. List some benefits of dynamic memory allocation. (2 + 1)

adtdynamic-memory
2Short answer3 marks

Why do you need circular queue? What is priority queue? (2 + 1)

circular-queuepriority-queue
3Short answer3 marks

Compare recursion with iteration. Write a recursive function to find nthn^{th} Fibonacci number. (1.5 + 1.5)

recursionfibonacci
4Short answer3 marks

Compare singly linked list with doubly linked list. What are the benefits of using doubly linked list over singly linked list? (1.5 + 1.5)

linked-list
5Short answer3 marks

Define spanning tree and minimum spanning tree. (1.5 + 1.5)

spanning-tree
B

Group B

5 questions·6 marks each
6Long answer6 marks

Explain algorithm to convert an infix expression to postfix using stack. Use this algorithm to convert A/(B+CD)EA / (B + C - D) * E into postfix. (3 + 3)

OR

List some applications of stack. How do you implement stack using linked list? (1 + 5)

infix-postfixstack
7Long answer6 marks

Trace the execution of heap sort algorithm with the array of numbers 34, 23, 17, 31, 45, 7, 21, 15, 8, and 1. (6)

OR

Explain quick sort. Trace the execution of quick sort algorithm with the array of numbers 34, 23, 17, 31, 45, 7, 21, 15, 8, and 1. (2 + 4)

heap-sortquick-sort
8Long answer6 marks

Define collision in hashing. Suppose, the set of keys is {27,22,14,10,49,58,9,50}\{27, 22, 14, 10, 49, 58, 9, 50\}, m=10m = 10, and h(x)=xmod10h(x) = x \bmod 10. Show the effect of successively inserting these keys using quadratic probing. (2 + 4)

hashingquadratic-probing
9Long answer6 marks

Define AVL tree. Construct AVL tree for the sequence 20, 26, 30, 9, 4, 14, 28, and 18. (1 + 5)

avl-tree
10Long answer6 marks

What is graph traversal? Explain depth first search (DFS) algorithm for traversing graphs with example. (1 + 5)

graph-traversaldfs

Frequently asked questions

Where can I find the Master in Data Science (SMS, TU) Data Structures and Algorithms question paper 2082?
The full Master in Data Science (SMS, TU) Data Structures and Algorithms 2082 (Second Assessment) question paper is available free on Kekkei. You can read every question online and attempt the paper under timed exam conditions.
Does the Data Structures and Algorithms 2082 paper come with solutions?
Yes. Every question on this Data Structures and Algorithms past paper includes a step-by-step solution, plus instant AI feedback when you attempt it on Kekkei.
How many marks is the Master in Data Science (SMS, TU) Data Structures and Algorithms 2082 paper?
The Master in Data Science (SMS, TU) Data Structures and Algorithms 2082 paper carries 45 full marks and is meant to be completed in 120 minutes, across 10 questions.
Is practising this Data Structures and Algorithms past paper free?
Yes — reading and attempting this Data Structures and Algorithms past paper on Kekkei is completely free.