![]() |
| Linked list example structure |
Life's a Zhu. If you're into grammar errors, bad sentence structure, bad puns and whining, then this is the blog for you.
Friday, 13 March 2015
Linked -> Lists|
As day till summer gets shorter, the lists we work with gets longer. Linked lists are a linear sequence of nodes. A linked list can be visualized as a sequence of nodes, each with it own value and reference to the next node in the sequence. Unlike the previous tree classes we have seen before, linked lists allows us to insert or remove list elements or values without shifting the entire structure of the list at any point.
Friday, 6 March 2015
Binary Trees, Primary use.
Unlike the trees that we have discussed in class before, binary trees takes two inputs and has one output value that is represent as the node. The value of the node of binary trees can be both operators of systems of equations or just simple numbers or outputs of other operator nodes. This makes many systematic problems with binary recursion of conditions much easier to solve.
![]() |
| Binary trees are just like tree but instead of having any number of children, binary trees only have two (left and right) |
Saturday, 28 February 2015
Recurring Recursion
![]() |
| Example of a recursive tree |
Saturday, 14 February 2015
It's complected: Trees and Relationships
Unlike being alone on valentines day, trees actually have real relationships, the most important use of a tree it's representation of hierarchical relationships. Used in structures of a program, relationships in an mathematical expression or directory structures. Trees are an ADT (abstract data type) which means that it has both a root value and several subtrees linked by nodes. One example of this is those binary fractal things that people can get on necklaces to give to their significant other if they had anyone.
Together with recursive functions, and understanding the core concepts of it, we are now able to expand our limitations and do so much more with Python.
Together with recursive functions, and understanding the core concepts of it, we are now able to expand our limitations and do so much more with Python.
Friday, 6 February 2015
Hibernation Cycles: Stacks and Queses
After every midterm, comes the post midterm days of hibernation for all the hours of sleep missed that has been accumulating for the last week followed by the brief enlightenment of finally being free for the next few short lived days of sweet ignorant freedom before it all comes crashing down again like some bad recursive function with a endless nested lists of midterms.
Sunday, 1 February 2015
Procrastination Nation: Assignment 1
And with a blink of an eye, it's midterms. Don't know if it's just the weather, Friends being on Netflix this year, or the Superbowl on the Sunday before midterms this week, it seem like no one's really getting much done. And having my roommate's cat around constantly trying to sit on my laptop isn't exactly helping either.
Thursday, 22 January 2015
why Should I rite? Intro to CSC148
Lets start with the fact that I can't write. From general spelling errors to grammar, run on sentences, to punctuation, it's easy to say that writing isn't my strongest skill. surprise right? the viable minority in computer science at the University of Toronto isn't good at writing.. Not to say i'm illiterate, English is still and always be my most fluent language, but writing was just always one of the things that just didn't come to me. If only we could record all events in scientific notation, but then I realized that I still not doing too well in CSC 165 either so maybe I'll just stick to this.
Subscribe to:
Posts (Atom)


