Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged hashing
1
votes
1
answer
211
MadeEasy Test Series: Programming & DS - Hashing
Suppose we used a hash function H(n) to hash ‘n’ distinct elements (keys) into an array T of length ‘m’. What is the expected number of colliding pairs of elements, if we used simple uniform hashing?
Suppose we used a hash function H(n) to hash ‘n’ distinct elements (keys) into an array T of length ‘m’. What is the expected number of colliding pairs of element...
Vishal Goyal
695
views
Vishal Goyal
asked
Dec 6, 2016
DS
made-easy-test-series
data-structures
hashing
+
–
0
votes
1
answer
212
MadeEasy Test Series: Programming & DS - Hashing
Anusha Motamarri
400
views
Anusha Motamarri
asked
Dec 5, 2016
DS
made-easy-test-series
data-structures
hashing
+
–
3
votes
1
answer
213
ME -- Hashing
Suppose there are $11$ slots in a Hash Table. At an instant there are $5$ empty slots and a new element $x$ is inserted in Hash Table. What is the the probablity that new element fits without collision? I think it should be $\frac{5}{11}$ but answer given says ::: EDIT :: Actual question is
Suppose there are $11$ slots in a Hash Table. At an instant there are $5$ empty slots and a new element $x$ is inserted in Hash Table. What is the the probablity that new...
thor
850
views
thor
asked
Nov 30, 2016
DS
hashing
+
–
1
votes
1
answer
214
Hashing
How do i prove that : : : In hashing n items into a hash table with k locations, the expected number of collisions is $n - k + k( 1-\frac{1}{k})^n$ ??
How do i prove that : : : In hashing n items into a hash table with k locations, the expected number of collisions is $n - k + k( 1-\frac{1}{k})^n$ ??
thor
635
views
thor
asked
Nov 26, 2016
Algorithms
hashing
+
–
7
votes
1
answer
215
GATE CSE 1990 | Question: 13b
Consider a hash table with chaining scheme for overflow handling: What is the worst-case timing complexity of inserting $n$ elements into such a table? For what type of instance does this hashing scheme take the worst-case time for insertion?
Consider a hash table with chaining scheme for overflow handling:What is the worst-case timing complexity of inserting $n$ elements into such a table?For what type of ins...
makhdoom ghaya
2.4k
views
makhdoom ghaya
asked
Nov 25, 2016
Algorithms
gate1990
hashing
algorithms
descriptive
+
–
0
votes
0
answers
216
What do you interpret from question?
It took me hell a lot of time. Still cann't figure out question??
It took me hell a lot of time. Still cann't figure out question??
thor
254
views
thor
asked
Nov 22, 2016
Programming in C
hashing
+
–
0
votes
1
answer
217
Hashing
Consider a Hash table containing ‘n’ keys and ‘k’ slots. Each key will hash into a slot in the given Hash table. (Assume collisions are resolved by chaining). 1)What is the probability that the first slot of hash table will be empty?
Consider a Hash table containing ‘n’ keys and ‘k’ slots. Each key will hash into a slot in the given Hash table. (Assume collisions are resolved by chaining).1)Wh...
Rohan Mundhey
687
views
Rohan Mundhey
asked
Nov 9, 2016
Algorithms
hashing
probability
data-structures
+
–
0
votes
1
answer
218
Hashing
Consider a Hash table containing ‘n’ keys and ‘k’ slots. Each key will hash into a slot in the given Hash table. (Assume collisions are resolved by chaining). 1)What is the probability that the first slot of hash table will be empty? 2)What is the expected number of slots that are being nonempty?
Consider a Hash table containing ‘n’ keys and ‘k’ slots. Each key will hash into a slot in the given Hash table. (Assume collisions are resolved by chaining).1)Wh...
Rohan Mundhey
1.7k
views
Rohan Mundhey
asked
Nov 9, 2016
Algorithms
hashing
chaining
probability
descriptive
+
–
0
votes
3
answers
219
Gate Computer Science FB group post
A hash table has space for 100 records .what is the probability of collision before it is 5% full?? a. 0.25 b. 0.10 c. 0.40 d. 0.20
A hash table has space for 100 records .what is the probability of collision before it is 5% full?? a. 0.25b. 0.10c. 0.40d. 0.20
Shreya Roy
1.1k
views
Shreya Roy
asked
Nov 7, 2016
Algorithms
hashing
+
–
1
votes
1
answer
220
MadeEasy Test Series: Programming & DS - Hashing
Hash table with 6 slots No of keys=8. Collisions are resolved by chaining. Expected no of non empty slots?
Hash table with 6 slotsNo of keys=8.Collisions are resolved by chaining.Expected no of non empty slots?
akashsheoran
659
views
akashsheoran
asked
Nov 6, 2016
DS
made-easy-test-series
data-structures
hashing
+
–
0
votes
0
answers
221
hashing
vaishali jhalani
235
views
vaishali jhalani
asked
Nov 5, 2016
Algorithms
hashing
data-structures
algorithms
+
–
2
votes
4
answers
222
ME-Hashing
KISHALAY DAS
820
views
KISHALAY DAS
asked
Nov 3, 2016
Programming in C
hashing
+
–
16
votes
2
answers
223
Hashing
Using open addressing with linear probing, we sequentially insert three distinct keys k1, k2 and k3 into a hash table of size m. Assuming simple uniform hashing, what is the probability that we will need three probes, when inserting the third key, k3? 3/m 2/m2 3/m2 2/m Please explain the solution.
Using open addressing with linear probing, we sequentially insert three distinct keys k1, k2 and k3 into a hash table of size m. Assuming simple uniform hashing, what is ...
agoh
3.3k
views
agoh
asked
Nov 2, 2016
Algorithms
hashing
data-structures
algorithms
uniform-hashing
+
–
0
votes
1
answer
224
MADE EASY 2016 TEST SERIES
Given a hash table with 6 keys and 10 slots, with simple uniform hashing. If collisions are resolved by chaining then the probability that first slot ends up empty?
Given a hash table with 6 keys and 10 slots, with simple uniform hashing. If collisions are resolved by chaining then the probability that first slot ends up empty?
Anshul_S
481
views
Anshul_S
asked
Oct 26, 2016
Algorithms
algorithms
hashing
uniform-hashing
numerical-answers
made-easy-test-series
+
–
0
votes
1
answer
225
Find the order of keys
The hash function hash=key mod size and linear probing are used to insert the keys 37,38,72,48,98,11,56 into hash table with indexes 0.....6.the order of the keys in the array are given by a)98,11,37,38,72,56,48 b)98,56,37,38,72,11,48 c)11,48,37,38,72,98,56 d)72,11,37,38,56,98,48
The hash function hash=key mod size and linear probing are used to insert the keys 37,38,72,48,98,11,56 into hash table with indexes 0.....6.the order of the keys in the ...
neha singh
1.1k
views
neha singh
asked
Oct 11, 2016
Algorithms
hashing
numerical-answers
+
–
1
votes
1
answer
226
DS\Hashing
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 ... 8, 10, -, -, -, 3 (C) 1, -, -, -, -, -, 3 (D) 1, 10, 8, -, -, -, 3
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 ofthe following is th...
Desert_Warrior
2.6k
views
Desert_Warrior
asked
Oct 9, 2016
DS
data-structures
hashing
+
–
3
votes
1
answer
227
Hashing+Probaility
Rahul Jain25
787
views
Rahul Jain25
asked
Oct 8, 2016
DS
hashing
probability
uniform-hashing
binomial-distribution
+
–
2
votes
1
answer
228
Hashing
Rahul Jain25
586
views
Rahul Jain25
asked
Oct 8, 2016
DS
algorithms
hashing
data-structures
probability
+
–
4
votes
1
answer
229
DS+ Algorithm test
Rahul Jain25
903
views
Rahul Jain25
asked
Oct 7, 2016
Programming in C
hashing
linear-probing
data-structures
+
–
1
votes
2
answers
230
GATE Overflow | Algorithms | Test 1 | Question: 27
Consider a hash table of size $m = 10$ and a corresponding hash function $h(k) = k A \mod m$ for $A = 5$ where collisions are resolved by quadratic probing. The location (starting from 1) to which the key 65 is mapped if the current contents of hashtable is $4 \;8 \;\_ \;\_ \;7 \;8 \;6 \;\_\; 0\; \_$ is _______
Consider a hash table of size $m = 10$ and a corresponding hash function $h(k) = k A \mod m$ for $A = 5$ where collisions are resolved by quadratic probing. The location...
Bikram
739
views
Bikram
asked
Oct 4, 2016
Algorithms
go-alogrithms-1
numerical-answers
algorithms
hashing
+
–
3
votes
2
answers
231
GATE Overflow | Algorithms | Test 1 | Question: 21
A spell-checker software reads an input file and prints out all words not in some online dictionary. Suppose the dictionary contains 10,000 words and the file has one million entries, so that the algorithm can make only one pass through the input file. ... the hash table is an array of pointers to words). 80,000 B 160,000 B 320,000 B 150,000 B
A spell-checker software reads an input file and prints out all words not in some online dictionary. Suppose the dictionary contains 10,000 words and the file has one mil...
Bikram
675
views
Bikram
asked
Oct 4, 2016
Algorithms
go-alogrithms-1
algorithms
hashing
+
–
3
votes
2
answers
232
GATE Overflow | Algorithms | Test 1 | Question: 8
Is the following implementation of hashCode() legal assming a hashtable of size 20? public int hashCode(x) { return 17; } yes no because it fills only one slot no because it does not ensure uniform filling no because the hashcode is independent of the key
Is the following implementation of hashCode() legal assming a hashtable of size 20?public int hashCode(x) { return 17; }yesno because it fills only one slotno because it ...
Bikram
697
views
Bikram
asked
Oct 4, 2016
Algorithms
go-alogrithms-1
algorithms
hashing
+
–
1
votes
1
answer
233
UGC NET CSE | August 2016 | Part 3 | Question: 32
Consider a hash table of size $m = 10000$, and the hash function $h(K) = floor (m(KA \bmod 1))$ for $A = ( \sqrt{5} – 1)/2$. The key $123456$ is mapped to location ______. $46$ $41$ $43$ $48$
Consider a hash table of size $m = 10000$, and the hash function $h(K) = floor (m(KA \bmod 1))$ for $A = ( \sqrt{5} – 1)/2$. The key $123456$ is mapped to location ____...
makhdoom ghaya
863
views
makhdoom ghaya
asked
Oct 1, 2016
DS
ugcnetcse-aug2016-paper3
data-structures
hashing
+
–
2
votes
1
answer
234
Virtual Gate Test Series: Algorithms - Hashing With Chaining
Let $| U | = m^{2}$ and consider hashing with chaining. For any hash function $h : U\rightarrow{ 1, 2, ......., m-1}, $ there exists a sequence of $m$ insertions that leads to a chain of length $:$ $(A) m-1$ $(B) m$ ($C) m+1$ $(D)$ None. i got (m-2) max length .....option D
Let $| U | = m^{2}$ and consider hashing with chaining. For any hash function $h : U\rightarrow{ 1, 2, ......., m-1}, $ there exists a sequence of $m$ insertions that lea...
Hradesh patel
1.3k
views
Hradesh patel
asked
Oct 1, 2016
Algorithms
algorithms
hashing
virtual-gate-test-series
+
–
1
votes
1
answer
235
Hashing
using Method : Fold shift , we can find key then what use of Fold shift in Hashing
using Method : Fold shift , we can find keythen what use of Fold shift in Hashing
Anil Khatri
994
views
Anil Khatri
asked
Sep 28, 2016
DS
data-structures
hashing
+
–
0
votes
1
answer
236
made easy
what is the expected number of probs requires when inserting an element into an open address hash table with load factor x (assume uniform hashing) a 1/(1-x) b 1/(1+x) c 1/x d 2/(2-x)
what is the expected number of probs requires when inserting an element into an open address hash table with load factor x (assume uniform hashing)a 1/(1-x)b 1/(1+x)c 1/x...
qwertyui
447
views
qwertyui
asked
Sep 24, 2016
Algorithms
hashing
uniform-hashing
made-easy-test-series
+
–
0
votes
3
answers
237
UGC NET CSE | June 2010 | Part 2 | Question: 24
A chained hash table has an array size of $100$. What is the maximum number of entries that can be placed in the table ? $100$ $200$ $10000$ There is no upper limit
A chained hash table has an array size of $100$. What is the maximum number of entries that can be placed in the table ?$100$$200$$10000$There is no upper limit
makhdoom ghaya
2.3k
views
makhdoom ghaya
asked
Sep 15, 2016
DS
ugcnetcse-june2010-paper2
data-structures
hashing
+
–
1
votes
1
answer
238
Indexing problem
Consider the following relations. Emp(eid:integer,ename:varchar,sal:integer,age:integer,did:integer) Dept(did:integer,budget:integer,floor:integer,mgr_eid:integer) Salaries ranges from 10000 to 100000 ages vary from 20 to 80, each department has about five employees ... Clustered B+ tree index on the budge field of Dept I feel in first paragraph what all important is Dept table.
Consider the following relations.Emp(eid:integer,ename:varchar,sal:integer,age:integer,did:integer)Dept(did:integer,budget:integer,floor:integer,mgr_eid:integer)Salaries ...
GateAspirant999
810
views
GateAspirant999
asked
Sep 14, 2016
Databases
indexing
bplustrees
hashing
+
–
0
votes
4
answers
239
UGC NET CSE | December 2010 | Part 2 | Question: 24
Linear probing suffers from a problem known as Secondary clustering Primary clustering Both (A) and (B) None of these
Linear probing suffers from a problem known asSecondary clusteringPrimary clusteringBoth (A) and (B)None of these
makhdoom ghaya
3.2k
views
makhdoom ghaya
asked
Sep 7, 2016
Others
ugcnetcse-dec2010-paper2
data-structures
hashing
+
–
5
votes
3
answers
240
Hashing : Quadratic Probing
Keys $9,19,29,39,49,59,69$ are inserted into a hash Table of size $10$ $(0-9)$ using the hash function $H = k mod 10$ and Quadratic Probing is used for collision resolution. What is the index into which 59 will be inserted ? $a). 3$ $b). 6$ $c). 8$ $d). 5$
Keys $9,19,29,39,49,59,69$ are inserted into a hash Table of size $10$ $(0-9)$ using the hash function $H = k mod 10$ and Quadratic Probing is used for collision resoluti...
mcjoshi
5.6k
views
mcjoshi
asked
Aug 30, 2016
DS
hashing
data-structures
+
–
Page:
« prev
1
...
3
4
5
6
7
8
9
10
11
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register