ADT is a useful general class which makes it possible to add or pop element from a queue in a certain sequence, whether it is a first added first removed like class Queue or the reverse one like stack.
ADT is useful not only because it can be applied alone but also because it can be used in other class just like Tree in which you can put the children which is a list of elements that you can add or pop new ones to or from. It is true that ADT is a basic component of the class Tree.
Also the property of sequence ensures that all the elements are allocated in order. This property ensures that in the hierarchy things the property of the different levels can be kept and changed in order.
In the following assignment to be done, ADT should very useful and I will use it well to handle the following work.
CSC148 SLOG#1
2015年2月26日星期四
2015年2月15日星期日
A summary of oriented object
In the last week I learned a special class of oriented objects: Tree. The Tree class has the structure in which each nodes have connection with each other with no loop-like connection in it. What's more, it has a hierarchical structure in it. Though I still don't know when exactly to use the structure, but if I encounter code like this, implementing the Tree class can be very useful.
What's more, when expanding the Tree structure with nested list or other sequences, we have to implement the recursion and queue things we learned before.Like when implementing the descendents_from_list method, the queue class is imported while using the contains method the recursion is useful since we may encounter some complicated structure. It becomes hard for me to understand some of the code described in the slides and the Python draft in that it combines all the things we have learned so far. But I'll try to figure it out anyway.
What's more, when expanding the Tree structure with nested list or other sequences, we have to implement the recursion and queue things we learned before.Like when implementing the descendents_from_list method, the queue class is imported while using the contains method the recursion is useful since we may encounter some complicated structure. It becomes hard for me to understand some of the code described in the slides and the Python draft in that it combines all the things we have learned so far. But I'll try to figure it out anyway.
2015年2月4日星期三
Summary until the end of test1
It has been a month since I took CSC148. In this month, I learned quite a lot knowledge about programming.
First I get a deeper understanding about class this term. In the course of 108, the structure of the whole class is arranged by the instructors, all we need to do is to fill the class with method of right code. But now we need to write the whole structure by ourselves --- to find the proper name of the class, to find useful attributes, to get valid methods to write. We also need to construct parent class along with child class to make the code easy. Doing all these things independently make me feel more qualified as a programmer.
Another thing learned is the recursion. The recursion makes the nested sequence much more easier to evaluate. From easy steps to trace complicated forms, I am now able to figure out the regulation within the recursion. However I am not able to write my own recursion by now. I'll try to learn how to write in the future.
First I get a deeper understanding about class this term. In the course of 108, the structure of the whole class is arranged by the instructors, all we need to do is to fill the class with method of right code. But now we need to write the whole structure by ourselves --- to find the proper name of the class, to find useful attributes, to get valid methods to write. We also need to construct parent class along with child class to make the code easy. Doing all these things independently make me feel more qualified as a programmer.
Another thing learned is the recursion. The recursion makes the nested sequence much more easier to evaluate. From easy steps to trace complicated forms, I am now able to figure out the regulation within the recursion. However I am not able to write my own recursion by now. I'll try to learn how to write in the future.
2015年1月29日星期四
The experience of doing assignment1
Frankly speaking, I didn't suppose the CSC148 course to be so hard. Never did I have any foundation on programming and that makes it tough to accomplish my first assignment.
In the course not all the stuff given by the instructor is clear to me. Some new methods or built-in functions which is not covered in 108's lecture are not explained specifically. So when I was doing the assignment I couldn't make it to write some methods. Either I could not figure out the whole structure consisting of classes. I felt very frustrated. So again I read about the course note post on the course website again and again and review the methods in 108. I think that I learned quite a lot after class to make me qualified for programming.
But finally I together with my partners decided to start from the game interface to find out what methods are required. After we run the code and find it available to play with the interface I even felt very proud of myself. Then we have to classify the methods into different classes and find what methods are generic so that can be under the super class. Though we find it very hard to transfer all the codes we write for the interface into the class game_view, we finally made it.
https://www.youtube.com/watch?v=QwnE8DQm-AIHahahaha during the most hard time we were listening to some really cool music making us motivated to carry on.
Finally we wrote the docstring and examples. May not so perfect but the outcome is very satisfying to me considering the tough start of the whole work.
In the course not all the stuff given by the instructor is clear to me. Some new methods or built-in functions which is not covered in 108's lecture are not explained specifically. So when I was doing the assignment I couldn't make it to write some methods. Either I could not figure out the whole structure consisting of classes. I felt very frustrated. So again I read about the course note post on the course website again and again and review the methods in 108. I think that I learned quite a lot after class to make me qualified for programming.
But finally I together with my partners decided to start from the game interface to find out what methods are required. After we run the code and find it available to play with the interface I even felt very proud of myself. Then we have to classify the methods into different classes and find what methods are generic so that can be under the super class. Though we find it very hard to transfer all the codes we write for the interface into the class game_view, we finally made it.
https://www.youtube.com/watch?v=QwnE8DQm-AIHahahaha during the most hard time we were listening to some really cool music making us motivated to carry on.
Finally we wrote the docstring and examples. May not so perfect but the outcome is very satisfying to me considering the tough start of the whole work.
2015年1月21日星期三
Why geeks should write?
This is my first slog.
Frankly speaking, I just began my experience of programming 3 months ago. From now on, I'll keep tranck of my life as a geek in CS on this blog.
From my own angle, writing down things that learned from courses and how I feel during the course should help me have a better understanding of the in-course material. It's kind of like a online note that you can look up anytime in need. The stuff you write down immediately is fresh and hot with your own understanding. Thus it is concise and clear and easy to check.
The writing is also a diary that keeps record of your feeling during the learning process. After finishing the course or maybe even after becoming professional, I can look back what I wrote as a student and it will remind me of my unforgettable
campus life---stay up night writing codes, feeling frustrated running out of errors and the excite to finish a programme. All the precious experiences should be treasured in my heart as well as in my writings.
That's why I think geeks should write. Hope that I can make good use of the blog and insist on it.
Frankly speaking, I just began my experience of programming 3 months ago. From now on, I'll keep tranck of my life as a geek in CS on this blog.
From my own angle, writing down things that learned from courses and how I feel during the course should help me have a better understanding of the in-course material. It's kind of like a online note that you can look up anytime in need. The stuff you write down immediately is fresh and hot with your own understanding. Thus it is concise and clear and easy to check.
The writing is also a diary that keeps record of your feeling during the learning process. After finishing the course or maybe even after becoming professional, I can look back what I wrote as a student and it will remind me of my unforgettable
campus life---stay up night writing codes, feeling frustrated running out of errors and the excite to finish a programme. All the precious experiences should be treasured in my heart as well as in my writings.
That's why I think geeks should write. Hope that I can make good use of the blog and insist on it.
订阅:
评论 (Atom)