Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 5 subjective questions Heaps and Hashing

CSE205 — Data Structures And Algorithms 20 questions with model answers. Write yours first, then compare.

Read the notes Practice MCQs
  1. Question 1 of 20

    Define a heap. Explain the structural and ordering properties of min-heaps and max-heaps.

  2. Question 2 of 20

    Explain how a binary heap is represented using an array. Illustrate the representation with an example.

  3. Question 3 of 20

    Describe the insertion operation in a max-heap. Show how the element is inserted into the heap .

  4. Question 4 of 20

    Explain deletion of the root element from a max-heap. Demonstrate the operation on the heap .

  5. Question 5 of 20

    Describe the bottom-up method of building a heap and derive its time complexity.

  6. Question 6 of 20

    Explain the heap sort algorithm with its major phases and analyze its time and space complexities.

  7. Question 7 of 20

    Apply heap sort to the array and show the important intermediate steps.

  8. Question 8 of 20

    Define hashing, hash function, hash table, and collision. Explain why hashing is useful.

  9. Question 9 of 20

    What characteristics should a good hash function possess? Explain common methods used to construct hash functions.

  10. Question 10 of 20

    Explain the division method of hashing. Why is a prime table size generally preferred?

  11. Question 11 of 20

    Define load factor in hashing. Discuss its effect on the performance of separate chaining and open addressing.

  12. Question 12 of 20

    Explain open hashing and separate chaining. Describe insertion, search, and deletion using this collision-resolution method.

  13. Question 13 of 20

    Distinguish between separate chaining and open addressing as collision-resolution techniques.

  14. Question 14 of 20

    Explain closed hashing or open addressing. How are insertion, search, and deletion performed?

  15. Question 15 of 20

    Describe linear probing with an example. What is primary clustering?

  16. Question 16 of 20

    Explain quadratic probing. How does it reduce clustering, and what limitations does it have?

  17. Question 17 of 20

    Explain double hashing and state the conditions required for a good secondary hash function.

  18. Question 18 of 20

    Compare linear probing, quadratic probing, and double hashing.

  19. Question 19 of 20

    Why is deletion difficult in an open-addressed hash table? Explain the role of tombstones.

  20. Question 20 of 20

    Explain rehashing in hash tables. When is it required, and what steps are involved?

That's unit 5

Long answers stick best when they're tested again soon. Run the MCQs on this unit, then come back to the questions you found hardest.