Comprehensive Assignment Questions (2019-20) Subject Code:19MCA2202 Subject Title: Data Structures
Comprehensive Assignment Questions (2019-20) Subject Code:19MCA2202 Subject Title: Data Structures
2. a)Explain about single linked list and double linked list. Also discuss about advantages
and disadvantages of double linked list over single linked list.
b) Illustrate how two polynomials can be added and multiplied using linked list.
Develop C program to perform the following operations on two polynomials using
linked list. i) Addition ii)Multiplication 2, 36, 56
3. a)Differentiate single linked list, double linked list and circular linked list.
b)Explain the concept of sparse matrices in detail and write a C program to print
sparse matrix using linked list.
c) Develop a C program to sort the elements of single linked list using functions.
3, 34, 55
5. a) Discuss about single linked list in detail and write a C program to concatenate 2
linked lists.
b) Discuss about circular linked list. Also discuss about any two applications of
circular linked list. 5, 32, 52
11. a)Write about Priority Queues and write a C program to perform operations on
Priority Queues using arrays and linked lists.
b) Compare and contrast the efficiency of Quick sort and Merge Sort algorithms by
demonstrating with example. 11, 23, 46
13. a)Explain and demonstrate the following trees with examples in detail
i) AVL Tree ii)Red-Black Tree iii) Spanning Tree
b) Explain about properties and representations of binary tree. 13, 21, 44
14. a)Explain about Prim’s algorithm and write a C program to implement Prim’s
algorithm..
b)What is a B-Tree? What are the rules and reasons for using a B-Tree?Explain the
insertion and deletions operations of B-Tree. 14, 20, 43
15. a)Explain the concept of hashing and also various collision resolution techniques.
b)Discuss about various applications of graph. 15, 19, 42
16.a) Write a program to create binary tree using arrays. 6, 41, 59
b) Explain how Heap sort works by demonstrating with example.
17.a) What is an Expression Tree? Explain the construction of an expression tree with an
example.
b) What is a Priority Queue? Explain its operations by illustrating with example.
17, 40, 60
18. a)Explain about Kruskal’s algorithm and write a C program to implement Kruskal’s
algorithm.
b)Discuss about applications of Stacks. 18, 39, 61, 62