Mid-Term 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 its types with its importance.
3. Write an algorithm to convert infix expression to postfix expression.
4. What is circular queue? Write an algorithm to insert an item in circular queue.
5. What is AVL tree? Construct AVL tree of 50, 40, 35, 58, 48, 42, 60, 30, 33, 32.
6. Convert the following expression from infix to postfix using stack: (A+B)∗(C+(D−E)+F)/G)+(H−J)(A + B) * (C + (D - E) + F) / G) + (H - J)(A+B)∗(C+(D−E)+F)/G)+(H−J).
7. Create Huffman Tree and calculate Huffman code for the following characters along with their frequencies: A: 10, E: 15, I: 12, O: 3, U: 4, S: 13, T: 1.
Group C
8. What is double linked list? Write an algorithm to add a node at the beginning and end of double linked list.
9. Introduce tree terminologies. Write algorithms to traverse binary tree using pre-order, post-order, and in-order traversal methods. Create B-Tree of order 5 using the following data: 6,4,22,10,2,14,3,8,11,13,5,9.
10. What is stack? List the applications of stack. Write an algorithm to perform PUSH and POP operation.
11. What do you mean by MST? Explain kruskal algorithm with example.