Exam 9: Searching and Hashing Algorithms

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

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)

Linear probing causes clustering that is called ____.

(Multiple Choice)
5.0/5
(43)

To implement hashing, we use four arrays.

(True/False)
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 ____ is an item's location in the array.

(Multiple Choice)
5.0/5
(37)

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
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)