This week Assignment 2 was due. Me and my partner were working on it right up until when it was due at 11:59 pm on March 5th. We kept going at it on the Minimax problem however we were unable to figure out what to do. It seemed easy to implement since we had worked out the basics. However the code that accomplished the task eluded us, we were very stressed out trying very hard to finish it on time however we just weren't able to. We believe we didn't give ourselves enough time to finish the assignment so we decided for A3 we would give ourselves at least 2 weeks to finish it
In lecture we covered LinkedLists, Now this is a concept i had previously covered in grade 12 while working in java but i was still a little rusty on it and i never really fully understood how to implement it. A LinkedList Node (LLNode) has an instance variable that stores the value of the node and another instance variable that points to the next node.
We also learned to make a wrapper class which is used to store information about the LL. It stores information like the front and back of the LL and the size of it. To traverse a list we were thought to use a while loop. We would make a variable that stores the current_node by setting it to self.front and then in the while loop, under some condition, it would do something and then set the current node to current_node.front, causing it to look at the next node.
No comments:
Post a Comment