QD algorithms and algebraic eigenvalue problems