Algebraic approximation of manifolds and spaces