2016年3月31日星期四
Week 11 Slog
It has been eight weeks since my first slog. I improved a lot during this period of time. I learned how to implement a parent and its children class. I learned about stack, queue which turns out to be extremely useful when I implement puzzle.tool in assignment two. I also learned about recursive structures such as trees, binary trees and binary search trees, they are really interesting and I learned a lot during this CSC148 class.
2016年3月24日星期四
Week 10 Slog
This week we move on to binary search tree and sort algorithms. We studied bubble sort, selection sort and insertion sort in CSC108. They are all in big O of n square which are not very effective solving large problems. The lecturer introduced quick sort and merge sort to us, and demonstrated it with a example in the class which is really nice and explicit.
2016年3月18日星期五
WEEK 9 SLOG
This week we have out term test 2, I have some trouble tracing recursion and coming up with an answer. I read over all the lecture slides, and all the methods and functions in tree, binary tree and linkedlist. The third question in the test is super hard, I left it blank in order to get 20 percent of the mark.
2016年3月13日星期日
WEEK 8 SLOG
This week we learned how to implement binary tree and the difference between a normal tree and a binary tree. A binary tree contains can only have max two children for each root. It has methods contain, str, eq and repr, as well as functions evaluate, postorder_visit, inorder_visit, visit_level, levelorder_visit, bst_contains and insert. One thing that bothers me a lot is that I can not understand the difference between those three visit algorithms, it seems to me that they are all the same.
2016年3月3日星期四
WEEK 7 SLOG
This week we focus on the topic of recursive structure. The most typical example of recursive structure is tree. The tree contains set of nodes with edges between some of the nodes. The leading node is called root, the nodes connect to it are called children. The node with no children is called leaf. The tree also have height and depth. The whole class of tree is a recursive structure. The most of part the implementation of tree requires recursion. I think recursion is really helpful although it is kind hard to understand first, however, once you master it you will find out it is really a really useful technique.
2016年2月28日星期日
Week 6 Slog
The due day of assignment 1 was three days ago, me and my partner spent about 20 hours on this assignment. It was not very difficult, professor gives us the skeleton and let us complete the body of the classes. Thus, it gives us freedom to create our own recipe. I think the main reason for this assignment is to test our ability to comprehend and design. It is really good for us the rest of the course and I think it helped a lot.
2016年2月11日星期四
WEEK 5 Slog
We had midterm test last Wednesday. It contains of three questions:
1. Class design
2. Parents class and subclasses
3. ADT
Overall, the test is fairly easy. However, it requires a lot of writing and thinking, it is unfair to give us only one hour to complete the whole test. I did not complete first question because I did not have time to even think though it, so I only got 2 out of 8 on this question. If I had more time, I think I can do much better than this.
1. Class design
2. Parents class and subclasses
3. ADT
Overall, the test is fairly easy. However, it requires a lot of writing and thinking, it is unfair to give us only one hour to complete the whole test. I did not complete first question because I did not have time to even think though it, so I only got 2 out of 8 on this question. If I had more time, I think I can do much better than this.
2016年2月4日星期四
Week 4 SLOG
Week 4 materials contain linked-list, stack and queue. I spent a lot of time trying to understand linked-list, it contains two class LinkedListNode and LinkedList. All of the linkedLists are made of LinkedListNode. The size of the LinkedList is determined by the parameter size. The parameter front is connected with the tail of the previous LinkedList.
2016年1月28日星期四
First Slog
This is my first year in UofT and third year in this city. I have encountered a lot of interesting things these years in Toronto, however, the most exciting thing is to be a part of this year's CS148. I learned a lot of new stuff the beginning three weeks and the most important content to me is list comprehension. I found it a little bit hard for me because it is completely new, but it is really useful because it can save you a lot of time from typing.
订阅:
博文 (Atom)