Question 1
Function has allocated memory to keys
A function that computes the location of the key in the array
Function that creates an array
None of the mentioned
Good Job!
Oops!
In a hash table, there are fewer array positions than the keys, so the position of the key in the array is computed using the hash function.
Please login to submit your explanation
You can check your performance of this question after Login/Signup
Start
Question 2
Make the hash function appear random
Use the chaining method
Use uniform hashing
All of the mentioned
Making the hash function random is not really a good choice, although it is considered one of the techniques to avoid collisions along with chaining and simple uniform hashing.
Question 3
Distinct array position for every possible key
Fewer array positions than keys
Fewer keys than array positions
Direct addressing is possible only when we can afford to allocate an array that has one position for every possible key.
Question 4
A structure that maps values to keys
Structure that maps keys to values
A structure used for storage
Structure used to implement stack and queue
A hash table is used to implement associative arrays which has a key-value pair, so the hash table maps keys to values.
Question 5
Diffusion
Replication
Collision
By definition
Question 6
Making the hash function random is not really a good choice, although it is considered one of the techniques to avoid collisions along with chaining and simple uniform hashing. Chaining is the best
Question 7
O(n)
O(logn)
O(nlogn)
O(1)
Since every key has a unique array position, searching takes a constant time
Question 8
When more than one element are competing for the same bucket in the hash table, this condition is known as the Collision.
Question 9
Every element has equal probability of hashing into any of the slots
A weighted probabilistic method is used to hash elements into the slots
In simple uniform hashing, any given element is equally likely to hash into any of the slots available in the array.
Question 10
Average array size
Average key size
Average chain length
In simple chaining, the load factor is the average number of elements stored in a chain and is given by the ratio of a number of elements stored to the number of slots in the array.
Please login to report
Login/Signup
Personalized Analytics only Availble for Logged in users
Analytics below shows your performance in various Mocks on PrepInsta
Your average Analytics for this Quiz
Rank
-
Percentile
0%
Completed
0/0
Accuracy
June 6, 2020
Login/Signup to comment
Login/Signup to comment