29 29 votes A hash table contains $10$ buckets and uses linear probing to resolve collisions. The key values are integers and the hash function used is $\text{key}\%10$. If the values $43, 165, 62, 123, 142$ are inserted in the table, in what location would the key value $142$ be inserted? $2$ $3$ $4$ $6$ Algorithms gateit-2005 algorithms hashing easy + – Ishrat Jahan 9.7k views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
Best answer 31 31 votes $43$ in loc $3$ $165$ in loc $5$ $62$ in loc $2$ $123$ in loc $4$ ( collission and next free space) $142$ in loc $6$ (collision in $2$, and $3,4,5$ already occupied) hence answer D Sankaranarayanan P.N answered Nov 10, 2014 • edited Dec 29, 2017 by kenzou Sankaranarayanan P.N comment Share Follow 0 reply Please log in or register to add a comment.
12 12 votes Answer is :- D Kashyap Avinash answered Nov 13, 2016 Kashyap Avinash comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes https://youtu.be/gcLTJOgfuxU rohittulasyan answered Oct 11, 2018 rohittulasyan comment Share Follow 0 reply Please log in or register to add a comment.