Single Choice Easy

QWhich of the following is an example of a perfect hash function?

ID: #5692 Hash Tables 217 views
Question Info
#5692Q ID
EasyDifficulty
Hash TablesTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A A function that maps every key to the same index in the table.
  • B A function that maps every key to a unique index in the table.
  • C A function that maps every key to a random index in the table.
  • D A function that maps every key to an index based on its length.
Correct Answer

Explanation

A function that maps every key to a unique index in the table.

Share This Question

Challenge a friend or share with your study group.