Friday, 3 April 2015

Week 12 !!!!



Hi guys!!

I can’t believe second semester is done. We finished three assignments, wrote two term tests, and are now going to write the final exam. But before that, of course, we’re all going to finish writing our SLOGs. I will admit, in the first week, I wasn’t thrilled at having to write posts weekly but it honestly helped me realize what concepts I was bad at, what I needed more practice in, what I understood, etc. And now here we are, at week twelve of the course.

Overall, CSC148 exceeded my expectations. The course was extremely interesting and the assignments were unique (despite all the frustration when methods wouldn’t work the way we’d hoped), and the professors were extremely helpful.

We started with learning about Object Oriented Programming and ADTs. Then we learned about inheritance, recursion (including trees), testing, and run-time efficiency. With all these major topics, I found them extremely confusing at first but as we did the labs, made use of the concept and applied it, they started becoming clearer. However, ones I had the hardest times with were recursion and testing but I have improved significantly since we first encountered them. And I really want to thank professors Diane and Danny, and all our CS TAs who answered questions and cleared up misconceptions regarding tough concepts.   

Overall, I really enjoyed CSC148 and learned valuable lessons in Computer Science throughout the semester. It changed the way I thought of Computer Science and I just might pursue a minor in Computer Science after having positive experiences in both 108 and 148.


Week 11 of CSC148



Hello everyone,

This week’s SLOG post requires us to revisit an old blog post and see whether or not we agree with the former versions of ourselves. I decided to revisit my Week 5 SLOG post where I talk about my experiences with learning recursion in class.

As I’m working on Assignment 3, I’m beginning to realize just how much practice we’ve gained in writing recursive code this semester. All the functions we’ve done since week five have required recursive thinking, which has helped me improve my recursive thinking abilities. I do agree with my old self as I still believe that recursion is very important in the world of Computer Science. It makes our code more efficient and concise. For example, some of the methods we’ve implemented in assignments or labs would be incredibly hard to read if we’d written them without recursion. I think recursion has gained more importance in my eyes since I wrote that post but I had still admired it back then. I just wasn’t as confident in writing recursive code but that changed over the course of the semester. As for finding it difficult to process, that was very true at the beginning, but not as much now as I’ve gotten better over time. Of course, I’m not an experienced computer science yet and still find difficulties here and there when attempting various functions, but drawing pictures and asking for subtle hints from professors has helped me along the way.

This week’s post also asks us to compare our experiences with those of our classmates. Our experiences with recursion were similar. At first, many of us found it difficult to comprehend but now we see its efficiency and have gotten better at reading and writing recursive code.

But anyway, that’s all for now guys. Until next week. =)


Week 10 of CSC148



Hi everyone!!

Last week in class we learned about BST Mutation.  A binary search tree (BST) is a tree where each node’s value is greater than all values in its left subtree but smaller than all the values in its right subtree. The way we coded for a typical BST in Python was by creating two classes- BTNode and BST. BTNode represented one node in the BST while BST represented the whole Binary Search Tree structure.

Now that you understand what each class was like in the implementation of a BST, we can discuss the methods we coded for that mutated the BST: insert and delete.

To aid us in thinking effectively, we drew pictures with various cases that may be encountered and designed our code in a way that the code would work properly for each case. The coding was pretty complicated because there are many cases that need to be taken into consideration when developing a proper, efficient code but the whole concept of a BST is extremely useful and efficient. Finding an item in a BST is much easier than finding it in a traditional tree as it is sorted in a way and essentially cuts the search time in half.

Anyway, I’m certain that the concept of trees is crucial in the world of Computer Science and I will have to work on more methods that mutate trees to become more confident in developing code that performs mutations to Abstract Data Types.

Till next week, thanks!! =)