Exam 9: Searching and Hashing Algorithms
Exam 1: Software Engineering Principles and C++ Classes42 Questions
Exam 2: Object-Oriented Design OOD and C++35 Questions
Exam 3: Pointers and Array-Based Lists45 Questions
Exam 4: Standard Template Library (STL) I47 Questions
Exam 5: Linked Lists44 Questions
Exam 6: Recursion36 Questions
Exam 7: Stacks44 Questions
Exam 8: Queues48 Questions
Exam 9: Searching and Hashing Algorithms49 Questions
Exam 10: Sorting Algorithms47 Questions
Exam 11: Binary Trees and B-Trees47 Questions
Exam 12: Graphs43 Questions
Exam 13: Standard Template Library (STL) II50 Questions
Select questions type
Quadratic probing reduces primary clustering and probes all the positions in the table.
(True/False)
4.8/5
(40)
If you have 1000 items, each requiring 1 word of storage, chaining requires a total of 4000 words of storage.
(True/False)
4.8/5
(37)
The number of key comparisons in a sequential search depends on the value of the search item.
(True/False)
4.8/5
(44)
Linear probing that uses the increment value as a function of the key is called ____.
(Multiple Choice)
4.7/5
(39)
In double hashing, if a collision occurs at h(X), the probe sequence is generated by using the rule: ____
(Multiple Choice)
4.7/5
(33)
In the ____ method, if a collision occurs with the hash function h, we use a series of hash functions, h1, h2, . . ., hs.
(Multiple Choice)
4.8/5
(36)
The same probe sequence is used for two nonidentical keys because random probing and quadratic probing are functions of the original key.
(True/False)
4.9/5
(38)
If two nonidentical keys are hashed to the same home position then the same probe sequence is followed for both keys.
(True/False)
4.7/5
(36)
In the analysis of an algorithm, the key comparisons refer to comparing the key of the search item with the position of an item in the list.
(True/False)
4.9/5
(34)
If the search item is the last element in the list, the algorithm makes ____ comparison(s).
(Multiple Choice)
4.9/5
(34)
When an item is deleted from the hash table indexStatusList at position, say k, we set indexStatusList[k] to ____.
(Multiple Choice)
4.8/5
(38)
Both random and quadratic probings eliminate primary clustering.
(True/False)
4.9/5
(33)
If the hash function causes a cluster at a particular home position and the cluster remains under these probings, it is called ____.
(Multiple Choice)
4.9/5
(40)
The best and worst cases are likely to occur most of the time that we apply the sequential search on a list.
(True/False)
4.8/5
(41)
____ is when more and more new keys would likely be hashed to the array slots that are already occupied.
(Multiple Choice)
5.0/5
(40)
The ____ method uses a random number generator to find the next available slot.
(Multiple Choice)
4.9/5
(26)
The most important operation performed on a list is the ____.
(Multiple Choice)
4.8/5
(28)
Showing 21 - 40 of 49
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)