dsa 23
dsa 23
II) Write algorithm to delete from circular queue and mention the advantage of circular queue over simple
queue?
III) What is linked list? States the advantages of linked list over array. Also list various types of the linked
list.
III) How are graphs represented inside a computer’s memory? Which method do you prefer and why?
SECTION - 2
Q 4 Answer the following in Detail (Any 2) [6]
I) Explain properties of red – black trees.
II) Write a short note on greedy algorithms.
II) Sort the list: 415, 213, 700, 515, 712, 615 using merge sort algorithm and also explain the time
complexity of merge sort algorithm.
II) What is hashing? What are the qualities of a good hash function? Explain any two hash functions in detail.