Monday, March 30, 2015

    In week 9, professor went over the sample solution for assignment two in class, specifically, he talked about the class Minimax. It was interesting to see how a different idea works in the same question, especially, the flexibility under some general instructions. Even though, me and my team might came up with am incorrect solution, but it was inspiring to see a different prospective in programming. Moreover, professor's solution was really clean,short and compacted, and I think this is what a better format to have for the next assignment. Therefore, I will definitely try to change my way of approaching to a question if I get stuck, and try keep my code clean and short.
   Another thing that professor covered in class was test cases. I found it was vitally important to have some correct and efficient test cases to proof that your code is actually working without breaking down. Therefore, I was very concentrated in that lecture, but lots of practices are need in order to perform  well in the final exam.

Sunday, March 15, 2015

    Yeah!!! The CSC term test is over. It turned out to be better than what I was expecting because I have already had an impression what the test will look like from the first test. Moreover, I have some good practice on the three topic that was covered in the test because of the labs and the assignments. Therefore, I am pretty happy with how I performed even though the result will not be available until late.
    We had a class right after the term test, and it was really short. I didn't pay too much attention to the lecture, but I think it was basically some review for the previous topics. But I could be wrong, and I will go back and check with the lab handout for this week. One last thing that I found out is that the lab is extremely useful for preparing for the tests, so I will try my best to finish all the lab exercises without the actual lab.

Sunday, March 8, 2015

    Week 8 wasn't a easy week to get by. The assignment 2 was due on Thursday and there was no help for the assignment due to the TA strike, and I have to prepare for the term test which is on Wednesday next week.
    Me and my teammate started the assignment late because we thought this assignment would take not too much time to write since we are given starting code. However, when we were really scratching our head for the minimax strategy and how to plug every class into the main function game_view, we realized that we are pretty far from completion and we might not able to finish it on time. For that reason, me and my teammate stayed up all night to write the program and keep working until the very last minute before the deadline. Fortunately, we were able to get it finish and the strategy turned out to be fairly intelligent, and we were pleased by our teamwork.
    Even though we have finished the assignment, I cannot just chill out afterwards because  term test is coming up. The topic that I am concerning about is the Linked List that we learn in the week because I wasn't paying attention to the lecture, but instead, I was working on the assignment. Therefore, I need to work hard to pick it up.
    Lastly, good luck on the term test!!!

Sunday, March 1, 2015

         We learned tree and binary search tree in class this week, and as I heard from my TA during the lab, it is actually one really useful data structure in the later year in computer science.
         This how tree works. We first define a class tree and create nodes and leafs which are instances under the first node of the tree. As we create more and more nodes and leafs, we can draw an image base on this data structure, and it looks really similar to a root of a plant. This data structure is useful because we can write a recursion method to search something from the tree and it is not too hard.
         However, the binary search tree is actually a much more useful data structure. It is similar to tree, but instead of having unlimitedly many children (nodes) or leafs under one node, we limit the maximum number of children of a node to be two and all child has to be comparable with each other. Most importantly, the value of the left hand side of the children has to be less than the value of the root, and the value of the right hand side children has to be greater than the root. By this layout, we can write a simple recursion method to search a value in the binary search tree, and it can shorten the number of comparison during the searching by a large factor. Therefore, it is an extremely efficient data structure to use.

         After I realize the importance of this data structure, I spent quite a bit of time to understand the structure and asked for lots of help form the TA during the lab. Because of this, I feel pretty confident for writing the data structure tree, and I think this is also a good habit for studying computer science. Therefore, I will try keeping this study habit for the rest of the semester.