\begin{slide}{Von Zahlen zu Bitfolgen}

\begin{verbatim}
static boolean [] encode (int x) {
    boolean result [] = new boolean [width];
    for (int i=0; i<width; i++) {
        if ( 0 == x % 2 ) {
        result [i] = false;
        } else {
        result [i] = true;
        }
        x = x / 2;
    }
    return result;
}
\end{verbatim}

\end{slide}
