My Report (&Account)

Graph Data Structure Test – 1


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)

1. Which hash function satisfies the condition of simple uniform hashing?

2. What is the advantage of the multiplication method?

3. Using division method, in a given hash table of size 157, the key of value 172 be placed at position ____

4. Which scheme uses a randomization approach?

5. What is the value of h(k) for the key 123456?
Given: p=14, s=2654435769, w=32

6. Collisions can be reduced by choosing a hash function randomly in a way that is independent of the keys that are actually to be stored.

7. How many steps are involved in creating a hash function using a multiplication method?

8. What is the average retrieval time when n keys hash to the same slot?

9. What is the hash function used in multiplication method?

10. A good hash approach is to derive the hash value that is expected to be dependent of any patterns that might exist in the data.


 

Start practicing “1000 MCQs on Data Structure”, and once you are ready, you can take tests on all topics by attempting our “Data Structure Test Series”.

advertisement
advertisement
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.