Lectures:
This week we mainly covered linked lists. Linked lists are another way of storing information. They're kind of like arrays, except they use nodes. Each node contains a value and a reference to the node that goes after it. Linked lists also have a "wrapper" class that keeps track of which node is the first node, which node is the last node, and the total number of nodes in the list. Manipulating linked lists seems pretty difficult as you have to keep track of what each node is pointing at and which node you are at when traversing the list. We went through different example methods dealing with linked lists such as __getitem__, append, and delete_back. In these examples, we had to keep track of what we were changing to make sure that we do not accidentally mess up the list.
Lab:
There were no labs this week due to strike, which was great for me since that means i get to skip Thursday.
Assignment 2:
I spent a lot of time on this assignment, way too much time. This was mostly because I did not fully understand how Minimax was supposed to work so I could not implement it. I did eventually figure it out, but it took much longer than it should have. Other than that, the rest of the assignment was not too bad. I'm curious to see what we will do to speed up Minimax in assignment 3.
I remember there was a lot of confusion with me too, when trying to figure out what minmax wanted. I even remember doing a percentage weight thing that determined the best move, but thankfully everything worked out in the end and was able to implement the algorithm on the sheet.
ReplyDelete