Data Structures | Hash | Question 1
A hash table of length 10 uses open addressing with hash function h(k)=k mod 10, and linear probing. After inserting 6 values into an empty hash table, the table is as shown below.
Which one of the following choices gives a possible order in which the key values could have been inserted in the table?
(A) 46, 42, 34, 52, 23, 33
(B) 34, 42, 23, 52, 33, 46
(C) 46, 34, 42, 23, 52, 33
(D) 42, 46, 33, 23, 34, 52
Answer: (C)
Explanation: See question 2 of http://www.geeksforgeeks.org/data-structures-and-algorithms-set-24/
Quiz of this Question
Recommended Posts:
- Data Structures | Hash | Question 4
- Data Structures | Hash | Question 5
- Data Structures | Hash | Question 2
- Data Structures | Hash | Question 3
- Introduction to Data Structures | 10 most commonly used Data Structures
- Data Structures | Heap | Question 2
- Data Structures | Queue | Question 11
- Data Structures | Stack | Question 5
- Data Structures | Misc | Question 5
- Data Structures | Queue | Question 11
- Data Structures | Graph | Question 3
- Data Structures | Misc | Question 4
- Data Structures | Stack | Question 4
- Data Structures | Misc | Question 6
- Data Structures | Queue | Question 3



