Pre-Board examination question paper set for Data Structures and Algorithms from the year 2082.
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. Differentiate between stack and queue. What are the general applications of a stack?
3. What do you mean by a linked list? How doubly linked list is different with circular linked list? Explain with example.
4. What do you mean by a recursion? Write a procedure to solve Tower of Hanoi problem.
5. What do you mean by Hashing? Insert keys {89, 18, 49, 58, 69} into a hash table with hash function h(x)=xpmod10h(x) = x \\pmod{10}h(x)=xpmod10, using Quadratic probing.
6. How does AVL tree differ from BST? Construct an AVL tree from the following data {63, 9, 19, 27, 18, 108, 99, 81}.
7. What do you mean by a Minimum Spanning Tree? Explain Kruskal's algorithm to construct minimum spanning tree with an example.
8. What do you mean by Divide and Conquer Algorithm? Trace the quick sort algorithm to sort the data: A = {5, 3, 2, 6, 4, 1, 3, 7}.
Group C
9. What do you mean by a Deterministic and Non deterministic Algorithm? Explain about Greedy Algorithm.
10. Define stack. Write an algorithm to convert infix to postfix expression using stack. Trace out Infix to postfix conversion algorithm with given Infix expression (A+B∗CD)/((E+F−G)∗H)wedgeI/J(A+B*C^D) / ((E+F-G)*H) \\wedge I / J(A+B∗CD)/((E+F−G)∗H)wedgeI/J.
11. Explain Dijkstra's shortest path algorithm. Use Dijkstra's algorithm to find the shortest distance and path from the vertex a to all remaining vertices in the weighted graph.