CACS201 Data Structures And Algorithms

Data Structures And Algorithms TU Board 2020 question paper

10 questionsSit this paper (timed)

Tribhuvan University

Bachelor of Computer Application

Semester 3 · TU Board 2020

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 different operations to be performed on data structure.

    5
  2. 3.

    Define Greedy Algorithm and heuristic algorithm. Briefly explain Big-Oh Notation.

    5
  3. 4.

    What is circular queue? Write an algorithm to insert an item in circular queue.

    5
  4. 5.

    How does AVL tree differ from BST? Construct an AVL tree from following data: 35, 56, 68, 65, 44, 41, 31, 49, 20.

    5
  5. 6.

    What is B-tree? Create a B-Tree of order 4 using following data: 6, 4, 22, 10, 2, 14, 3, 8, 11, 13, 5, 9.

    5
  6. 7.

    What is binary search? Write an algorithm to search an item using binary search.

    5
  7. 8.

    What is graph? Explain Kruskal's algorithm to construct minimum spanning tree with example.

    5

Group C

Attempt any TWO questions(2 × 10 = 20)

  1. 9.

    Define stack. List the applications of stack. Trace the algorithm to convert infix to postfix with following infix expression: ((A + B) - C * D/E)*(H-I)*F+G and evaluate the obtained postfix expression with following values: A = 4, B = 2, C = 4, D = 3, E = 8, F = 2, G = 3, H = 5, I = 1.

    10
  2. 10.

    What is double linked list? How does it differ from circular linked list? Write an algorithm or function to add a node at the beginning and end of double linked list.

    10
  3. 11.

    What is heap? Differentiate between min heap and max heap. Sort the following data in ascending order by heap sort method: 2, 9, 3, 12, 15, 8, 11.

    10

— The End —