Ch. 5 Flashcards
1
Q
Hash functions
A
Map strings to numbers
-needs to be consistent
-needs to avoid conflicts
-can’t assign to a memory slot that isn’t available
2
Q
Hash collision solution
A
Turn that memory slot into a linked list.
3
Q
Load factor
A
Items in hash / #number of slots available
4
Q
Hash resizing
A
Making a new array (typically 2x size) and moving hash table data to it.