\begin{tikzpicture}[scale=0.9]
\tikzstyle{every node} = [font = \footnotesize]

\draw (0,1) rectangle (4,0);
\draw (0,0) -- (0,-1) -- (1,-1)-- (1,1);
\draw (0,1) -- (1,1);
\draw (2,1) -- (2,0);
\draw (3,1) -- (3,0);


\draw (0,-.5) node[left] {$b_{45}$};
\draw (0,.5) node[left] {$0$};
\draw (1,-.65) node[right] {$4$};
\draw (.9,.5) node[right] {$1$};

\draw (1.9,.5) node[right] {$4$};
\draw (2.9,.5) node[right] {$1$};
\draw (4,.5) node[right] {$3$};

\draw (0.5,1) node[above] {$1$};
\draw (0.5,.1) node[below] {$3$};
\draw (0.5,-1.2) node[] {$b_{51}$};

\draw (1.5,1) node[above] {$1$};
\draw (2.5,1) node[above] {$4$};
\draw (3.5,1) node[above] {$0$};

\draw(1.5,0) node[below] {$4$};
\draw(2.5,0) node[below] {$1$};
\draw(3.5,0) node[below] {$1$};


\draw[red] (0.5,-.55) node[]{$0$};
\draw[red] (0.5,.5) node[]{$4$};
\draw[red] (1.55,.5) node[]{$1$};
\draw[red] (2.55,.5) node[]{$1$};
\draw[red] (3.55,.5) node[]{$4$};

\end{tikzpicture}