Sunday, 28 February 2016

Mid Semester Already? D:

Survived the week miraculously.

Surprisingly finished the assignment on time. I completely appreciate commenting now! Commenting out the steps needed for each line of code seriously helped with completing the assignment. Thank you, 108!

This week, we covered recursions. Recursion makes code even simpler, that is if you're implementing it correctly. Especially when you're looking at the different depths of a function. Tracing through your functions is extremely important for this step, to make sure that the code is doing what you think it is doing. However, I am a little hesitant about using it. It's like treading new water, which does make me feel a little anxious. But I guess with more practice, it should work out better.


-Sid

Friday, 12 February 2016

Nodes of Information

Week 3:

Still dying.

Due to the lab this week, I have been thinking a lot on nodes, specifically with linked lists. They are object types with a value and a reference to some other object. This is interesting. I feel this is similar (albeit, a simplified model) to cognition… More specifically to the whole first gen. cognitive science notion that cognition is computation, proposed by Thomas Hobbs. In the mind, there are engrams (a place of encoding for certain memories) and then there are neural assemblies, or encoding assemblies, where neurons fire together at certain oscillations and at specific intervals for both encoding and retrieving memories.  Each node is comparable to an engram, but in a highly simplified extent since neurons have a multitude  of axons and dendrites, branching out and creating synapses at various locations (i.e. engrams are difficult to locate).

In combination with queues and stacks/ sacks, I am curious if whether incorporating both these forms of code with Linked Lists, whether this could facilitate a function similarly to that of working memory. Of course, the point of a class is to simulate an instance in reality (like with the point class referring to a class Point). Working memory assembles the appropriate information due to certain cues. These cues then locate information from certain ‘nodes’ so they may be used. The information, however, appears in the short term memory for a moment to perform a task before disappearing. Parallels can be drawn between how working memory retrieves information and to a queue, where information is added to the back of a queue while information is removed at the front of a queue.
(As an aside, the word queue has too many unnecessary letters, wouldn’t you say?)


Of course, I am making a gross, over simplification of how working memory may function by relating the classes, and nodes with linked lists (of information), but perhaps there may be a potential to mechanize cognition this way? I am still rather unsure of this. 

Wednesday, 3 February 2016

Linked Lists, Whosits, and Whatsits

It is week 4 now. Somehow, I am still surviving.

I have befriended PyCharm, finally. Though, it seems to nag me ever so often for my redundant parentheses. It helps to make the code easier to read, PyCharm. Quality over quantity. Calm yourself.

So much has happened. We've learned about linked lists, which seem easy enough to follow. But of course, one can never be too careless. Professor Heap emphasizes this point.

Link lists describe a way of simple categorization to me. Of course, they are not nearly as malleable as compared to the way humans categorize. They are described in two forms: wrappers or nodes.

Wrappers are like little units inside other units. For instance the notion of what classifies something as a cat will be described from a top-down process, going from a detailed or autonomous feature and then trickling down to generalize, or in terms of linked lists, looking at values within a sublist towards the outermost list.

Node organization of lists are akin to the nodal organization of a feature map, but of course, with not as many branching points. Rather than being a web of information of values or "features," linked lists form a linear connection pattern. An example would be having 'soft kitty' in the initial value in the list, then a node, connecting that  value to the next value, which might be 'warm kitty,' then another node connecting that value to the next similar object, 'little ball of fur." This nodal linkage continues to some indicated end point, where the list terminates.