Monday, March 23, 2015

Impression of Week 9

     I have nothing much to talk about week 9.
I had a second midterm test which was about tree, BTNode , BST and LLNode.
Since we had no labs due to strike, I was not confident about the material.
I know my professor will find a way to grade students efficiently, but i still worried about that the lab, quiz and this SLOG, that i put so much effort on, would not be graded in the worst case.

     I am not supporting the strike and also not against to the strike.
I just hope that they can make an agreement as soon as possible so that all the students in u of t, including myself, can have fair opportunities to learn with students in other universities.
Some of my tuition will go for taking lab, tutorial, and grading works so I can reflect my mistakes and learn from it.
However, I was not able to take lab and quiz regardless of my decision. 
I know that TAs are fighting for their own piece and fairness, but i also know a lot of students are suffering from absence of their TAs. 



Friday, March 20, 2015

Impressions of Week8.

    In this post, i will summarize the “Linked list” because i feel I get lost in this week.


LLNode


Linked list is data structure which has node(data) and link connecting each nodes .
Each node also contains “reference address”(This is just for my understanding. Not formal vocabulary describing LLNode.) which tells the next node.

LLNode is generally considered as “Recursive data structure”.
The node can have next data (node.next) or it can be simply a single node contains single value in which node.next is None.

According to this code, self.cargo is the value of the node and self.next is reference address. 

This is how you make node1, node2, and node3 with value 1 , 2 and 3 respectively.
If i visualize this sturcture, I can come up with something like this. 


As you can observe, the nodes are not connected to each other, they are just three single nodes.
If I want to make them to be connected, I can do this by assigning node2 as node1.next and node3 as node2.next. 


Then I will come up with this kind of data structure! 

In the last blog post, I said ‘I don’t understand why people made this kind of data structure since we already have “List” object.'
However, now I totally get why this data structure has been developed and realized that this LLNode is totally different concept compare to list object.
We can take some advantages from LLNode :
  • You never run out of room and have to copy to a new location.
  • Adding & deleting in the middle of the list is simpler.
As always, however, there are some disadvantage if there are advantages!!!
    - NO random access!
    - Finding list element N is slower when N is large.


Friday, March 13, 2015

Impressions of Week 7

From week 4 or 5,  I’ve started learning about recursion.
As mentioned before on my post, I am pretty impressed by how recursion methods work.
I am very interested in solving recursive problems although I felt they are not fully understandable.
Trees, BTNode, BST, and even LLNode, they are all about recursion.
Trees are my favorite parts, so do BT and BST.
They have exactly the same features except for only few things.
Tree is a data structure that emulates a tree design with a set of linked nodes.
The reason why I like it the most is because i can easily capture the idea.
Which means that I can guess the appropriate algorithm by just looking at the structure. 
My understanding of BT and BST is so simple. 
BT is just tree which can have only up to 2 children and BST is BT but we call one child as left
and the other as right.
Left is smaller than parent value and right is bigger than parent value.
Personally prefer using BST since the children are positioned left or right by there value compare to their parent, i can know relative value of each data.
Well, this post is about writing MY thought and impression about week 8.
And I do not know why people made “LLNode” and what is the point of using LLNode.
I only know people made it because they needed it. 
But so far, I DO NOT KNOW.

Tuesday, February 24, 2015

Summary of Object-Oriented Programming concepts

       Object-Oriented Programming(OOP) is a programming methodology based on objects, instead of just functions and procedures. 

For better understanding, I will start off with my understanding of an object and class.
Everything in reality can be an object.
For instance, let’s assume ‘cat’ is an object. 
Then this cat has its characteristics or properties (color, name, weight). 
And also, this cat can generate or do some  actions(mewing, eating, sleeping, hiding).

       In OOP, color,name,weight are called ‘property’ and actions are ‘method’.
Let me have a deeply applied example, “Black cat is sleeping.”
From above sentence, ‘cat' is one of the object.  
And the adjective that describes its color ‘black’ is a property.    
The behavior ‘sleeping’ is a method.
Just like a cat, dog, wolf and tiger can be an object!                         
They have very similar property and methods, in this case, I can group them by some standards into a “class".

        In OOP, objects can  exchange information in a standardized manner, and can be combined with one another as modules or blocks. Each object is independent which means that it can be changed without affecting other objects or module.
