CSC211 Data Structures and Algorithms

Data Structures and Algorithms TU Board 2078 question paper

12 questionsSit this paper (timed)

Tribhuvan University

Bachelor of Science in Computer Science and Information Technology

Semester 3 · TU Board 2078

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.

Attempt any TWO Questions (2 x 10 = 20)(2 × 10 = 20)

  1. 1.

    Define Queue. Write are different applications of queue? Explain queue operations with example.

    10
  2. 2.

    Explain circular linked list with example. How do you implement linked list operation in singly linked list? Explain.

    10
  3. 3.

    What is binary search tree? Write a program to implement insertion and deletion algorithms in binary search tree.

    10
  4. 4.

    How do you find complexity of algorithms? Explain

    10
  5. 5.

    Evaluate the expression ABCD-x+ using stack where A=5, B=4, C=3 and D=7

    10
  6. 6.

    What is priority queue? Why do you need this type of queue?

    10
  7. 7.

    Write a recursive program to find nth fibonacci number.

    10
  8. 8.

    Explain array implementation of list.

    10
  9. 9.

    Hand test selection sort with array of numbers 4, 71, 32, 19, 61, 2, -5 in descending order.

    10
  10. 10.

    Write a program to implement sequential search algorithm.

    10
  11. 11.

    What is graph traversal? Explain.

    10
  12. 12.

    Write short notes on:

    1. Divide and Conquer sorting
    2. AVL Tree
    10

Attempt any EIGHT Questions (8 x 5 = 40)(8 × 5 = 40)

  1. 1.

    Define Queue. Write are different applications of queue? Explain queue operations with example.

    10
  2. 2.

    Explain circular linked list with example. How do you implement linked list operation in singly linked list? Explain.

    10
  3. 3.

    What is binary search tree? Write a program to implement insertion and deletion algorithms in binary search tree.

    10
  4. 4.

    How do you find complexity of algorithms? Explain

    10
  5. 5.

    Evaluate the expression ABCD-x+ using stack where A=5, B=4, C=3 and D=7

    10
  6. 6.

    What is priority queue? Why do you need this type of queue?

    10
  7. 7.

    Write a recursive program to find nth fibonacci number.

    10
  8. 8.

    Explain array implementation of list.

    10
  9. 9.

    Hand test selection sort with array of numbers 4, 71, 32, 19, 61, 2, -5 in descending order.

    10
  10. 10.

    Write a program to implement sequential search algorithm.

    10
  11. 11.

    What is graph traversal? Explain.

    10
  12. 12.

    Write short notes on:

    1. Divide and Conquer sorting
    2. AVL Tree
    10

— The End —