The algebraic approximation of attractors: the finite dimensional case