Sunday, 23 February 2014

week6

AAANd i made the deadline for A1! :D Although i was not able to finish step 5 and 6.. because of poor time management, but i am glad that i finished it on time (kind of)
Treeees!

The terminologies set me off a little at first, but after listening to the explanation, i understood how a tree works.
A leaf must only have 1 parent (kinda weird cause parents are usually ... aNYWAYS), and there is a unique path from the root to each and every node/leaf. NO LOOPS!

Another trick to remember pre, post and in-order traversal is to trace the tree with your finger pointing right, left, and upward. I found tree a really interesting idea as it has a different "shape" from a list that looks like a line. 

Also, in the lab, we learned about two new functions : Filter and zip.
Filter eliminates all elements that are equal to False,
and Zip uses two lists and pairs each and every one, into a tuple. Then it gets append to its list. Hope it'll come in handy in the future ! :) 

No comments:

Post a Comment