Wants to reduce the caption size of the Algorithm. \scriptsize
, \footnotesize
works for the body of the algorithm but not for the caption/title.
\documentclass[10pt,journal,compsoc]{IEEEtran}
\usepackage[ruled,vlined,linesnumbered]{algorithm2e}
\usetikzlibrary{fit,matrix,positioning, decorations.pathreplacing,calc,shapes,arrows,shadows,patterns}
\hyphenation{op-tical net-works semi-conduc-tor}
\newdimen\zerolinewidth
\begin{document}
\begin{algorithm}
\scriptsize
\caption{Algorithm title}
\end{algorithm}
\end{document}
Also, how to change 'Algorithm' to 'Algo'
Best Answer
Form the package documentation: