BIT201 Data Structure and Algorithms

Data Structure and Algorithms TU Board 2080 question paper

12 questionsSit this paper (timed)

Tribhuvan University

Bachelor of Information Technology

Semester 3 · TU Board 2080

Course Title: Data Structure and Algorithms (BIT201)

Full Marks: 60Pass Marks: 24Time: 3 hours

Candidates are required to give their answers in their own words as far as practicable.

Group A

Attempt any Two questions.(2 × 10 = 20)

  1. 1.

    What is stack? Explain different stack operations. Explain algorithm to evaluate postfix expression.

    10
  2. 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?

    10
  3. 3.

    Discuss the limitation of choosing 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.

    10

Group B

Attempt any Eight questions(8 × 5 = 40)

  1. 4.

    Define data type and ADT. What are the benefits of using ADT? Explain

    5
  2. 5.

    What is space complexity? Explain omega notation with example.

    5
  3. 6.

    What is circular queue? How can you implement circular queue?

    5
  4. 7.

    Define recursion. Explain Tower of Hanoi (TOH) with example.

    5
  5. 8.

    How can we use linked list to implement queue? Explain.

    5
  6. 9.

    What are different applications of binary tree? Explain.

    5
  7. 10.

    Why do we need hashing? Explain quadratic probing.

    5
  8. 11.

    Define spanning tree. Explain minimum spanning tree with example.

    5
  9. 12.

    Write short notes on: a. Doubly circular linked list b. Breadth first search

    5

— The End —