I'm using the algorithms package and the algorithm environment has its own numbering. I want to number the algorithms with the equations. That is, if I write
\begin{equation} 1 = 1 \end{equation}
\begin{algorithm}
\caption{Some Algorithm}
\label{alg}
\end{algorithm}
I want the first equation to be numbered 1 and the algorithm to be numbered 2.
The documentation teaches a way to number the algorithms within chapters, sections, etc. But I didn't find anything about this.
Thanks.
EDIT: My MWE
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath,amsthm,amsfonts}
\usepackage[noend]{algpseudocode}
\usepackage{algorithm}
\begin{document}
\begin{equation} \label{eq}
1 = 0
\end{equation}
\begin{algorithm}
\caption{My Algorithm}
\label{al}
\begin{algorithmic}
\Function{Alg}{n}
\State \Return $n$
\EndFunction
\end{algorithmic}
\end{algorithm}
\end{document}
