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.

Thursday, 11 February 2016

Week 5

Test 1 happened. I think a lot of people are in the same boat in not having enough time. I did manage to just finish, although did not have time to complete the second problem correctly. So we'll see if there will be a slight adjustment in the marks. At least we got to take the test, it sucks for those in the other section that had the fire alarm pulled just as they got started, and will have to do a make up.

I am more and more impressed with linked lists. Just reading up on them and what other things they can do is fascinating. Doubly, multiply, circular linked lists. Not sure if we are going to touch on them in this course but it sounds cool.



Saturday, 6 February 2016

week 4

So linked lists are cool. We got to see how to build a list from scratch,  instead of the using the built in Python type. It really gives an insight as to how the language is working behind the scenes. When we got to deleting, I really liked Danny's description of Python being like a "good government that has good garbage collection", and how we don't have to worry about what happens in memory.

Anyhow, some cool stuff, hope I understand it enough for the test on Wednesday

Till next week,

Chris

Wednesday, 27 January 2016

Week 3

Here we go. 

It's hard to believe I am already through CSC108 and three weeks in to CSC148. I've been really enjoying Danny Heap's lectures, learning awesome new tricks for my programming toolkit, like list comprehension. I can see how that will be very useful in almost any coding context. Also getting more familiar with class construction, specifically composition and inheritance, is showing me that the possibilities are pretty limitless as to what can be done. I'm looking forward to adding to my knowledge base and working on my programming skills throughout the semester to hopefully by the end be more confident in coding. Besides the just coding, I look forward to learning more about the 'science' in computer science. 

So far,
I think our first lab was a little stressful for most of us, or maybe it was just me, who knows. My first impression was that we had to complete the assignment, submit it, and be graded on it. Which put me in a little bit of a panic because I definitely did not finish on time. However, getting past the initial shock, I see the general purpose of them and am actually very glad to have dedicated time to practice the material we've been shown in the lecture.