I'm trying to add the word "Algorithm" before each entry in the List of Algorithms (because of unavoidable thesis guidelines).
I saw similar questions but the solutions listed there don't work for me. I'm not sure about reopening those questions, hence posting it separately. Apologize if that's not the right etiquette.
Is it possible to change the way a list of algorithms is generated to include the word "Algorithm" before each element in the list? (I'm using "algorithm" package instead of "algorithm2e")
Add algorithm label to list of algorithms (not sure if solutions listed there require other packages as listed solutions don't work for me)
Current output:
List of Algorithms
1 Optimization . . . . . . . . 3
Desired output:
List of Algorithms
Algorithm 1 Optimization . . . . . . . . 3
Here's a simplified code sample that illustrates the issue. Your help is much appreciated. Please let me know how to get desired behavior for this sample.
\documentclass[letter,10pt]{book}
\usepackage[utf8x]{inputenc}
\usepackage[breaklinks]{hyperref}
\usepackage{algorithm}
\usepackage{algorithmic}
\title{Sample book}
\begin{document}
\listofalgorithms
\chapter{Sample}
% Outline
\begin{algorithm}[!hbt]
\centering
\caption{Optimization}\label{alg:pso}
\begin{algorithmic}[1]
\STATE \textit{GenerateInitialPopulation}(pop)
\FOR {particle $ \leftarrow $ 1 \textit{to} numParticles}
\STATE \textit{Evaluate}(particle)
\ENDFOR
\end{algorithmic}
\end{algorithm}
\end{document}

