I'll pick my SLoG entry for week #6 to be assessed for the summary of OOP programming.
This week we continued recursion, but mainly focused on the idea of binary trees. Binary trees are data structures where each node only has a maximum of two successors. I know that trees is an important data structure that needs to be used for Assignment 2. However, I'm still a bit iffy on the concept of trees and recursion. For example, using recursion to find the longest path. I made the function work but I don't really understand how it returns the length of the longest path. How did the recursive procedure itself count the nodes? This is definitely an area that needs to be improved for problems in the future.
No comments:
Post a Comment