Sunday, March 15, 2015

Sunday March 15th, 2015

In the past weeks we have completed both assignment 2 and term test 2. I found assignment 2 to be pretty difficult, especially with trying to implement strategy minimax. I think that I understood the idea of the strategy and the approach that we were supposed to use, but I still struggled heavily with implementing it. Danny did post something on the piazza page that summarized what we had to do, so I ended up following that. Hopefully, I can find out what I did right/wrong but I guess we will have to wait and see until the strike ends.

As for term test 2, I thought it was a very fair test. The three questions that were asked covered the three main things we have talked about in class since the last test: traversing through trees, binary search trees, and linked lists. Once again, we will have to wait until the strike is over in order to get our marks since there are no TAs who will mark them.

I think that the idea of linked lists is very interesting. A linked list is, when you look at it from the bigger picture, a list of objects that are nodes and are connected in a sequence. This means that every object has a current value and a next value, and that next value has a current value and next value, and so on. The list itself only has instance variables front, back, and size. That means in order to access objects within the list, you have to walk through the list by constantly looking at each node's next value, and that next value's next value (I hope that makes sense to whoever is reading this). The back instance variable's next value refers to None, since it is the end of the list. Also, the linked list has a size, depending on how many objects are in between the front and back. This is a very interesting concept to me, but I do not really understand a practical reason for sorting objects in this manner. Perhaps we will figure out in the coming weeks.

We are about to begin the third week of the strike, and I really hope it ends soon. We have not had any labs which I really value towards my learning, especially in this course. Labs are where I get to work with my partner and TA and practice the material that we have learned in lecture. Working on the labs alone at home is a lot more difficult, so hopefully we can all get back in those labs soon and do some computer science! :)

1 comment:

  1. I hope the strike ends soon too. I completely agree on with you on the difficulty of making time for the lab exercises.

    Great post :)

    ReplyDelete