Chaos among self-maps of an n-dimensional manifold and of the Cantor space