Question: 16
(Choose 1 answer)
What is the purpose of a hash function in hash tables?
A. To generate a unique identifier for each element.
B. To determine the size of the hash table.
C. To calculate the average time complexity.
D. To handle collisions.
E. To create collisions.
F. To avoid collisions.