\usepackage{listings} \usepackage{algorithmic} \usepackage{amsmath} \renewcommand{\algorithmicrequire}{\textbf{Input:}} \renewcommand{\algorithmicensure}{\textbf{Output:}} \lstset{ frame=tb, numbers=left, numberstyle=\tiny, breaklines=true, postbreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\color{red}\hookrightarrow\space}} } \DeclareMathOperator{\Hom}{Hom} %\DeclareMathOperator{\P}{\frak{P}} %\DeclareMathOperator{\exp}{exp} %\DeclareMathOperator{\ln}{ln} \newcommand{\N}{\ensuremath{\mathbb{N}}}