Thursday, 7 April 2016

Week 12

Here we are at the end. It flew by. It has been a lot of fun. I've really enjoyed the course, especially the assignments. I also performed better on the tests than I though I would at the beginning. I just need to continue that momentum for the final.

We learned about hash tables over the last couple of lectures. I'm not sure I fully grasp them. I get the basics, but I definitely don't think I could implement one if I were asked to. Maybe that would be good practice in case it is an exam question. It helps me to think of it as a master list with sublists, what we've been calling "buckets".

So I've got my work cut out for me in preparing for the exam. On top of the basic review of the material I will be focusing extra time on binary search trees, hash tables, and digging a little deeper into linked lists. I lost most of my points on the linked list question on T2.

Wednesday, 30 March 2016

Week 11

It has been a fun class, and feel like I've learned tons. Not sure how I'm going to remember it all for the final. But I had a great time on the assignments, I really think they are the best part of these CSC courses.

But let's revisit a topic. Binary search trees. Probably the one data structure I had the hardest time internalizing. In fact I'm still not sure I fully understand them. I did do a little extra work on my own and asked for help from some friends, so I do have a better grasp on them, but probably not as much as I should. My biggest mistake was approaching it exactly like a generic tree, not even thinking about storing the right and left sides in a variable. That is, or was, one of my mistakes from 108. I would forget that I could just store information in a variable. It seems like a very obvious solution to some but for some reason it seems to elude me when I need it most.

So I know going into the final I will have to put some extra effort in to binary trees as well as run-time analysis. Although, today's lecture kind of cleared some things up for me. There's only one last week for our SLOG, so be sure to tune in to get a sense of my final exam panic.


Monday, 28 March 2016

Week 10

I think this run-time business might be my weakest link in my overall understanding in computer science. It makes sense to me as it's being explained but is a little harder for me to conceptualize. Could just be my rusty mathematics. This and the binary search tree implementation will be two areas where I will have to put some extra attention in my exam study regimen.

I can't believe it is the last lab this week. It feels like we just started. The only thing left really is our assignment presentation. It has definitely been a fun class.

Friday, 18 March 2016

Week 9

Term test two went okay. I don't think I did as well as the first one, in fact I'm sure of it. But I don't think I did too bad. It'll depend on how it is graded.

So I've been grasping all of the abstract data types up to now but binary search trees are giving me some grief. I'll have to spend some extra time on them and probably hit up some office hours to get some extra help. But I see how efficient they are, and that they have many good uses.  But I better stop talking about it and get working.
Week 8

I think I have a good understanding of recursion now and of general trees, we got some good practice in the labs. I also did some of the extra exercises on trees to really grasp it. The hardest on by far was the list_below function, in which we were supposed to decrement one of the parameters in the recursive code.

Gearing up for the next term test. No idea what to expect except that it will be less doc-string writing and more code writing. Just hope I know what to do when it counts.

Thursday, 3 March 2016

Week 7

Recursion is a funny thing. Try googling it. Did you mean recursion? I really appreciate sense of humour surrounding recursion. It makes it all the more fun. Even the programming language PHP pokes fun at itself by being a recursive backronym, PHP: Hypertext Preprocessor. But it also seems like very useful and elegant way to write code, however difficult it is to wrap one's head around it at first. The thought of calling a function in a function is somewhat mind boggling to me. It reasons that there must be a stop condition, kind of like writing a while loop, so we don't get an infinite loop. And the reduction in lines to write is an added bonus. In some cases it will save time and memory, or might even be the only way to write a certain function.

In researching a little, I found that there are many types of recursion; direct, indirect, single, multiple, anonymous. And that they play a key role in some abstract data types. Professor Heap gave us an awesome demonstration making a fractal with some recursive code, which I was awed by. I hope after this class that I'll have that figured out. It seems that recursion and list comprehension go pretty hand in hand, so it looks like I will get the practice on list comprehension that I was eager to get last week. Now that we're getting recursion under our belts, it looks as though our data structures are getting more and more complex. We've had a glimpse of trees in class but I think we've only just scratched the surface in terms of what they can represent.

It seems like I'm going to need a lot of practice to really internalize recursion. Good thing there are some additional exercises with the lab this week and I believe there are some others on the slides. Now all's I need to is find the time in which to practice. That said, I looking forward to learning more on this fascinating technique and honing my recursive skills in the lab this week as well as on assignment 2.

Thursday, 25 February 2016

Mid-terms are upon us. Not a lot of time to write this week. But we were introduced to recursion this week and I'm looking forward to getting more familiar the technique. I will be researching it over the weekend to write more extensively on it next week.

The lab this week on list comprehension was pretty easy. I kind of wish we had been assigned to use comprehension instead of writing for loops to undo them.