Problem G
Assigned Sept 30, due Oct 14.
This problem is CLR exercises on hash functions, hash ratios.
Not too much heavy lifting on this one. The idea is to get
a feel for some of the properties of hashing methods.
You can use Maple or other tool for the arithmetic.
-
CLR exercise 11.3-4
-
CLR exercise 11.4-4
-
CLR exercise 11.4-5
Hint: In Maple, the expression "solve( LHS(x) = RHS(x), x);" works
where LHS and RHS are arbitrary expressions involving variable x.
It is likely to present a messy formula for the solution(s).
Evalf() can be used to get floating point answer(s). For instance,
at the following prompt you can enter "evalf(%)", to get an approximation
of the previous answer (which is what the "%" refers to).
Exit maple with "quit".