View worked solution
Answer: 3:3
To find the length of the longest chain, we compute the hash value for each given key and group them by their hash index (from to ):
- Index 0: None
- Index 1: , , Keys: (Chain length = )
- Index 2: None
- Index 3: Keys: (Chain length = )
- Index 4: None
- Index 5: Keys: (Chain length = )
- Index 6: , Keys: (Chain length = )
- Index 7: None
- Index 8: , Keys: (Chain length = )
The longest chain occurs at index with keys. Thus, the length of the longest chain is .
Free practice · Your answers on this page are not saved.
