Data Structures and Algorithms 2079

Question Paper Details
Tribhuwan University
Institute of Science and Technology
2079
Bachelor Level / Third Semester / Science
Computer Science and Information Technology ( CSC206 )
( Data Structures and Algorithms )
Full Marks: 60
Pass Marks: 24
Time: 3 hours
Candidates are required to give their answers in their own words as far as practicable.
The figures in the margin indicate full marks.

Section A

Official Answer
AI Generated Answer

AI is thinking...

Attempt ant Two questions:

Official Answer
AI Generated Answer

AI is thinking...

1. Why do we need to balance the binary search here? Justify with an example.Create an AVL tree from the data 24, 12, 8, 15, 35, 57, 40, 45, 78

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

2. How recursive algorithm use stack to store intermediate results? Illustrate with an example. Convert the infix expression A+B-(C*D/E+F)-G*H into postfix expression using stack.

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

3. How do you insert and delete a node at kth position of the doubly linked list? Describe the process of implementing stack and queue using linked list.

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

Section B

Official Answer
AI Generated Answer

AI is thinking...

Attempt any Eight questions:

Official Answer
AI Generated Answer

AI is thinking...

4. Sort the numbers 82, 73, 12, 39, 26, 88, 2, 9, 60 and 41 using shell sort.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

5. Why do we need asymptotic notation? Describe about Big oh notation with its curve.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

6. Define  a queue. Explain about enqueue and dequeue operation in circular queue.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

8. Find the MST of following graph using Prim's algorithm.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

7. Write a program to implement binary search.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...