edited by
4,333 views
2 votes
2 votes

Suppose you have  the following set of keys to insert into a hash table that can hold $11$ values. $113, 117, 97, 100, 114, 108, 116, 105, 99$. Which of the following best demonstrates the contents of the hash  table after all the keys have been inserted using linear probing?

  1. $100$, _____, _____ , $113, 114, 105, 116, 117, 97, 108, 99$
  2. $99, 100$, ___, $113, 114$, ___, $116, 117, 105, 97, 108$
  3. $100, 113, 117, 97, 14, 108, 116, 105, 99$, ___, ___
  4. $117, 114, 108, 116, 105, 99$, ___, ___, $97, 100, 113$
edited by

1 Answer

Best answer
0 votes
0 votes
Using modulo 11 arithmetic and linear probing gives these values 99, 100, __, 113, 114, __, 116, 117, 105, 97, 108
selected by
Answer:

Related questions

0 votes
0 votes
1 answer
2
Bikram asked Nov 26, 2016
1,663 views
Three algorithms do the same task. Algorithm One is $O(N)$ and Algorithm Two is $O(\log N)$ and Algorithm Three is $O(N1/2)$. Which algorithm should execute the fastest f...
1 votes
1 votes
3 answers
3
0 votes
0 votes
0 answers
4