GATE CSE
First time here? Checkout the FAQ!
x
+1 vote
152 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 (9.6k points) 47 108 201 | 152 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 (7.3k points) 9 99 253


Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
Top Users Oct 2017
  1. Arjun

    23398 Points

  2. Bikram

    17078 Points

  3. Habibkhan

    8264 Points

  4. srestha

    6296 Points

  5. Debashish Deka

    5438 Points

  6. jothee

    4978 Points

  7. Sachin Mittal 1

    4772 Points

  8. joshi_nitish

    4348 Points

  9. sushmita

    3964 Points

  10. Rishi yadav

    3804 Points


Recent Badges

Notable Question KISHALAY DAS
Notable Question sh!va
Notable Question abhijeetbzu
Great Question jothee
Popular Question rahul sharma 5
Nice Question mohit kumar 5
Notable Question rishu_darkshadow
Nice Comment Pranay Datta 1
Copy Editor Shivansh Gupta
Nice Comment KULDEEP SINGH 2
27,324 questions
35,176 answers
84,108 comments
33,279 users