The following works for me, note in particular the line
\renewcommand{\thealgorithm}{A\arabic{algorithm}}
which @Werner mentioned in his comment. Note also that this code is an example of a MWE

\documentclass{article}
\usepackage{algorithm}
\usepackage{algpseudocode}
\renewcommand{\thealgorithm}{A\arabic{algorithm}}
\begin{document}
\begin{algorithm}
\caption{Euclid’s algorithm}
\label{alg:euclid}
\begin{algorithmic}[1]
\Procedure{Euclid}{$a,b$}\Comment{The g.c.d. of a and b}
\State $r\gets a\bmod b$
\While{$r\not=0$}\Comment{We have the answer if r is 0}
\State $a\gets b$
\State $b\gets r$
\State $r\gets a\bmod b$
\EndWhile\label{euclidendwhile}
\State \textbf{return} $b$\Comment{The gcd is b}
\EndProcedure
\end{algorithmic}
\end{algorithm}
Test reference: \ref{alg:euclid}
\end{document}
\documentclassand the appropriate packages so that those trying to help don't have to recreate it. While solving problems is fun, setting them up is not. Then those trying to help can simply cut and paste your MWE and get started on solving problem. – Peter Grill Nov 14 '12 at 4:04\renewcommand{\thealgorithm}{A\arabic{algorithm}}should modify the\label-\refyou're using. However, the bigger question is the use of{\bf A1}. What does this represent? – Werner Nov 14 '12 at 4:11