Data Structures(3)
Data Structures(3)
PART-B
Answer All five Units 05 x 10 = 50 Marks
UNIT-I
2. Define Queue and its operations implementation using arrays with a example 10 M
program using C?
OR
3. Convert the infix expression a / b – c + d * e – a * c into postfix expression and 10 M
trace that postfix expression for given data a = 6, b = 3, c = 1, d = 2, e =4.
UNIT-II
4. Explain about Singly linked list and its operations implementation with a C 10 M
program.
OR
5. Define Stack and its operations implementation using pointers with a example 10 M
program using C.
UNIT-III
6. a) Illustrate with examples how memory issues can be resolved by collision handling 5M
schemes.
b) Explain about sorting and its types and sort the given elements using Insertion 5M
sort 77,33,44,11,88,22,66,55.
OR
7. a) Illustrate Quick Sort with implementation Program. 6M
b) Explain about sorting and its types and sort the given elements using Quick sort 4M
77,33,44,11,88,22,66,55.
Page 1 of 2
Code: CS23APC201 R 23
UNIT-IV
8. What is Binary Tree? Implement various operations on Binary Tree with neat 10 M
example.
OR
9. a) Construct AVL Tree for the following elements and also explain the rotations of 5M
the AVL tree.
8,18,5,15,17,25,40,80
b) Construct a Max-Heap tree from the following elements: 5M
15,17,6,19,11,10,13,20,8,4,12
UNIT-V
10. Describe Graph Traversals and Perform BFS for the following graph: 10 M
OR
11. a) Explain about the Kruskal’s algorithm with a neat example. 5M
b) Explain about the Adjacency Matrix and design an adjacency matrix from the 5M
following graph.
*****
Page 2 of 2