This week had a huge focus on recursion which was very much needed for me! The professor used the Turtle class in Python to help us visualize the concept. I was able to make a link to fractals in physics, which are basically a recursive image where zooming in on one part of the image is identical to the initial one, just on a smaller scale. Ever since then I've been able to understand how to properly implement recursive functions so my lab was a breeze! The most difficult part is handling these recursive problems at first sight, so tracing really makes all the difference.
No comments:
Post a Comment