Wednesday, 18 February 2015

Week #7

My impressions of Week 6:
I initially understand trees and their structure as an ADT, but I didn't understand how the coding worked. Particularly how this:

represented this:
However, I figured it out. If I'm not mistaken the structure is :
tree_variable = Tree(root value), descendants list, number of nodes per root. 

Week #5 : Recursion Tracing

I found recursion tracing to be extremely fun but requiring pretty intense focus. The lab was decently straightforward and I found I was able to trace them correctly once I got the hang of things. My only issue is designing recursive functions. I've tried doing a couple on my own and I find I'm a little slow.  Luckily I found a link with some practice questions here here which are useful.