B 4.1.6 Worksheet 4 Java
Name: _________________________ 1. Calculating Load Factor Calculate the load factor (α) for each scenario. A HashMap with a capacity (number of slots) of 16 is storing 8 items. α = ____ A HashMap with a capacity of 32 is storing 24 items. α = ____ 2. Rehashing A HashMap has a capacity of 16 and a load factor threshold of 0.75. How many items can be added to the map before it triggers a rehash?...