This was the final
week -- congratulations to everyone who made it! It has been a long and
stressful term, but I managed to make it through. We were introduced to new
topics these last two weeks. I have not yet grasped all the concepts, so there
will be lots of reviewing for me to do. The last stretch of CSC148 focused a
lot on efficiency, which I appreciated. I enjoy learning about what makes one
code more efficient than the other. I remember going over all the different
sorting methods in CSC108, so I was familiar with things like "bubble
sort" and "insertion
sort". As well, it seems to
me that lists are very inefficient, while dictionaries and sets are much more
efficient.
We were also
introduced to hashing, which I sort of knew through Assignment 2. I remember
when I tried to add puzzles into a set, I would get an error saying that I
cannot add an unhashable type. After doing some googling, I found out that
unhashable meant a type was mutable. Additionally, when we were introduced to
aliasing, I realized that I had encountered a problem concerning aliasing in
Assignment 2 as well. I remember when I was trying to create a copy of list
with internal lists, it was only copying the outer list and not the interior
ones. That was when I realized that I was creating a shallow copy of the list,
rather than a deep copy.
I had a fun time
taking CSC148. Although I had a lot of difficulties during the midterms I hope
I can make a come back for the final! Goodbye and good luck to everyone on the
final!