Tuesday, March 11, 2014

Week 8 - Assignment 2 (Part 1) and Linked Lists

The raw results of Assignment 1 have finally been posted, and I'm excited because that means our marks are probably coming soon! I seem to have done well on the tests, so I'm optimistic about my mark. 
The first midterm marks were also posted, and I didn't do as well as I thought on one of the questions. When I went to pick it up, I realized I had made an incredibly stupid error. I had tried to index into a Tree and also tried to check if the Tree's children were None, when the code given above had clearly stated they would be [ ] if they were empty! I realized this right away after looking over my test and was annoyed, however now I know to read the questions carefully next time!
This week we had to submit Assignment 2. Assignment 2 is significantly different from our first assignment - the first one focused more on the math/algorithm part of programming, whereas this one is getting us to practice writing our own code without any guidance, and is focused on design. In class we learned about wrapper classes, and these were used quite a bit in Assignment 2. I found the handout to not provide much guidance for what we were supposed to write, but I looked at last semester's handout for tips to get started, which helped. The first part of Assignment 2 wasn't that challenging - I think the second part will be though. 
Also, this week's lab went much better than last week's. I feel I'm starting to get a handle on Linked Lists. My partner and I finished all the required steps early (a first!) and got to do the extra functions. Those were more difficult, but were still interesting and fun to complete. I find we are starting to move more quickly in 148, and it seems like you need a very good grasp of recursion to be able to understand everything from here on out. I have a decent grasp - I understand the concept and how it is applied, but I can't always trace or visualize the execution of a recursive function in my head. This is something I think is really important to understand recursion (and the rest of the course) so I'm going to practice this a lot in preparation for the coming midterm. 
Good luck on exercise 3 everyone and have a great week!

No comments:

Post a Comment