[Tex/LaTex] Is it possible to change the way a list of algorithms is generated to include the word “Algorithm” before each element in the list

algorithm2etable of contents

I've tried using both algorithm2e and algorithmic to generate a list of algorithms, but they both do it this way:

List of Algorithms

1 BFS ..... 1
2 DFS ..... 2
...

When I'd like to it to be:

List of Algorithms

Algorithm 1 BFS ..... 1
Algorithm 2 DFS ..... 2
...

The packages being used:

\documentclass[pnumabnt,normaltoc,capchap,floatnumber=continuous]{abnt}  
\usepackage[bibjustif,abnt-etal-cite=2,abnt-full-initials=yes]{abntcite}
\usepackage[toc,page]{modelo/tex/appendix}
\usepackage[portuguese,brazilian,portuges]{babel}
\usepackage[utf8]{inputenc}
\usepackage{abnt-alf}
\usepackage{graphicx}
\usepackage{multicol}
\usepackage{listings}
\usepackage{booktabs}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{eucal}
\usepackage{amssymb}
\usepackage{mathrsfs}
\usepackage[portugues]{algorithm2e}

Best Answer

Isn't it obvious, that below the heading List of Algorithms only algorithms follow? Why mention 20 times Algorithm again?

One could start by redefining the counter presentation like

\renewcommand*{\thealgocf}{Algorithm~\arabic{algocf}}

But the list of contents requires modification, this could be done with a package like tocloft or titletoc or tocbasic.

For consistency it may be following to do the same for figures, tables, sections and so on. That seems odd to me.

Related Question