BIT201 Data Structure and Algorithms

Data Structure and Algorithms TU Board 2078 question paper

12 questionsSit this paper (timed)

Tribhuvan University

Bachelor of Information Technology

Semester 3 · TU Board 2078

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.

    Explain algorithm to convert an infix expression to postfix using stack? Use this algorithm to convert (A+B)*C-D to postfix.

    10
  2. 2.

    Explain merge sort along with its time complexity. Use this algorithm to sort array of numbers given below: 25, 37, 48, 25, 23, 17, 31, 45, 7, 21, 15, 8, 11

    10
  3. 3.

    What is shortest path algorithm? Use Dijkstra's algorithm to find shortest path between the vertices of a and z in the graph given below. [figure in the original paper]

    10

Group B

Attempt any Eight questions(8 × 5 = 40)

  1. 4.

    What is data Structure? Explain an array as an abstract data type.

    5
  2. 5.

    Explain big oh(O) notation with suitable example.

    5
  3. 6.

    Define priority queue. How do you implement priority queue? Explain.

    5
  4. 7.

    Define recursion. Explain Tower of Hanoi algorithm in detail.

    5
  5. 8.

    How can you implement queue using linked list? Explain.

    5
  6. 9.

    What is binary tree? Explain different application of binary tree.

    5
  7. 10.

    Explain sequential search. How is it different from binary search?

    5
  8. 11.

    Define hashing. Explain quadratic probing with example.

    5
  9. 12.

    What is graph traversal? Explain breadth first search.

    5

— The End —