Pre-Board examination question paper set for Data Structures and Algorithms from the year 2025.

Tribhuvan University
Faculty of Humanities & Social Sciences
OFFICE OF THE DEAN
2025
Bachelor in Computer Applications

Paper detail Value
Course Data Structures and Algorithms
Code No. CACS201
Semester IIIrd
Full marks 60
Pass marks 24
Time 3 hours

Candidates are required to answer the questions in their own words as far as possible.

Group B

2. What is Data Structure? Explain asymptotic notations with example.

3. What is stack? Write an algorithm to perform PUSH and POP operation in stack.

4. Describe Prim's algorithm to solve MST problem with suitable illustration.

5. Write are the limitation of linear queue? How circular queue can used to overcome the limitation of linear queue. Describe enqueue and dequeue operation in circular queue.

6. What is divide and conquer algorithm? Explain collision resolution techniques with suitable example.

7. Describe radix sort algorithm with example.

8. Create Huffman Tree and calculate Huffman code for the following characters along with their frequencies using Huffman algorithm.

Group C

9. A binary tree T has 9 nodes. The inorder and preorder traversals of T yield the following sequence of nodes: In-order: E A C K F H D B G; Pre-order: F A E K C D H G B. Draw the tree T.

10. What is linked list? Describe types of linked list. Write an algorithm to insert and delete node in following position of doubly linked list: at the beginning of doubly linked list; at the end of doubly linked list; at the specified position of doubly linked list.

11. Define min heap and max heap. Explain heap sort algorithm and trace it to sort the data: 25 67 56 32 12 96 82 44.

12. Differentiate between BST and AVL tree. Construct AVL Tree from following sequence: 14, 17, 11, 7, 53, 4, 13, 12, 8, 60, 19, 16, 20.