CSC211 Data Structures and Algorithms

Data Structures and Algorithms Model question question paper

12 questionsSit this paper (timed)

Tribhuvan University

Bachelor of Science in Computer Science and Information Technology

Semester 3 · Model question

Course Title: Data Structures and Algorithms (CSC211)

Full Marks: 60Pass Marks: 24Time: 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.

Group A

(2 × 10 = 20)

  1. 1.

    Define queue as ADT. Describe its primitive operation on circular array implementation and singly linked list implementation.

    10
  2. 2.

    Define Contiguous List as ADT. Write C program to implement the operation of Contiguous List.

    10
  3. 3.

    What do you mean by MST. Explain Kruskal Algorithm with example.

    10

Group B

(8 × 5 = 40)

  1. 4.

    State relative merits and demerits of contiguous list and linked list?

    5
  2. 5.

    What is Data Structure? Show the status of stack converting following infix expression to prefix

    A+(B*C-(D/E^F)*G) [Note ^ is the power]

    5
  3. 6.

    What is singly linked list? Write an algorithm to add a node at the beginning and end of singly linked list.

    5
  4. 7.

    What do you mean by breadth first search in graph? Explain with recursive tree.

    5
  5. 8.

    Write recursive algorithm to get Fibonacci term. Illustrate it drawing recursive tree.

    5
  6. 9.

    What is AVL tree? Draw the AVL tree when input is 1,2,3,4,5,6,7.

    5
  7. 10.

    State problem Tower of Hanoi. Explain the algorithm to solve problem.

    5
  8. 11.

    What is insertion sort? Trace and sort the following data using the insertion sorting algorithm.

    90, 56, 80, 10, 22, 21, 45, 9

    5
  9. 12.

    What is hashing? Explain the different types to resolute collision?

    5

— The End —