Data Structures and Algorithms 2078

Question Paper Details
Tribhuwan University
Institute of Science and Technology
2078
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.

Long Answer Questions.

Attempt any Two questions:    (2x10=20)

Official Answer
AI Generated Answer

AI is thinking...

1. Define queue. What are different applications of queue? Explain queue operations with example.    (1+2+7)

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

2. Explain circular linked list with example. How do you implement linked list operation in singly linked list? Explain.    (4+6)

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

3. What is binary search tree? Write a program to implement insertion and deletion algorithm in binary search tree?    (2+8)

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

Short  Answer Questions.

Attempt any Eight questions:    (8x5=40)

Official Answer
AI Generated Answer

AI is thinking...

4. How do you find complexity of algorithms? Explain.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

5. Evaluate the expression ABCD-x+ using stack where A=5, B=4, C=3 and D=7.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

6. What is priority queue? Why do we need this type of queue?

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

7. Write recursive program to find nth fibonacci number.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

8. Explain array implementation of lists.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

9. Hand test selection sort with array of numbers 4, 71, 32, 19, 61, 2, -5 in descending order.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

10. Write a program to implement sequential search algorithm.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

11. What is graph traversal? Explain.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

12. Write short notes on:    (2 x 2.5 = 5)

        a) Divide and conquer sorting

        b) AVL tree

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...