Csit Notes

Data Structure and Algorithms (CSC211) 2083 BS Past Questions & Solutions

Tribhuvan University (TU) 2083 BS board exam question paper with verified step-by-step solutions for BSc CSIT Third Semester.

  • CSC211
  • Core Course
  • 2 Exam Years

Tribhuvan University

Institute of Science and Technology

2083 B.S.

Bachelor Level:
B.Sc. CSIT
Semester:
Third Semester
Subject:
Data Structure and Algorithms (CSC211)
Full Marks:
60 / 80
Pass Marks:
24 / 32

Candidates are required to give their answers in their own words as far as practicable.

Group A

Long Answer Questions

Attempt any Two questions.

  1. Question 1
    Differentiate between singly, doubly and circular linked list. How do you insert a new element at the beginning, at the specified position and at the end of doubly linked list? Explain.
  2. Question 2
    Is bubble sort internal sort or external sort? Give reason. Apply Quick sort on the data set {12, 7, 9, 24, 8, 2, -8, 11, 4, 3, 14, 5, 6, -6} to keep them in ascending order.
  3. Question 3
    When does the binary search algorithm perform the worst case? Assume the size of hash table be 7 and the hash function as $h(k)=k\text{ MOD }7$ Now resolve the collisions using Linear probing, Quadratic probing and Double hashing while inserting the elements 17, 8, 24, 11, 15.

Group B

Short Answer Questions

Attempt any Eight questions.

  1. Question 4
    Differentiate between ADT and data structure. Why do we always do worst case analysis of an algorithm? Justify.
  2. Question 5
    Convert $X+Y\times Z-(A/B)$ to postfix, using stack.
  3. Question 6
    Assume a circular queue of size 5 and then enqueue 4, 9, 5 and then dequeue two elements and enqueue 11.
  4. Question 7
    When do we prefer tail recursion? Demonstrate a program to find the factorial value of given positive integer using tail recursion.
  5. Question 8
    How do you measure efficiency of a sorting algorithm? How do you create a node for circular linked list?
  6. Question 9
    What is the problem with binary search tree? List the primitive operations on queue.
  7. Question 10
    Create an AVL tree for the data {35, 15, 5, 20, 25}.
  8. Question 11
    Find the minimum spanning tree of following graph using Prims algorithm. [diagram/image to be added manually]
  9. Question 12
    Write the algorithm for merge sort.

All Data Structure and Algorithms past papers