Friday, February 27, 2015

Summary about Abstract Data Type

An abstract data type is a new type of data used to store some information and have some operations on that information by using object oriented programming techniques. It is like creating a new type of variable used to store information. List, dictionary, tuple, etc. are all abstract data type that Python has already created for us. What we learned in the class is how to create a new type of abstract data type and its operations.
First, we created an abstract data type called stack. The property of a stack is similar to a list. It can store several items. It has a operation of removing the top item of the stack. It also has a operation of pushing item to the top of the stack. It can also tell if the stack is empty. Since the property is pretty similar to list, we can use list to create this abstract data type. All we need to add is pushing the item to the top and checking if the stack is empty functions.
Second, we practiced another abstract data type that is similar to stack called queue during a week's lab. It is similar to stack, but the difference is that it pushes item to the bottom of the queue and remove item from the bottom.
Third, we learned about ADT called tree. It is a type of ADT that stores a series of data that have relationship with each other. It can have a lot of operations and most of its operations involve using recursion. That's what makes this type of abstract data hard. 
The picture is an visualized example of a tree data type. It looks like a tree grows some leaves.

Overall, programming world are full of abstract data type. A program is built by abstract data type. They are used to store information and provide operations for the program. The core of programming is the use of abstract data type and their interactions. So, creating a mature abstract data type is essential for the convenience of programming.

Sunday, February 15, 2015

courSe LOG Entry 4

We learned about a new abstract data type called tree this week. The concept of tree is fair to understand. The methods of this data type requires recursion. I have been having a fever this week so that I am not really in a good condition for studying. I can understand the concept of tree and I am able to understand why using those recursions.
I basically did nothing in this week's lab. I was really sick and dizzy. I cannot read things so that I just   sit there and wait until quiz. I am not sure if I did the quiz right.
Some marks came out this week. I am satisfied with my mid-term and assignment 1 mark. I am not satisfied with my SLOG mark. I should do better in writing the SLOG, but my body condition this week really frustrates me so that my brain was unclear. I will do better in next slog.

Monday, February 9, 2015

courSe LOG Entry 3

We learned more about recursion last week.
The biggest challenge last week is the term test on Wednesday. I think I did not bad for this test. The first question takes the most time. It took time to identify the attribute and the method of the class. Once the identification is done, it is easy to do. Writing the docstring also took a lot of time. Luckily, the following question is straightforward. Tracing the recursion code is not a problem at all. It did not take much time. The last question is about writing a subclass. I am confident about getting the three questions right.
The lab of last week did not require much work to do. It took me and the partner 45 minutes to finish all the exercises. Then, we had nothing to do. The exercise is about two abstract data type stack and queue. The quiz is also straightforward.
Overall, although we had a term test last week, last week's work is fairly easy.