Bsc CSIT Semester 3 – Data Structure and Algorithms – Unit 7: Searching and Hashing (6 Hrs.)
Comprehensive questions and detailed answers for Unit 7: Searching and Hashing (6 Hrs.). Perfect for exam preparation and concept clarity.
Define hash table and hash function. What is collision in hashing? Explain linear probing and quadratic probing with suitable example.
Explain binary search with an example. What is the time complexity of binary search?
What is hashing? how do you apply linear probing and rehashing explain with example.
Write a program to implement binary search.
Assume you have to store the data {0,1,2,4,5,7} into a hash table of size 5, with hash function, h(x)=x%5. Apply linear probing and double hashing as collision resolution techniques.
Write a program to implement sequential search algorithm.
What is hashing? Explain concept of hash table and hash function with example.
Sample Questions
Explain binary search with an example. What is the time complexity of binary search?
What is hashing? how do you apply linear probing and rehashing explain with example.
Write a program to implement binary search.
Assume you have to store the data {0,1,2,4,5,7} into a hash table of size 5, with hash function, h(x)=x%5. Apply linear probing and double hashing as collision resolution techniques.
And more questions available on this page.