Which of the following statements about hash functions and hashing are TRUE?
GATE CSE · Algorithms
Master topic for Sorting. Includes Merge Sort, Quick Sort, Heap and Heap Sort.
187 questions · 0 PYQs · 7 AI practice · GATE CSE 2027
Which of the following statements about hash functions and hashing are TRUE?
Which of the following correctly states the space complexity of merge sort in the worst case for an array-based implementation?
Which of the following are TRUE about merge sort applied to external sorting (sorting data that does not fit in main memory)?
Which of the following are TRUE about quick sort?
In open addressing with linear probing, the probe sequence for key k in a hash table of size m is: h(k, i) = (h'(k) + i) mod m, where i = 0, 1, 2, ... What is the main disadvantage of linear probing?
A hash table of size m uses the division method: h(k) = k mod m. Which of the following values of m is most suitable to minimize collisions?
An array of elements is already sorted in ascending order. What is the time complexity of merge sort on this input?
Want unlimited AI-generated Sorting questions?
Sign up free and practice with adaptive difficulty — Easy, Medium, Hard. New questions every session.
Start practising for free →