\documentclass[conference]{IEEEtran}
\IEEEoverridecommandlockouts
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{xcolor}
\usepackage{colortbl}
\usepackage{lipsum}
\usepackage{tabularx}
\usepackage[noend]{algpseudocode}
\usepackage[linesnumbered,ruled]{algorithm2e}
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
\title{AlgorithmTemplate}
\usepackage{fullpage}
\usepackage{times}
\usepackage{fancyhdr}
\include{pythonlisting}
\begin{document}
\title{Title}
\author{
}
\maketitle
\begin{abstract}
\end{abstract}
\begin{IEEEkeywords}
Keys
\end{IEEEkeywords}
\section{Introduction}
Ref~\cite{case2016analysis}.
\begin{algorithm}
\SetKwInOut{Input}{Input}
\SetKwInOut{Output}{Output}
\textbf{Data}: \\
\For{$\omega = 1,2, \cdots, N$}{
Vectors $Z_n=(z_{1},\cdots , z_{n})$:
$x = y + z$
\If{$\tau \in \{\chi\}$ in $\sigma$}{
}
}
\Output{Score}
\caption{Algo}
\end{algorithm}
\bibliographystyle{IEEEtran}
\bibliography{Ref}
\end{document}
I have the following problem in the algorithm as I want to group statements under Vectors and I don't want to number the "if" statement as it's part of group under Vectors below,
This is what I want,


algorithm2erather thanalgorithmicx, So I voted to keep open – Elad Den Apr 14 '21 at 14:46algorithm2e... Still not the answer he was looking for though – Elad Den Apr 14 '21 at 14:57nonlin the end block somehow – Elad Den Apr 14 '21 at 15:59\SetKwFor{ExtraGroup}{}{}{}outside of the algorithm, which creates a new command\ExtraGroupwith two arguments, the first line and the body, so in this case\ExtraGroup{\emph{Vectors} $Z_n$}{$x = y + z$\; etc}. You need the\emphto cancel out the default formatting for the first command argument. – Marijn Apr 15 '21 at 21:34