Data Structures and Algorithms 2080

Question Paper Details
Tribhuwan University
Institute of Science and Technology
2080
Bachelor Level / Third Semester / Science
Information Technology ( BIT201 )
( Data Structures and Algorithms )
Full Marks: 60
Pass Marks: 24
Time: 3 hours hours

Section A
Long Answer Questions
Attempt any TWO questions. [2 × 10 = 20]

Official Answer
AI Generated Answer

AI is thinking...

1. What is a stack? Explain different stack operations. Explain algorithm to evaluate postfix expression. [1+4+5]

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

2. Explain almost complete binary tree with example. How do you insert, search, and delete nodes in a binary search tree? Explain with suitable example. [3+7]

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

3. Discuss the limitation of choosing the first element as pivot in quick sort. Using merge sort algorithm, sort the numbers 40, 6, 5, 21, 3, 100, 90, 7, 8, 12, 30. [4+6]

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

Section B
Short Answer Questions
Attempt any EIGHT questions. [8 × 5 = 40]

Official Answer
AI Generated Answer

AI is thinking...

4. Define data type and ADT. What are the benefits of using ADT? Explain. [2+3]

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

5. What is space complexity? Explain omega notation with example. [1.5+3.5]

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

6. Define recursion. Explain Tower of Hanoi (TOH) with example. [1.5+3.5]

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

7. How can we use linked list to implement queue? Explain. [5]

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

8. What are different applications of binary tree? Explain. [5]

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

9. Why do we need hashing? Explain quadratic probing. [2+3]

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

10. Define spanning tree. Explain minimum spanning tree with example. [1.5+3.5]

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

11. Write short notes on: [2 × 2.5 = 5]
(a) Doubly circular linked list
(b) Breadth first search

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...