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

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. Write an algorithm to enqueue and dequeue element in circular queue.

3. What is Recursion? Explain concept of recursion with the help of program that calculates factorial of any given number.

4. Why is linked list better than list? Write an algorithm or piece of code to insert an element in end of a doubly linked list.

5. What do you mean by left and right rotation of a tree? Insert the given elements in an empty AVL tree by showing each step: 5,7,8,2,10,6,12,1.

6. What is deterministic and non-deterministic algorithm? Explain Divide and Conquer algorithm with an example.

7. Perform Radix sort on the given data array. ARRAY[101,81,12,51,92,11,15,12,52,66].

8. Use Max Heap to sort the following data using heap sort: 1,15,25,5, 10, 3, 10, 2, 6, 9, 11.

Group C

9. Write an algorithm for Binary Search. Perform linear and double hashing on following keys to resolve collision: 19, 18, 49, 28, 29, 25, and 10 with hash table size of 10.

10. Write and algorithm to convert infix to postfix expression. Convert the given infix expression to prefix using stack. [a+b-(c*d)/e-f^g]

11. What is a Graph? Define Minimum Spanning tree, state and explain an algorithm to find shortest path from point A to F.