This week we focused more deeply on recursion. A new concept that I learned is class Tree, a class that presents a lot of recursion problem. Tree has a lot of new features and terminology that I learned like node, tree, height, depth etc. This new concept is a classic example of recursion and it helps me further comprehend this subject.
I really enjoyed doing the writing recursion equation worksheet in class with professor Heap leading the way to help simplify the questions. The step by step process in the worksheet is a very methodical way for me to learn how to write recursion equations. With this recursion worksheet, I definitely speed up the process of learning how to write recursion equations so this is something I really appreciate and hope professor Heap will keep doing in class.
I found that the lab is pretty challenging as the class tree can be ambiguous and difficult to visualize so I am having trouble of tracing recursion and writing recursion equation. I am able to solve this issue by asking for help and clarification from the TA and finally able to understand the lab thoroughly. At the end, I felt like I am able to complete the lab quiz with ease thanks my understanding for the lab and lecture material.
I am pretty confident in the material covered this week thanks to the recursion worksheets that did wonder in my ability to understand class Tree and writing recursion equation. The methodical method really clicked with me so I feel like writing recursion equation is no longer a hassle for me and I am implement it in Assignment 2 that was posted this week.
Recursion is a common issue in a lot of academic field especially math and statistics. We sometimes lack the knowledge of the depth of the question but we still have to have an equation to work on it. For example, if I want to do a summation of numbers in a nested list, a recursion can be the best solution to solve these kinds of questions as it will deal with any nested list no matter what the depth of the list is.
I was very proud of my progress in writing recursion equation, a case by case strategy that has really clicked with me. By considering different scenarios of recursions and writing if statements for each of it, I can write a recursion code or at least a code for class Tree.
I originally had an issue of visualizing the class Tree and how does each variable in __init__ really mean in this particular class. I was able to solve this issue by asking professor Heap for further clarification during the middle break of the lecture and I am now able to visualize how the tree is composed from the variables in the initializing method.
No comments:
Post a Comment