Sunday, April 5, 2015

WEEK 12: Last Impression of CSC148

This week is the last week of this semester and we have finished this class in this week, and we only left final exam for us to do. However, this course leave a deep impact on me and enriched my knowledge of how to being a computer scientist in future, and totally changes my past opinion about computer scientists and understanding of it.  A computer scientist should have independent thought, that's why we'd better going to the labs to do some practice after lectures in each week. With an independent thought, we could understand the purpose of a project better and write the program easily.

We have learned several new knowledge which are much deeper than what we have learned from CSC108, which makes me feel stepping into a higher level of computer science.

Abstract data types(ADTs):

An abstract data type specifies clearly several methods and the docstrings and semantics of these operations which tell us what these methods work for, however, these operations do not particularly express the implementation of the operations, which make ADT abstract.

Class:
We define a class to help us solve problems easily with a set of methonds.
Class objects contain attributes and instantiations.The attributes in class refer to specific types of items in class. 

Recursion:
"When a function calls itself, we say that it is recursive." Recursion is not the only way to solve problems, however, recursion is necessary for computer scientists because of its conciseness.

WEEK 11: Review Past Posts

In this week, we have finished most tasks of CSC148 course. We have reviewed some knowledge we learned from CSC108, for instance, bubble sort, insertion sort and selection sort. Furthermore, we also expanded our understanding of different types of sort and developed abilities to designed new sort.

However, after revisiting my past slogs, I found what I thought about are not completed enough. Since several weeks past, for question I raised in week 4, should I keep property of father class in son class as its property or replace old property with a new son property, I should inherit the property of main class instead of replacing it. Because the son class is worked exactly for its father class, and it has same property of father class.

After learning what is class and how to design a class, we have stepped into another vital part of our lecture. Recursion can be used into designing different functions and solving time for computer to run them. In order to use recursion expertly, the first thing to do is to know what is the basic case of a function, then consider all possible conditions during the function is running. Moreover, it's important to know attributes of class so that recursion is writting in a correct way.