"Impressions of Week #9"
During week 9 we had our second-half of the midterm testing, and I believe that it went very well. In preparation, I reviewed and copied out many of the recursive functions we reviewed in lecture and in the labs onto my 'cheat sheet' to ensure I wouldn't get stuck during the test. By coping out (and understanding) the functions, I ended up not even having to use my 'cheat sheet' at all throughout the test (besides using it for a quick reference once or twice). Overall I was satisfied with the result, and am hoping the exam accurately reflects the term tests level of difficulty.
The new material taught in week 9 was again an extension of the binary tree node data structures we have been using for the past couple of weeks. We learned about tree mutations, instead of just search algorithms for finding specific items in the tree, we are now able to select specific items for removal, or add different items to the structure, and obvious extension of what we had learned previously. This makes sense as the next step in our curriculum as search methods can only handle so many problems that would be faced when working with the binary tree structure, the mutation methods provide a solution for further questions to be answered. When presented in class they did not seem that difficult, but nonetheless it took further practice to be able to implement the functions by myself. Throughout all of the 'tree' content I have found it extremely helpful to draw pictures to represent the data structures I am trying to create, the technique once again was successful here. Everything just seems so simple once it is clearly displayed on a piece of paper rather than hidden within lines of code.
While attempting to complete the lab functions, I just constantly referenced the insert/delete functions we had seen in class and did just as the lab instructed; 'experiment'. Forming a binary tree from word_list was difficult, and I'm not sure if I did it completely correct, but by borrowing code from previous lectures and labs I was able to get the basic structure of the function. Balanced delete was easier to implement as I found it to be a more straightforward extension of the material, especially when a hint was given (use import random).
No comments:
Post a Comment