如何获取算法编号而不是章节编号?

如何获取算法编号而不是章节编号?

我试图在参考文献中获取算法的编号,但我得到的参考文献是章节编号。如何解决这个问题?我的代码的简单工作原理如下

\documentclass[conference]{IEEEtran}
\IEEEoverridecommandlockouts
% The preceding line is only needed to identify funding in the first footnote. If that is unneeded, please comment it out.

\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage[pdfborder={0 0 .05}]{hyperref}


\usepackage{xcolor}

\hypersetup{%
 colorlinks=true,% hyperlinks will be coloured
 linkcolor=red,% hyperlink text will be green
 linkbordercolor=red,% hyperlink border will be red
 citecolor=blue,
}

\begin{document}

\title{ TMP\\
   \thanks{THX}
}

\author{\IEEEauthorblockN{NAME1}
\IEEEauthorblockA{\textit{NAME2} \\
}

}

\maketitle

\section{Introduction}
Intro

\section{Exact Algorithm and Pseudo Code}
\ref{lab:ide_algo}

\begin{algorithm}
       \label{lab:ide_algo}
       \caption{Count-Sort}
       \begin{algorithmic}[1]
           \renewcommand{\algorithmicrequire}{\textbf{Input:}}
           \renewcommand{\algorithmicensure}{\textbf{Output:}}
           \REQUIRE IN
           \ENSURE  OP
           \\ \textit{Initialisation} :
           \STATE STATE
           
       \end{algorithmic}
\end{algorithm}

\end{document}

相关内容