Sunday, 8 February 2015

Week5: Test1 and practice on ADT

    During this week, the first test of CSC148 took place and it turned out that it mainly covered the design of creating classes.Also, on this week's lab, we started to use ADC like Stack and Queue.

    Taking test is always a good way to find students' own weakness. And during this test, I find there is no big problem for me to implement an existing class but I am really not good at designing a new class to solve problems. For example, the question 1 really bothered me and it really took myself to work out it. From this test, I get to know I  should really do more exercise on designing class, my weakness is not about programming itself but about how to transfer a task faced by human to a model that the computer can solve.

   And during the lab, I started to work on ADT, Queue and Stack. I've learned some concepts about ADT in the lecture but found it difficult to use an ADT, and couldn't understand why we should use ADT.

    During using it, I found the key to use an ADT is to use its own method more. For example, as for Stack, we don't know how the elements are stored, in a list, or in a tuple? But it doesn't matter at all, we just use pop and push to delete or add elements.
 
    And why should we use ADT? It just is like in our daily, we don't always use row material to produce products. We sometimes use semi-finished products to produce. And the ADT is just like a semi-finished product, we don't need to write the ADT by ourselves, but we use some ADT to make something more complicated and useful. The skill to use ADT is extremely important for a programmer, in my opinion. Otherwise, we have to always use the most basic  method and function to work out everything, that would be really annoying when we deal with complicated problems.

No comments:

Post a Comment