Friday, 1 April 2016

Week 11 - Reflection on Week 7

To be honest, I have taken this computer science course just for a compulsory for my math specialist. In high school, I have never tried programming before and it was a new world to me! After these weeks of coding, designing, and thinking like a computer scientist, I would say that I really appreciate myself on how much time I have put into this course!

As a reflection on the recursion topic I have discussed earlier, recursion has became one of the topic I was really looking forward to think more function that can work with it! I love the feeling when I found out that I got the right recursion function and it all worked out!

We know that in Python, a function can call other functions. It is even possible for the function to call itself. These type of construct are termed as recursive functions. There are three main advantages of recursion that I found really helpful while I was working on my assignments, the thinking on recursion method provokes me to consider other functions which can work as well. So I have came up with 3 advantages and 3 disadvantages:

Advantages:
1) Recursive functions make the code look clean and elegant
2) A complex task can be broken down into simpler sub-problems using recursion
3) Sequence generation is easier with recursion than using some nested iteration

Disadvantages:
1) Sometimes the logic behind recursion is hard to follow through
2) recursive calls are expensive and inefficient as they take up a lot of memory and time
3) Recursive functions are hard to debug


Tuesday, 8 March 2016

Week 7
Recursion

As a new comer to the Python programme, surprisingly, I enjoyed the topic on recursion! Recursion is a way of programming or coding a problem, in which a function calls itself one or more times in its body. Usually it returns the return value of this function call, where there are two cases, a base case and a general case (the recursive part). The amazing part is that the loop seems like an infinite one but it will eventually ended. The recursive code actually break down the problem from the big questions into smaller and smaller one.

To see professor writing out recursion codes in the lecture was not hard at all to understand it, even seemed really easy to me in some ways. However, in my turn on writing codes by my self, I struggled and spent a lot of time figuring out what should i put. By trying to trace along with the codes, this helped me a lot on understanding how a recursive code works, and thus gives me ideas on how should i write my codes. And as always, practices more and get familiar with the recursion!

I love how we do a lot of example on math functions like the factorial. As a mathematic specialist, this gives me tons of room to think about other functions as well, really interesting! I can see how recursion can have a really useful applications! After all, I was really enjoyed about these weeks lectures and topics, learned a lot and had so much fun through it.

Rebecca

Friday, 12 February 2016

Feb. 12 2016
Week 5

Linked List vs regular Python List, New Lecture Section

This week is full of up and down! In my opinion, I was fully prepared for the midterm, all codes and methods of writing docstrings were fulfilled in my mind. Unfortunately, I was in the group of people who got a fire alarm right after the midterm started like 5 seconds. That's too bad! I was going to sit down and kill the midterm!

Despite the fact that I was having a bad time with my midterm, I was originally in Joe Lim lecture for 5102, then I went to a new lecture section in health science building with professor Amir Chinaei. All I can say is he is the best computer science prof I have ever came across! Many examples, called out volunteers to let information make sense and easier to understand! I worked best with this kind of lecture style, Thank you so much!

We have learned the comparison of regular python list and linked list. Clear powerpoint slides and real life examples help me understand the pros and cons for each list very throughly. The most significant part that changes me in this week of studying time is that I started to actually writing the programme codes before looking at the answers online. This forces myself to understand how python think and response in certain way.

Looking forward to the professor's decisions about our midterm! And even more exciting on what knowledges what we can get from our lectures after the reading week!!

Friday, 29 January 2016

slog 1
Cheng
Shing Yan Rebecca
1001557095

Three weeks of csc148 course has passed and I have learned lots of new things and topics through the course. An even more depth understanding on the testing methods has inspired me even more through doing lots of exercise and examples. 

In particular, I enjoyed the most of this course is the tutorial section, where I have lots of chance to ask question, clarify what I am messing up with and forced myself to work on some programming during the end of the week.


This week, my schedule has been tightened a lot where I got two midterms along with another assignment, so time management was a huge part of my struggle this week. Luckily, I am fine with the new topics we have learned in this class, so thats not that bad after all.