Practice Problems on Hashing
Quiz
•
Computers
•
University
•
Practice Problem
•
Easy
Mohamed Ibrahim
Used 11+ times
FREE Resource
Enhance your content in a minute
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Insertion of keys into hash table using linear probing as collision resolution technique – In linear probing technique, collision is resolved by searching linearly in the hash table until an empty location is found.
The keys 12, 18, 13, 2, 3, 23, 5 and 15 are inserted into an initially empty hash table of length 10 using open addressing with hash function h(k) = k mod 10 and linear probing. What is the resultant hash table?
2.
OPEN ENDED QUESTION
3 mins • Ungraded
What is the complexity of finding order information, such as max, min or range from a hash table?
Evaluate responses using AI:
OFF
3.
OPEN ENDED QUESTION
5 mins • Ungraded
Given the input {4371, 1323, 6173, 4199, 4344, 9679, 1989}, a fixed table size of 10, and a hash function H(X) = X mod 10, show the resulting
a. Linear probing hash table
b. Quadratic probing hash table
c. Separate chaining hash table
Evaluate responses using AI:
OFF
4.
OPEN ENDED QUESTION
3 mins • Ungraded
Explain how deletion is performed in both probing and separatechaining hash tables.
Evaluate responses using AI:
OFF
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the appropriate probing table size if the number of items inthe hash table is 10? Assume 0.7 load factor.
10
15
20
25
6.
OPEN ENDED QUESTION
3 mins • Ungraded
A hash table needs to be resized if load factor of a table exceeds 0.7. What are the important things to do when resizing a hash table?
Evaluate responses using AI:
OFF
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
In this type of questions, hash values are computed by applying given hash function on given keys.
Given the following input (4322, 1334, 1471, 9679, 1989, 6171, 6173, 4199) and the hash function x mod 10, which of the following statements are true? (GATE CS 2004)
i. 9679, 1989, 4199 hash to the same value
ii. 1471, 6171 hash to the same value
iii. All elements hash to the same value
iv. Each element hashes to a different value
i only
ii only
i and ii only
iii or iv
Similar Resources on Wayground
10 questions
Grade 8 Quiz
Quiz
•
8th Grade - University
10 questions
Pop Quiz 3 (DFC40243)
Quiz
•
University
10 questions
PSBD Judul 2
Quiz
•
University
10 questions
Veri Tabanı Yönetim Sistemleri II Quiz 1
Quiz
•
University
10 questions
5.References and Citations Dalam Microsoft Word
Quiz
•
University
10 questions
Module 5 & Module 6
Quiz
•
University - Professi...
12 questions
Web Apps 03 - MongoDB
Quiz
•
University
10 questions
html тегтеріне тапсырма
Quiz
•
University
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
7 questions
Transition Words and Phrases
Interactive video
•
4th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
34 questions
Unit 5 Review - The Middle Ages in Europe-B
Quiz
•
9th Grade - University
26 questions
Day2 classwork: Permutation and combination
Quiz
•
2nd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
