# Display “Pseudocode” instead of “Algorithm” in \begin{algorithm}

Instead of the "Algorithm" which gets automatically added when used with \usepackage{algorithm}, I want it to display as "Pseudocode", How can I do this? :

Like the "Pseudocode" written in this:

The latex code for Fig 1 is as follows:

\documentclass[a4paper]{article}

\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{algorithm}
\usepackage[noend]{algpseudocode}

\begin{document}

\begin{algorithm}
\caption{Euclid’s algorithm}\label{alg:euclid}
\begin{algorithmic}[1]
\Statex Input: Something
\end{algorithmic}
\end{algorithm}

\end{document}

• Welcome to TeX.SX! Could you please make your example compilable? – TeXnician May 6 '18 at 8:12
• Please check now @TeXnician – Vasu Mistry May 6 '18 at 8:41

This works:

\documentclass[a4paper]{article}

\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{algorithm}
\usepackage[noend]{algpseudocode}
\floatname{algorithm}{Pseudocode}

\begin{document}

\setcounter{algorithm}{2}
\begin{algorithm}
\caption{Euclid’s algorithm}\label{alg:euclid}
\begin{algorithmic}[1]
\Statex Input: Something
\end{algorithmic}
\end{algorithm}

\end{document}