Update README.md

This commit is contained in:
bt3gl 2023-07-29 18:19:08 -07:00 committed by GitHub
parent dcaef97146
commit f0f0be2375
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,30 @@
## arrays and strings
## arrays and strings and hash objects
<br>
### hash objects
<br>
* hash tables are data structure that organizes data using hash functions, in order to support quick insertion and search (map keys to buckets).
* ideally, a perfect hash function will be a 1-1 mapping between the key and the buckets. however, in most cases, a hash function is not perfect and there is a tradeoff between the amount of buckets and the capacity of a bucket.
* if the hash function is not a 1-1 mapping, collisions must be handled:
- how to organize the values in the same bucket?
- what if too many values are assigned to the same bucket?
- hwo to search for a target value in a specific bucket?
<br>
<img width="732" src="https://github.com/go-outside-labs/master-python-with-algorithms-py/assets/138340846/aa798e45-d53b-45b9-9f95-0e508eb923d7">
<br>
<br>
---
### `is_palindrome.py`
<br>