Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
explain hashing a bit more
Browse files Browse the repository at this point in the history
  • Loading branch information
taivop committed Oct 21, 2016
1 parent f44dba6 commit 48b544b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified report/milestone1.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion report/milestone1.tex
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ \subsection{Load Balancing and Hashing}\label{sec:desc:hashing}
\item The index of the primary machine is calculated as $i \bmod N$ (adding $N$ if the modulus is negative) where $N$ is the number of servers.
\end{enumerate}

The uniformity of hashing was validated in tests (see \linktest{UniformHasherTest}). For one million random strings and 13 target machines, the distribution to different machines was the following:
The uniformity of the key distribution follows from the assumption that input strings are random and the uniformity of \code{String.hashcode()}. This was also validated in tests (see \linktest{UniformHasherTest}): for one million random strings and 13 target machines, the distribution to different machines was the following:

\begin{verbatim}
Machine 0 got 77229 hits.
Expand Down

0 comments on commit 48b544b

Please sign in to comment.