Sunday, March 29, 2015

week 11, Revisit week 2's slog

    Nine weeks has pass after i wrote my impression about how bad it was on the second week of class. If i go back to nine week's ago i guess i won't be writing about how bad that week was but instead, how good it is. Hence, i guess i can conclude that i strongly disagree about my impression of week 2. Here is some reason on why i changed my point of view.
    First of all, nine week's of lecture would really affect my knowledge and how i think about stuff, so it is obvious that my point of view will also change as time passes. Secondly, the lab on queue ADT had a great impact on how i think about ADT, after that lab my understanding of ADT grows and i can understand how stack works as well. Finally, another big reason why i slack off that week is because that it is the second week after my winter break! Honestly speaking my winter break is a mess, i think my brain "stopped" functioning during the two weeks of break since i didn't do any school related work. I guess it takes about 2-3 weeks until my brain "start" functioning again, and now, as the summer break is coming eventual there is still exams my brain is starting to take a break.
    To conclude, there's maybe more reasons and factors that i didn't include on why i disagree on my past self, but the three reason's above were the few major reasons on why i disagree with myself.

Sunday, March 22, 2015

week 10, end of assignment 2 and the start of assignment 3

    Due to the TA strike, the release of our A2 mark is postponed to sometime in the future. Eventual there is a few unit-test for us to use to test our minimax strategy but the precise mark isn't down yet, but this won't stop the arrival of A3 as it is posted this Tuesday. In this blog i will be mainly be talking about A3 since this is what we discussed in this week's lecture.
    In A3 we are given two options on the continue study of computer game strategies. In option A, we are asked to implement three optimizations on our minimax strategy in A2, so for those who didn't finish/understood minimax when working on A2, there is a option B for you. The three optimizations are memorization, pruning, and myopia. For memorization, we need to optimize the strategy to remember the game state that they have run through before. For example, in a game of substractsquare, if minimax have already run through the result of the game state with current number 5, then as it go through the same game state, it would just return the result that is already checked before. The second optimization is pruning, which is asking us to optimize our code so that it only investigate the move that would change the result. Furthermore, myopia, this optimization will limit how far minimax looks ahead of the game, and this is where the method rough_outcome comes into work.
    Next, we will be talking about the second option which asks us to investigate the space of game sequences. In this option we will investigate statistics such as how many game states and final game states are there? Also, we need to know the redundancy (i.e portion of the game that is repetitive) which is strongly related to the first optimization we need to do in option A, memorization.
    To conclude, i think my team would all vote doing option B (including me) because at least for now i don't understand what should be done in the second optimization for option A pruning. Also, in A2 i have been struggling with minimax too much which at the end gave me a "fear" if i see it crash again.

Sunday, March 15, 2015

