Monday, 9 March 2015

Week 9, 0302-0308

This week was uneventful other than that labs were cancelled because of the strike. We finished up on assignment 2 and talked a bit about iteration, but didn't cover much.
I thought I finished assignment 2 early, but realized around an hour before it's due that the minimax strategy doesn't work properly. Again cue frantic revising. Beating the deadline by five minutes was a bit too thrilling for my likings, but I suppose it worked out fine this time.
Iteration is somewhat similar to recursion in that it also repeats a part of a task until the task itself is done, although iteration is more of repeating a smaller (parallel) portion of a task until the loop condition fails, while recursion reduces the task into simpler and simpler cases until the base case is reached. We used linked lists as an example for iteration, where objects (nodes) in the list are linked to one another, so iteration works well here. We define a "front" node and move along the list, changing our current node, to achieve whatever we want to do, say check if an object is contained in the list.

I've been reading some of the other slogs, but don't really have much to say other than occasionally giving solutions to problems. Not sure how to work on that part.

No comments:

Post a Comment