In Numerical Methods in Engineering with Python 3, Author: Jaan Kiusalaas, page 25, the author solves a summation expression in two ways:
First method: using a loop.
Second method: a vectorized version by importing arange from numpy.
The author states that "The vectorized algorithm executes much faster, but uses more memory." Could anyone please explain what is meant by vectorizing algorithm and why does the vectorized algorithm executes much faster, but uses more memory?