Crossposts are ok for me, but please cross reference the posts so a helper can check the progress.
Henri Menke already solved your problem, it was a missing pair of braces (
C_{\hat{\imath}}
). His tip of using imath to produce a dotless i is a very good one. He made some more improvements to your code, for example setting »numSeqNoise« upright in the first line and including the binary oparator > in the math-environment. Otherwise it is a textual > with the corresponding spacing which wouldn't make much sense.
You might even want to typeset the OR upright and maybe even bold.
Here is Henris code for future reference
Code: Select all
\documentclass{article}
\usepackage{algorithm2e}
\begin{document}
\begin{algorithm}
\uIf{$|F_d(D'(C_{\hat{\imath}})) - F_d(D(C_{\hat{\imath}}))| > \sigma$
%\textup{\bfseries
OR
%}
$\mathrm{numSeqNoise} > \mu$}{
SplitCluster($C_j$)\;
}
\uElseIf{$|F_d(D'(C_{\hat{\imath}})) - F_d(D(C_{\hat{\imath}}))| > \tau$}{
numSeqNoise++\;
}
\uElseIf{$j \neq \hat{\imath}$}{
Remove $S_{R}$ from cluster $C_j$\;
Place $S_{R}$ in cluster $C_{\hat{\imath}}$\;
}\uElse{
Replace $S_{R}$ in cluster $C_{\hat{\imath}}$\;
}
\end{algorithm}
\end{document}
Hint, you can click on »open in writelatex« to see the output.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.