Suppose you have the following letter's integer value table: A 1 N 14 ii) B 2 0 15 iii) C 3 P D 4 Q 16 17 E 5 R 18 F 6 S 19 G 7 T 20 H 8 U 21 22 23 24 I 9 V J K 10 11 W X L Use separate chaining of 5 slots, using the hash function h(x) = i % 5 MINE М 13 Draw the hash table for each of the following, by using the first 10 distinct letters in your name (you may use your triple name), i.e. if you have similar letters then choose the next one until you have 10 different letters. i) 12 Y Z 25 26 where x represents the letter and i represents the corresponding integer value of that letter from the table above. For example, if you have the letter T in your name, then h(T) = 20% 5 = 0 Use linear probing for a table of 16 slots and hash function, h(x)= i% 16 Use quadratic probing for a table of 16 slots and hash function, h(x)= i % 16. For this step use 6 distinct letters from your name chosen in the same way instead of 10. Aside: Quadratic Probing Quadratic probe sequences cause probes to move away from clusters, by making increasing larger jumps. The ith probe is h(k,i)=(h(k)+1²) mod m. Quadratic Probing is similar to Linear probing. The difference is that if you were to try to insert into a space that is filled you would first check 12 = 1 element away then 2²=4 elements away, then 3²-9 elements away then 4²=16 elements away and so on. For example consider what would happen in the following situation:

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

My name : MohamedHusseinQa

Suppose you have the following letter's integer value table:
A
B
C
D
F
G
H
I
J
K
M
1
2
3
4
5
6
7
8
9
10
11
12
13
N
O
P
Q
R
S
T
U
V
W X
Y
Z
14
15
16
17 18
19
20
21 22 23 24
25
26
Draw the hash table for each of the following, by using the first 10 distinct letters in your
name (you may use your triple name), i.e. if you have similar letters then choose the next
one until you have 10 different letters.
i)
Use separate chaining of 5 slots, using the hash function
h(x) = i % 5
where x represents the letter and i represents the corresponding integer value of
that letter from the table above.
For example, if you have the letter T in your name, then
h(T) = 20 % 5 = 0
ii)
Use linear probing for a table of 16 slots and hash function, h(x)= i% 16
iii)
Use quadratic probing for a table of 16 slots and hash function, h(x)= i % 16.
For this step use 6 distinct letters from your name chosen in the same way
instead of 10.
Aside: Quadratic Probing
Quadratic probe sequences cause probes to move away from clusters, by making
increasing larger jumps. The ith probe is
h(k,i)=(h(k)+1²) mod m.
Quadratic Probing is similar to Linear probing. The difference is that if you were to try to
insert into a space that is filled you would first check 12 = 1 element away then 2² = 4
elements away, then 3²-9 elements away then 4²=16 elements away and so on. For example
consider what would happen in the following situation:
L
Transcribed Image Text:Suppose you have the following letter's integer value table: A B C D F G H I J K M 1 2 3 4 5 6 7 8 9 10 11 12 13 N O P Q R S T U V W X Y Z 14 15 16 17 18 19 20 21 22 23 24 25 26 Draw the hash table for each of the following, by using the first 10 distinct letters in your name (you may use your triple name), i.e. if you have similar letters then choose the next one until you have 10 different letters. i) Use separate chaining of 5 slots, using the hash function h(x) = i % 5 where x represents the letter and i represents the corresponding integer value of that letter from the table above. For example, if you have the letter T in your name, then h(T) = 20 % 5 = 0 ii) Use linear probing for a table of 16 slots and hash function, h(x)= i% 16 iii) Use quadratic probing for a table of 16 slots and hash function, h(x)= i % 16. For this step use 6 distinct letters from your name chosen in the same way instead of 10. Aside: Quadratic Probing Quadratic probe sequences cause probes to move away from clusters, by making increasing larger jumps. The ith probe is h(k,i)=(h(k)+1²) mod m. Quadratic Probing is similar to Linear probing. The difference is that if you were to try to insert into a space that is filled you would first check 12 = 1 element away then 2² = 4 elements away, then 3²-9 elements away then 4²=16 elements away and so on. For example consider what would happen in the following situation: L
Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY