In the last week a TA strike attacked the whole school and we lost many labs and tutorials, CSC148 lab included. However, the learning of CSC148 course would never stop during these reasons, and perceiving and grasping new knowledge would keep going on, too.
This week we learned a new concept named "linked list", which is similar to but not the same as the concept of tree. Though they both use "nodes" as a super level and contain elements called "leaves" in the sublevel via each list, and elements in lists could be other nodes at the same time, the number of nodes in the list of linked list could only be one. That means, every node contains an element and a list which contains another single node. That is quite interesting since elements are not standing as a line simply. Instead, each two nearby elements are connected tightly and if you delete the form node then the latter one would vanish.
The concept of linked list provides a different option for us to storage elements like integers, floats, strings and so on. In the past we may tend to storage what we want by using list, tuple and dictionary. Yet none of them may create a connection between every two elements. Now via linked list we could achieve it easily, which may make a difference in the future learning and coding.
The other thing is that Assignment 2 was due this week. I cannot deny that during the past two weeks I spent the majority of my after-class time to work for this assignment. At first I really met lots of trouble, such as the form of a move, the storage of current places of checkers, the judgement of rough outcome and the idea of minimax strategy. In particular, I really had no idea how to design a strategy for the computer when I got the handout. With tough working, thinking and coding, I solved each them gradually and eventually complete the whole assignment. Though the strategy is not perfect, I tried my best and make it matter for most cases.
We will face Test 2 in the next week. Tough what will be shown in the test is certainly more difficult, I believe I could get them with sufficient exercise. Good luck to every geek in CSC148!
No comments:
Post a Comment