GATE CSE
First time here? Checkout the FAQ!
x
+1 vote
92 views
Consider a hash table of size seven, with starting index zero, and a hash function (3x + 4) mod 7. Assuming the hash table is initially empty, which of
the following is the contents of the table when the sequence 1, 3, 8, 10 is inserted into the table using closed hashing? Note that – denotes an
empty location in the table.
(A) 8, ‐, ‐, ‐, ‐, ‐, 10
(B) 1, 8, 10, ‐, ‐, ‐, 3
(C) 1, ‐, ‐, ‐, ‐, ‐, 3
(D) 1, 10, 8, ‐, ‐, ‐, 3
asked in DS by Boss (8.9k points)   | 92 views
is it option B? correct me if i'm wrong.
yup, if linear probing is assumed to resolve collision

1 Answer

+3 votes
Collision Resolution Technique to be adopted is not Given.Assuming it to be Linear probing ans will be B.
answered by Boss (6.6k points)  


Top Users May 2017
  1. akash.dinkar12

    3152 Points

  2. pawan kumarln

    1630 Points

  3. sh!va

    1590 Points

  4. Arjun

    1350 Points

  5. Devshree Dubey

    1246 Points

  6. Angkit

    1044 Points

  7. Debashish Deka

    1022 Points

  8. Bikram

    972 Points

  9. LeenSharma

    820 Points

  10. Prashant.

    692 Points

Monthly Topper: Rs. 500 gift card
Top Users 2017 May 22 - 28
  1. pawan kumarln

    256 Points

  2. Ahwan

    232 Points

  3. jjayantamahata

    114 Points

  4. joshi_nitish

    114 Points

  5. Arnab Bhadra

    94 Points


22,731 questions
29,061 answers
65,094 comments
27,625 users