SKR Engineering College: Department of Computer Science & Engineering Model Question Paper CS 1151 - Data Structures
SKR Engineering College: Department of Computer Science & Engineering Model Question Paper CS 1151 - Data Structures
PART-A 2*10=20
PART-B 5*16=80
11.a(i) Write an algorithm to perform matrix multiplication and analyze the same. (6)
(ii) Explain the complete Merge sort algorithm. Sort the following set of numbers
Using Merge sort algorithm (10)
(OR)
(OR)
b(i) Trace the quick sort algorithm for the following list of numbers
86,55,75,32,58,89,90
(ii) Explain the preorder and post order traversal of a binary tree
(8)
(8)
14 a(i) Write an algorithm to find the shortest path between any two nodes in a
graph using Dijikstra’s algorithm
(10)
(ii) Define and explain Quick sort (6)
(OR)
b Write down the merge sort algorithm and give its worst case, best case and
Average case analysis (16)
(16)
(OR)
b(i) Write down the procedure to convert an infix expression a+b*c+(d*e+f)*g
(12)
(ii) Find the average search cost of the binary search algorithm
(4)
SKR Engineering College
Department Of Computer Science & Engineering
Model Question Paper
CS 1151 – Data Structures
PART-A 2*10=20
1. What is a graph?
2. What are the benefits of doubly linked list over singly linked list?
3. Define priority queue
4. How do you represent a graph in multi-list organization?
5. Write an algorithm for fibonacci series
6. What are the factor that is involved in radix sort?
7. Write the various types of control structures
8. Define complete binary tree
9. Explain Kruskal’s algorithm
10. What do you mean by Abstract Data Type?
PART-B 16*5=80
11 a(i) Write algorithm to locate an element from binary search tree (6)
(ii) Define an efficient representation of two STACKS in a given area of memory
with ‘n’ words and explain (10)
(OR)
b(i) What are the different tree traversals? Explain with examples (8)
(ii) Explain an algorithm to convert a hexadecimal to decimal representation
(8)
(OR)
(OR)
b(i) Explain how to modify Dijikstra’s algorithm to produce a count of the number of
different minimum paths from v to w (8)
(ii) Explain program verification with example (8)
(OR)
b(i) Given two sorted lists L1 and L2 write a procedure to compute L1 ∩ L2 using
Only the basic operations
(OR)