Objects can run (execute) by itself, and can be interlocked with other objects.

Wednesday, February 11, 2015

Impressions of tracing recursion

     This week, i learn about the recursion. 
Recursion is a method of coding a problem, in which a function calls itself.
For example, finding a maximum element in a list. We already know the ‘max()’ function but it only works with a flat list (list whose elements are just number, not a list or nested list).
If i didn’t learn about the recursion method, i would approach this problem by making a empty list called ‘l’ and put all the element in the argument to 'l'. Then i will get a flat list even if the argument was a list of list of list of list… so on.
Since argument is turned into a flat list, now i can use ‘max()’ function.

    However, my function would be very long , complicated and messy.  
As you know, “Simple is better”.
Recursion method will help my function to be simpler. BUT, I have to check whether i can use recursion method in this problem first.

    Let’s say my argument was s = [1, 2, [4, 3], [5 ,2], 8, 7]
What i have to do is, finding the maximum element in the nested list so that i can get s = [1, 2, 4, 5, 8, 7]. Then i can use max() function from this point.
So the task is the same (which is finding a max) if i break the problem down into smaller and smaller subproblems. Now i confirm this problem can be applied to recursion.



    This problem was covered in my computer science lecture. So i will just post the solution here, 
     You will easily capture how simple the code is. 
     This is the beauty of recursion!!


Wednesday, February 4, 2015

Impression of first few weeks


I really want to be honest with this topic.
My experience with CSC 108 was awesome. 
Especially, PCRS was a pretty impressive system.
This was my routine when i was taking 108 last semester.
1. Watching the lecture vidoes for purpose of previewing.
2. Go to lecture. 
            It was time to be more confident about what i already learned form PCRS and learned more 
            about what i was not sure.
        3. Do the exercise and perform activities in PCRS . This helped me to do the self assessment.

      With CSC148, I do not have such a system.
I was satisfied with the result from 108 and i was expecting to see the same routine in 148. However, It was totally different in reality.
I have a lab instead of PCRS.
Of course there are pros and cons of taking lab. But just in my opinion, I liked PCRS more than lab.
In questions(in PCRS exercises), they always provide the examples so i know what i have to do and what instructor wants me to answer. BUT in lab, I have most troubles in understanding the context or job. Simply, i don’t know what i have to do.
I know this is because CSC148 is more enhanced version of CSC108.
But, i really want a system like PCRS which provides more chances to estimate my ability or confidence about the materials.
I am not criticizing about teaching but i just sincerely hope there are more opportunities to practice the concept.



Wednesday, January 21, 2015

Why geeks should write

         For those of you who may read this post and have no idea about what it means by “geeks”, my interpretation of word “geek” is a person who is very knowledgeable about computer, internet and technology or computer scientists are also called as geeks.


         There are many things that I have learned from CSC courses but I want to mention about two specific things:

  1. My brain storage is not big enough to take all the knowledge about computer science. There are specific parts that I am confident about and parts that I am not.
  2. It is a lot better if I work in a team.
         According to my experiences, "working in a team” always brought the better result than "working alone".
We all know the phrase “Two heads are better than one.” Especially for computer science, there isn't one right answer. There are many algorithms we can approach to answer the problems. Also,  collaborating with other helped identify my own strengths and weaknesses and I can strengthen my weakness by learning from team members. But it requires good communication among the team members.
As a person whose first language is not English, I am really afraid of working with people but it becomes clear that I am having troubles communicating with others due to lack of speaking plain English.
I am still very uncomfortable with writing my thought and share it in public.
However, I am pretty sure blogging is a good practice of organizing my thought and expressing my opinion to others and it is a valuable activity for me who want to be a computer scientist.
       
         I feel I am little off topic since I am too subjective about the topic, but blog is the place where I can put my personal and subjective thought about things freely. 
So I will just stick with this style !