CACS201 Data Structures And Algorithms

Data Structures And Algorithms TU Board 2021 question paper

10 questionsSit this paper (timed)

Tribhuvan University

Bachelor of Computer Application

Semester 3 · TU Board 2021

Course Title: Data Structures And Algorithms (CACS201)

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

Candidates are required to answer the question in their own words as far as possible.

Group B

Attempt any SIX question.(6 × 5 = 30)

  1. 2.

    What is data structure? Explain its importance.

    5
  2. 3.

    Write an algorithm to convert infix expression to postfix.

    5
  3. 4.

    Write a recursive program to generate Fibonacci number up to nth terms.

    5
  4. 5.

    What is insertion sort? Trace and sort the following data using insertion sort: 90, 57, 80, 10, 22, 21, 45, 9, 78

    5
  5. 6.

    What is hashing? Explain with example the collision resolution method open hashing.

    5
  6. 7.

    Write the difference between serial and parallel algorithm with example.

    5
  7. 8.

    Write a program to implement basic operation in queue.

    5

Group C

Attempt any TWO questions(2 × 10 = 20)

  1. 9.

    What is circular linked list? Write a function to delete the node from linked list.

    10
  2. 10.

    What do you mean by Huffman Algorithm? Explain with example. Construct the B tree of order 5 using following data: 20, 10, 26, 55, 80, 11, 9, 60, 67, 55, 22, 76, 56, 45, 34, 100, 150

    10
  3. 11.

    What do you mean by MST? Explain Kruskal's algorithm with example.

    10

— The End —