Sunday, March 29, 2015

Visiting the Past

I haven't really thought of the past much. However, since i'm done with my last midterm, I'm starting to bring back the past (knowledge) back into the present to prepare for exams.

I don't think I have really changed as a person or changed my perspective. Sadly, I have mainly been focusing on short term academic pursuits and ignoring any big picture thoughts. My plan to go into CS and then later decide what to do hasn't really worked out.

The biggest difference I have seen is my mentality on recursion. When the concept was first introduced, I was just unable to even visualize it without focusing completely on recursion. I will still fall into recognition traps where recursion makes sense when the answer is right in front of me.


Source: http://en.wikipedia.org/wiki/Spot_the_difference
So, what's different? I think it's like a spot the difference game. The picture might look exactly the same minus a couple of obvious details (such as the tree branch at the top and the couple at the left) but there are many other changes "hiding in plain sight". I am certain that I am better at coding recusively because now I have more tools such as knowing how to make drawings to help my understanding. However, there are also subtle changes such as neural pathways which were already created in my prefrontal cortex and all across my brain which I subconsciously use to help me solve recursively. I probably have many other tools that I use which I'm not aware of until it is pointed out.

Comparing myself to others in a class so large is tough so I'm going to use some case studies.
http://questionablecsc146decisions.blogspot.ca/ is a thoughtful blog which I feel like I'm at about the same level of understanding of the course as the author.

Instead of making this way longer than it already is, I'm going to summarize and say that after reading lots of slogs, I'm on the same page with lots of people who have a tough time with recursion.

Friday, March 20, 2015

Week 9: Python Garbage

CSC148 is still going strong thanks to the two professors and the TAs who are still working. I don't ever expect to understand what is fully going on especially since have to allocate lots of my time to school.

This week was light on new material. On Monday, we focused on what was going to be on the test and Wednesday was the test. We did introduce deleting.which still fascinates me.

The Oxford Dictionary defines delete as "remove or obliterate". Yet the most common use of deleting is virtual now where everything is composed with binary. Yet turning a 1 into a 0 isn't deleting at all. In a massive line of binary, the damage would probably be minuscule (although I have no idea, I'm just guessing it would work like DNA and mutations). In the YouTube video "What is NOT Random", they say that information, although seemingly based on order is actually disorder or entropy. Then, to delete information, one would have to obliterate the entropy and wipe the region clean. I don't think we'll ever touch this not only because we're first years (for another 2 weeks) but also because Python is an interpreted language.

This goes back to this class where we mutated Linked Lists lists by creating a new node and leaving the old node without a connection to an object. Prof Heap said that Python had a great municipal government and great garbage collection. I've seen a garbage collection class in Java once but I didn't understand the purpose in my ignorance. I still don't really know what that means yet but I have a feeling that it has to do with .decreasing entropy at the binary level. I guess I have to be grateful that it works and not just take it for granted until they go on strike, stop working and me realizing how screwed I am without them. 

(on another note, in linear algebra, we learned about cofactor expansions also called Laplace expansions and Laplace is mentioned early in the video)

Monday, March 16, 2015

Week 8: Assignment 2

Assignment 2 was really difficult. Although most of the assignment (TippyMove and most of TippyGameState) was straightforward, we had major difficulties with the StrategyMinimax class and the TippyGameState.rough_outcome() method. My group and I simply were unable to properly implement these two problems despite over 20 hours of struggling with these two problems.

For rough_outcome, an ideal version of our helper function would count how many 'X's and 'O's there were in an n x m grid. If there were more 'X's in a grid, then that would increment the "advantage" count for 'X'. Similarly, the "advantage" count for 'O' would increase if there were more 'O's. I still don't know why the code didn't work which is very bad.

I still completely agree with my post about recursion on week 5. I only intellectually understand recursive functions once I have already read the code. However, I am still very far off from intuitively thinking recursively. However, I have made progress from week 5. I noticed seeing recursive functions in MAT137 (Calculus!) with recursive sequences. In linear algebra, the determinant can also be defined recursively which is really neat. I even saw this online.
a_0 + \cfrac{1}{a_1 + \cfrac{1}{a_2 + \cfrac{1}{ \ddots + \cfrac{1}{a_n} }}}