Ds 1
Ds 1
ALGORITHMS
MC 4101 - ADVANCED DATA STRUCTURES AND
(Regulations 2021)
Time:Three hours
Maximum: 100 marks
Or
and max
(b) Explain Heap data structure and also explain about min heap
(13)
heap with one example of heap construction.
13. (a) Difference between BFS and DFS graph traversal algorithms. Consider a
traversals. (13)
tree of minimum height of 4, and do BFSand DFS
Or
kruskal
(b) What is MST? Explain few major differences between prim and
MST. (13)
14. (a) Explain matrix chain multiplication algorithm with an example. (13)
Or
(b) Explain with an example of Huffman coding technique. List few
applications of Huffman coding. (13)
(b) Define P, NP, NP-Hard, NP-Complete and explain relations among these.
(13)