Mid-Term examination question paper set for Data Structures and Algorithms from the year 2081.
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 do you understand by data structure and algorithm? Explain Abstract Datatype.
3. Explain asymptotic notations of an algorithm.
4. Evaluate the infix expression A+(((B−C)∗(D−E)+F)/G)∗(H−I)A + (((B-C) * (D-E) + F)/G) * (H-I)A+(((B−C)∗(D−E)+F)/G)∗(H−I) using stack for values A=8,B=4,C=6,D=5,E=10,F=4,G=5,H=7,I=3A = 8, B = 4, C = 6, D = 5, E = 10, F = 4, G = 5, H = 7, I = 3A=8,B=4,C=6,D=5,E=10,F=4,G=5,H=7,I=3.
5. What is stack? Write an algorithm or procedure and C function to perform PUSH operation in stack.
6. Explain different types of queue.
7. Define Recursion. Write a program to find the solution of TOH problem.
8. What are the different types of linked list? List out the applications of Linked lists.
Group C
9. What is Prefix expression? Write an algorithm to convert infix into prefix expression. Trace the following expression into prefix expression. (A+B∗C)+(D−E/F)(A+B*C)+(D-E/F)(A+B∗C)+(D−E/F)
10. Define Queue. List the applications of queue. Write an algorithm to insert and delete an item in Queue using Linked list.
11. What is circular singly linked list? How does it differ from circular doubly linked list? Write an algorithm or function to add a node at the beginning and end of circular singly linked list.