Friday, 8 April 2016
Week 11
I want to look back upon my views which I posted during Week 7 about recursion. The labs and the assignment made me a lot more comfortable with recursion and I finally feel like i have grasped the concept.
Overall I feel CSC148 started off as a bit of an easy course but nearing the end it is becoming slightly more difficult. In order to get into my preferred POST I need to study harder and practice the code provided as well as a few variations of it. I feel as though I have not put in enough effort as I need to be putting into this course which means I need to study really hard for the final. I think my mark in CSC 148 is at a good place right now but I need to do very well so that my 148 mark balances out my CSC 165 mark. I really want to get into the POSt and so the upcoming finals is where I need to give it my all.
Thursday, 24 March 2016
Week 10!
This week we talked about how efficient various algorithms were. It is surprising to see how much faster certain algorithms are in comparison to others. For example, when it comes to a very large list, binary search is significantly faster, due to the fact that it is sorted and this the amount of elements to look through becomes smaller each time as you pinpoint the location of the element. We also talked about the various sorting algorithms and the pros and cons of each. I feel like this is a very important topic because in the real word, a program should use the most efficient route to achieve a goal. In assignment 2, I noticed we were told to make our program solve the puzzles the most efficient and fastest way. Through the assignment, I learned how to make programs more efficient, and also how to decide which algorithms to implement so that the search method goes through the shortest possible route
Thursday, 17 March 2016
Week 9
The midterm is over! I am actually a bit scared for this one because I feel like I blanked out on the test. The questions were fairly easy (except 1) and I really regret not taking the time to relax and calm down during the test to put myself together. Luckily my better midterm will be worth 16% while the worse one is 8%! I did very well on the first one so that alleviates a lot of pressure. This week we are further exploring binary search trees. BSTs are somewhat complicated but also very interesting. Hopefully by the end of the course I will be able to use them effectively!
Week 8
This week we looked at binary trees and traversing. It was confusing at the start but I went home and revised and after a few practice examples, I think I have the hang of it. Next week is the midterm so I will definitely make sure I know binary trees inside out because it will be on the test for sure. I spent most of this week working on other courses and as a result, did not get a chance to start Assignment 2. I am looking to start it after the midterm so that I can give it my full attention. I'm a bit scared for this upcoming midterm because it will include recursion. Although I have grasped the concept, it sometimes takes me a while to find a way to implement a recursive function. Hopefully this will improve with practice!
Thursday, 3 March 2016
Week 7!
In class, we have spent a good amount of time doing recursion and looking at examples where recursion makes things easier.Recursion is the process using a function inside itself. A recursive function usually takes form of a function that contains an if statement, and if the condition is true, it calls on the itself with a different parameter. If it is false, the function returns a value. That way, the recursive repeats itself until the parameter does not satisfy the condition.Basically, to sum it all up, there is a base case and the function will repeatedly call itself until the base case is satisfied. It will then go back words and complete the previous calls on itself until the original function call is done.
We have seen an example about going through nested lists. In the example,the if condition consisted of checking if the type of an object is a list. If that condition is true, the function is called on each element of the list. If it is false, it returns the value of the object.
I believe the key to fully understanding recursion is to know how to trace a recursive function. Once you have that down, it becomes fairly straight-forward. Prof. Danny said that recursion will become very important in this course so I am going to try and know all that there is to this interesting concept.
Thursday, 25 February 2016
Week 6!
Well we got our test marks back and I did very well. I am quite surprised actually, I felt as though we were short on time and so I was worried about not doing the questions to the best of my ability. I also had a feeling my docstrings were not perfect either but I guess it was enough for me to get a good mark! I did not study much for this test because the concepts that were tested were quite simple. The next midterm however will include linked lists and recursion which are things I am not too confident on just yet. I will definitely be studying more for the upcoming midterm. My partner and I have finished Assignment 1 and we are confident in our program. We spent most of the reading week working on it so I am hoping for a good mark.
Lectures are going well, I think the examples using recursion helped me understand recursion a lot more. We also discussed the fire alarm incident. Luckily it doesn't affect me but I think it sucks for those who were affected. I don't think it will have a negative impact but the stress of thinking about how this would affect their mark must be killing them.
Well that's it for this week, not much more to say!
Thursday, 4 February 2016
Week 4 Post
Last week we learned about stacks, queues an linked lists. These are known as Abstract Data Types. They seem to be pretty straight forward so far as we have not started implementing them yet. The lab for week 3 was based on classes and I did not have much difficulty doing it. It helped me understand the concepts of super classes, sub-classes and inheritance. The quiz was not bad either, but the wording confused me so I'm not quite sure how I did on it. We have an assignment due in 2 weeks that I have not started yet. I've read over it, it doesn't seem too bad so I'm not worried.
Thursday, 28 January 2016
Week 1 SLOG
So far in CSC 148, we have discussed a fair amount about classes. It was mostly review from CSC 108 but it served as a good refresher coming back from the break. We also went over a new way of writing type contracts where you would write something like “@type name: string”. Python actually recognizes this as a type contract which is something I found to be really cool as it would come in handy when coding. The course material so far has been straight-forward due to the fact that it was mostly review, but I did however get confused when my prof Danny mentioned ‘property’. This was new to me and I may have not been paying attention when he explained it... Luckily the course notes came to my rescue, they explained it very well and they also were easy to read and understand. Our first lab was fun to do although I did struggle on it for a while which is something I am concerned about. I’m guessing it’s because it has been a while since I’ve written a program. Hopefully as I get back into it, things will go more smoothly. The quiz seemed easy although I may have read the question wrong, I’ll find out today in tutorial if I did. That’s it for this week, I’ll update soon!
Subscribe to:
Posts (Atom)