I would like to make the algorithm2e environments wider in a beamer document. Indeed I must you a \scalebox to see all of my algorithm. Is there a way to have wider algorithms with smaller size font than the standard text WITHOUT using scalebox ? The size in my M(merely not)WE looks good for me.
OUTPUT

M(merely not)WE
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage[french, lined]{algorithm2e}
\usepackage{beamerthemesplit}
\begin{document}
\frame{
\frametitle{Premier algorithme}
\scalebox{0.65}{
\begin{algorithm}[H]
\Begin{
\ForEach{Case $C$ de la grille $G$}{
\If{$| poss(C) | \geq 2$}{
\ForEach{$p \in poss(C)$}{
$isole \leftarrow Vrai$
\\
\ForEach{Bloc $B$ contenant la case $C$}{
\ForEach{Case $C_B \neq C$ du bloc $B$}{
\If{$p \in poss(C_B)$}{
$isole \leftarrow Faux$
\\
Ne plus tester d'autres cases $C_B$.
}
}
\If{$isole = Vrai$}{
$g_{ij} \leftarrow \{ p \}$ où $(i,j) = coord(C)$
\\
$G \leftarrow \texttt{MettreAJour}(G)$
\\
Ne plus tester les blocs $B$ contenant $C$
}
}
\If{$isole = Vrai$}{
Ne plus tester les possibilités restantes de la case $C$
}
}
}
}
\Return $G$
}
\end{algorithm}
}
}
\end{document}

