Bsc Csit Nepal

2069

Data Structures and Algorithms

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

Attempt any two questions: (2 x 10 = 20)

  1. Define Queue as ADT. Describe its primitive operation on array implementation and linked list implementation.
  2. Describe the significance of Huffman tree. Describe procedure for construction of a Huffman tree. Illustrate it with example. Describe different types of applications of Binary trees.
  3. Explain the algorithms for infix to postfix conversion and evaluation of postfix expression. Trace the algorithms with suitable example.

Attempt any eight questions: (8 x 5 = 40)

  1. State TOH problem. Write recursion tree when no. of disks are four.
  2. Write about applications of Binary trees.
  3. Compare partition strategies of Merge sort and Quick sort.
  4. Explain Bubble sort algorithm. Illustrate it with an example.
  5. How do you insert a nodes at last in doubly linked list? Explain.
  6. Describe recursive procedure of Binary searching technique? Discuss about efficiency of Binary searching.
  7. What are Hashing and collision? Write about any three hashing algorithms.
  8. What is Big ‘O’ notation? Analyze any one sorting algorithm.
  9. Describe strong and weekly connected graphs with examples. What is weighted graph?
  10. State relative merits & demerits of contiguous list and linked list.