+1 vote
in Data Structures & Algorithms I by (88.2k points)
In a hash table of size 10, where is element 7 placed?

(a) 6

(b) 7

(c) 17

(d) 16

I'd like to ask this question from Hash Tables topic in division Hash Tables of Data Structures & Algorithms I

The question was posed to me in exam.

1 Answer

+1 vote
by (672k points)
selected by
 
Best answer
The correct option is (b) 7

Best explanation: The hash location is defined as hash(f)= key mod table_size.

7 mod 10 gives 7. It is placed in 7^th position.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.

Categories

...