Week 9, midterm and more binary search tree

    Time went by fast, with 2 more midterm and 4 more final exam to go, my first year of university will come to a end. The midterm written this week is very different from the previous one, where the first midterm is more about a whole program and midterm two about recursive base method/functions. The second midterm was on average harder then the first one and luckily we are allow to bring cheat sheet or else i would fail on the question about post-order (can't remember names).
    This week we only had one lecture and the material covered is the two method of the binary search tree, insert and delete. Both method is both pretty hard to understood and as the professor implement the method in class i didn't quite get it, because there is so many cases when trying to delete a node from a binary search tree and i think the huge amount of case is the hard part in this method, the recursive part was not that hard to understand. Moreover, when i work on this week's lab, my understanding of this two method becomes better, and this lab was pretty short compare to the ones before.
    To conclude, due to the test this week we only had one lecture and we don't have labs due to the TA strike, so there is not a lot to talk about.

Sunday, March 8, 2015

week 8, assignment 2 and linked list

    I think this week has been very stressful for everyone due to the TA strike and for my fellow classmate, assignment 2 has been a total disaster. For me, the minimax strategy is just mind blowing and i haven't had a good sleep until the last day when i finally finish the algorithm. I can't believe how happy i am after finishing the assignment and i had the most comfortable night after class started.
    That's some impression for my assignment 2 and back to this week's topic, linked list. From CSC108 to the day before this week, everything that is taught i have either learned or heard before, but linked list is the first topic in university that i completely new to me. From my understanding of linked list now, linked list is a data type that consist of similar objects 'linked' together with us only knowing the first and last set of object. Another way of saying this is that if we want to access all the objects in a linked list, we need to iterate the list one by one until the last object in the list is reached. In this week's lab (eventual there is no TAs) we implemented some method in the linked list class, and it turns out that it is not that hard to understand linked list.
    To conclude, linked list data i guess is another type of ADT, which could be wrong, and a least to this point, it is not hard to understood the function of linked list.
    

Sunday, March 1, 2015

Week 7, summary of recursion

    As the reading week went pass by, I am overwhelmed with things coming at me not prepared (since I wasted my reading week doing nothing). Some few things that bothers me these days are midterm 2/finals incoming, and my computer science assignment which I haven't started yet (I blame myself). Talking about the assignment due next week, most of the hard methods we are writing this assignment requires the use of recursion.
    My first interaction with the word recursion is when a few of my friends complain to me about how hard and abstract recursion is. So when I am studying computer science and when we are at the concept of recursion, it sort of gave me a "fear" and "excitement", but it turns out that recursion is not that hard at all. The "trick" for me in learning recursion is to only think one layer at a time, because recursion can be very logically tricky when we try to think it as a multiple layer.
    A recursive function consist of two parts, a base case and a recursive case where the base case (can also interpret as a terminal case) is a case to stop the function, for example if we are trying to write a recursive function for a maze solving problem, the base case can be when we got to a dead end or when we reach the exit.
    A recursive case is the part that made recursion so powerful, the recursive case splits a hard problem into similar but simply case and the function will keep calling itself until all the "simple" case has reached to it's base case. For example, if we use the maze problem again a recursive case for that would be checking what will happen if we go left, right, up, and down, and if we move left, what would happen if we go left, right, up, and down, and so on. Did you notice the power of recursion? We can solve a very complicated problem which requires a possible run time of n (where n is the max(length,width) of the maze) into a few hundred line of code.

Friday, February 20, 2015

Week 6, summary of object-oriented programming

    I have been killing time this reading week sleeping all day long and i think my IQ will decrease in a decent speed if i keep doing that. So today when i finally decide to open up some school relative stuff i notice that i forgot to update my slog last week. This week is so joyful at the beginning and painful at the end! 
    Back to the topic, this week I will be summarizing the concept of object_oriented programming which i will refer to as OOP in this slog. To start, OOP is a concept of programming which will save programmer's a lot of time writing duplicated code by using super class and sub class. For example, if I want to write some code that organize all humanity into a database, i would create a super class that contain's general feature's of human (i.e gender, height) and sub classes like student, teacher, engineer. This type of programming style would save a lot of time writing code and would be very useful when we try to sort a groups of people in different arrays. To conclude, OOP is a very useful concept in programming with any language since it is efficient, clear (no more then 1000 line of code in one class), and time saving. 

here is a slog that i gave feedback on.
http://hrmvp94.blogspot.ca/2015/02/summary-of-object-oriented-programming.html?showComment=1424472113007#c3219334510117734120

Sunday, February 8, 2015

week 5, midterms and queue ADT

    Lots of things happened after a harsh and stressful week of midterm and i guess i will start off my new week with another update of my slog. I had three midterms this week and the outcome was terrible for two and unknown for one, the unknown one is the csc148 midterm which i felt pretty confident off but since the mark is still not posted, i will talk about it next time. This week we only have 1 lecture because of the midterm and the professor gave us an example on how the stack ADT works, a example on how stack can be use to check if parentheses are correct. Talking about the use of ADT, in this week's lab exercise introduce to more use of stack and also introduced to a new ADT queue. The use of queue is very clearly explained and i can think of a few example of how queue would be useful right now, for example, a coffee shop line up, a MOBA game would use queue to search for opponent given the fact that you line up first. Maybe there is also a lot of applications that uses stack but the use of queue seem more clearer to me at a daily bases. To conclude, things that i found new this week would be the professor introducing the use of stack and the concept of how a queue works and both are pretty straight forward concepts.

Sunday, February 1, 2015

week 4, recursion

    As stated on topic of this week, we started to learn the concept of recursion in python, and it is a very interesting way of solving problem which can only be done by computer. From my understanding of recursion, it is a method of solving problems recursively by breaking a single problem into many single parts and solving them one by one. Furthermore, the first example that our professor gave us when we started recursion is the sum_list method. 
    The function of this method is to sum up all elements of a given list and the elements in it's sub-list. The body of this function can really gave people a headache for those who first seen how recursion works, because the functions calls itself within the function which seems mind blowing! The time for getting how this method works for everyone is different, some people might think about this for days and months or even years and still can't get how recursion work, but this really depend on how everyone's mind work. For me, the word recursion was first heard when i am studying computer science in high school and at the end of the year, our teacher gave us a peek on how recursion works with it's recursive case and terminal case, she even put this on the final exam! This concept i understood in days and i guess a "normal" geek can also do so.
    To conclude, since i already know how recursion worked this week's lecture wasn't that abstract for me and the practical also went smoothly. 

Sunday, January 25, 2015

Week 3, why geeks should write?

    As stated on the topic and last week's blog, this week i will be writing about a special topic. Why geeks should write? To those who can't really understand the meaning of being a geek, a geek is someone with a abnormal pursuit and over intelligent, for example a mathematician or a computer scientist is understand as a geek to many people. Furthermore, the reason that a geek should know how to write can be very general, that is geeks are still normal people, eventual they normally "talk" to computers but writing is still a very important skill to have in order to normally communicate to people around you.
    Moreover, if geeks don't write then we won't be living in such a society which we called modern, because when that happens, non-geeks can't communicate with geeks on social networks and maybe geeks will have a society of their own where they only network important foundations to people in their society. Imagine the result that occurs by that would postponed the modern society we lived in now to hundreds year later, because geeks are those with abnormal pursuit and they normally are the people who created new areas of study. To conclude, geeks can't write implies geeks can't communicate with non-geeks implies modern world postponed hundreds of year which conclude why geeks should write.

Sunday, January 18, 2015

week 2, abstract data type and labs starts!

    As promise from last week, i will dive in the topic that was taught to us this week and also talk about lab and quiz. As i said last week, it is always hard to start writing for me so i will start of with some of my personal thought about the course content this week and using one work to describe it i would say "abstract". In this weeks lecture our professor jumped right into the topic of ADTs and without much explanation he started on the stack class design. The process is about 5 minute or so and i am completely lose during that lecture, but lucky after that lecture i consulted to some of my friends who's also in csc148h1 and they "pulled" me back into this class. Furthermore, after a day or so i studied the lecture slide a few times over and i think i am back on tract with the course materials and ready for next week. That concludes my frustrating experiment for this week's lecture and let's talk about the labs and quiz.
    Having a bad start with my first lab, i went on the wrong bus and was late but the good news is that the lab exercise was fairly straight forward since it is only simply designing some method for a class. As a result of that the quiz is also very straightforward (we only need to write a __init__ method) and easy to ace. To conclude, my first lab for this course went out very smoothly comparing to this week's lecture, but i think everything will go out fine after and next week we have a specific topic on "Why geeks should write?".

Sunday, January 11, 2015

Class starts again! Week 1 introduction

    To start of my blog for this semester i would like to say something that always comes into my mind whenever i "start" on something. That is the start and end of everything is way more harder comparing to the process in between. This is always the case for me when i start of a assignment, test, essay and even this blog. Moreover, my name is Aaron (Yao Sen) Chen and i am a first year student in UofT and it has been a very productive year until my winter break starts aka sleep until noon and eat and sleep again. Well, despite how bad my break was, i would still hope that the rest of the year goes well for me and this first blog is how i would start it. To conclude, since it is still the first week and not a lot of professor started teaching in depth so the "interesting" course content will come next week.