Skip to content

Commit 4fc6af0

Browse files
Update notes.txt
1 parent 0364bb8 commit 4fc6af0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Diff for: 14 Hashing/notes.txt

+11
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
1+
Hash table: A simple implementation would be direct addressing in which each key is stored in an array 'key' and hence it can be retrieved
2+
in a constant time. However due to limited memory, this is always not possible.
13

4+
Hashing or Hash Function or hashCode: Maps the key to the location of key in the array
5+
One simple way is to module divide key by the array length
6+
7+
Load factor = No of elements/size of the table
8+
9+
Collision resolution techniques: 1) Separate Chaining
10+
2) Open Addressing
11+
12+
Three in open addressing:1) Linear probing 2) Quadratic probing 3) Double Hashing

0 commit comments

Comments
 (0)