1.10 A hash table is created to store integer keys using a hash function h(k) = k mod 19. The current state of the hash table is shown below. All keys were inserted without any collisions. INDEX KEY b D В 4 5 6 B 9 10 [1 2 13 4 15 16 7 18 22 62 19 67 30 71 15 $4 HAS_BEEN USED F F F T T T F F F T T T F F T T T F At what position will the key 29 be stored in the hash table using h(k) above if linear probing is used to resolve collisions? (a) 6 (b) 10 (c) 12 (d) 17 (e) none of these answers

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter17: Linked Lists
Section: Chapter Questions
Problem 3SA
icon
Related questions
Question
1.10 A hash table is created to store integer keys using a hash function h(k) = k mod 19. The current state of
the hash table is shown below. All keys were inserted without any collisions.
INDEX
KEY
b
D В
4
5
6
B
9 10
[1 2
13 4 15 16
7
18
22
62
19
67 30
71
15 $4
HAS_BEEN USED F F
F
T
T
T F
F
F
T
T T F
F
T
T
T
F
At what position will the key 29 be stored in the hash table using h(k) above if linear probing is used to
resolve collisions?
(a) 6
(b) 10
(c) 12
(d) 17
(e) none of these answers
Transcribed Image Text:1.10 A hash table is created to store integer keys using a hash function h(k) = k mod 19. The current state of the hash table is shown below. All keys were inserted without any collisions. INDEX KEY b D В 4 5 6 B 9 10 [1 2 13 4 15 16 7 18 22 62 19 67 30 71 15 $4 HAS_BEEN USED F F F T T T F F F T T T F F T T T F At what position will the key 29 be stored in the hash table using h(k) above if linear probing is used to resolve collisions? (a) 6 (b) 10 (c) 12 (d) 17 (e) none of these answers
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning