Week 11

Tuesday

Thursday

  1. hash function is a way to mash up (my term) the name of something into a numerical key
  2. the % operator is one way to lower/minimize the number of possible keys into a manageable number of buckets
  3. we use buckets to hold one or more values based on the key
  4. with a small range of keys, we can use an array data structure to O(1) access a bucket and we can represent a bucket with a linked list data structure.
  5. if the number of keys available is too small for the number of values we are using, we approach O(n) accesses to get values (no difference from a linked list & no advantage to using a hash map!) so we may want to resize

Friday's Lab

Interesting, or not!

Check out the author page too!