Topological and algebraic automorphisms of 3-manifolds