Saturday, 4 April 2015

Another slog for week 11

    Oops, I just saw the slog requirement for this week, so I decided to write another one.
    Here, I am revising the slog of week 8, where I said there can be another way of writing recursion rather than just  (...(c) for all the c in ...).
The other way, as stated in week 8 slog, is like this:
if root is None:
        pass
    else:
        inorder_visit(root.left, perform)
        perform(root)
        inorder_visit(root.right, perform)
In this way, every time we call on this method, if the node, which is the root of the subtree, is not None, the method will be again call on the left and right of that node in order. Well, it has been a long while since I read that slog. I found that the original way of writing recursion has left me with such deep an impression that it is the only way I can think of when dealing with recursion. I need to practice more on the second way. Also the use of eval and perform is also worth looking back on. I am glad I am reminded to revise my slogs, it is a great way to reinforce my knowledge and prepare for my test. 
   
So long, farewell!
  Dark Fox

Slog for week 12

    School is over, but this will not  be my last slog. Over the semester, I changed from someone who was even afraid of hearing the name 'computer science' to a big fan of it. It was of great help writing slogs to keep track of my questions and my progress. It encouraged me to learn more so that I can write more.
    This course is of good pace, and not very hard to follow in general. However, when TAs were on strike, it was a  real challenge for me to work things through without their help. I was kind of slow at getting the ideas taught in class, but the labs were really designed for people like me, to practice and examine my ideas.
    Over the semester, I have learned about class and subclass, stack and queue, nested list and tree(binary tree and best sorted tree), efficiency and most importantly, recursion. The reason why I think recursion is the most important is that it is the base of many other concepts listed above, and to be honest, it is really hard for me. Even though I have managed to use it right for a lot of times, I still need much practice: everytime when I am using it, it will still take me a lot of time to think carefully about it.
    Through this course I also met some good friends, like my assignment partners, who are really lovely. I love the way we worked together:  the brainstorm we had, the debugging process and the way we helped each other out.
    This course has got me interested in computer science every since I saw the professor using the turtle to draw something. I started to have creative ideas and use programming knowledge to design things for other subjects, such as a class of matrices in math and a program to simulate wave interference in physics. The more I learn, the more excited I am seeking for more.
    So I make a commitment here, though this is the last computer science course for my subject requirement, I will still keep learning computer science, either through other courses or on my own. My Slog journey has just begun.


Love
Dark Fox