Monday, 29 February 2016

Week 6 -- def recursion_intro(x):

This previous week was a very eventful and gratifying one, that's mainly because Assignment 1 was due and the finishing touches had to be made and mistakes had to be fixed. The course also introduced recursion, an important tool in coding which we will surely see again in the future.

Assignment 1 was long, it took some time to read through the given API's, client code to figure out what our classes, methods and functions had to do once we implemented them. After implementing easier classes such as Rider, Driver, Container and Dispatcher came some more difficult ones which used the former classes. Event, Monitor and Simulation were easily the most difficult classes to implement because together they formed the end goal of the assignment: to run a simulation and report the statistics. Perhaps the most frustrating aspect of the entire aasignment was figuring out what certain events were supposed to do, and then properly adding them in the correct order so that statistics would be displayed as expected. Many small changes were made throughout this part. Luckily I was able to get some much needed clarification from the instructor, helping me not only to complete the assignment on time but also to the point where I myself was able to help out fellow students with similar issues as mine.

In this past week, we were introduced to recursion. We mainly worked with some simpler functions which followed the basic recursion design, mostly working with list objects and started getting comfortable with tracing the function given an argument. Surely it will get more complicated later on and I will report as such when that time comes.

No comments:

Post a Comment