The algebraic multiplicity of $\lambda$ is its multiplicity as a root of $p_A(t)=\det(tI-A)$. For $A=\operatorname{diag}(2,2,3)$, eigenvalue $2$ has algebraic multiplicity two. This differs from geometric multiplicity, which measures eigenspace dimension.