If you wish, you may experiment with the value of alpha in part 2 to see if you can obtain somewhat better convergence. This part of the homework implements an algorithm which ensures that you always take just the right step to minimize the energy as much as possible at each iteration.