Apologies for the late post!!!I got three midterm that week and forget to post the slog.
I have not been introduced to this before, and heard that recursion is hard to learn. However, during the lecture, prof demonstrate a couple of exercises of tracing recursion, i find those examples pretty easy to do. The process is just like executing python visualizer by our hand. After the class i looked up the concept on internet, and get to know that " recursion function will call itself in its body multiple times and then if the function satisfied the recursive condition, it will then return the value of this function call " it works kind of like a while loop, when you were given a list, you need to look up each of them with given condition, when a condition been satisfied, you can then apply the function to it, and then keep going on until a value was returned.
The quiz that week is similar to what we learned in the lecture, however the lab is not easy to do, after a couple of times of TA's assisting i finally got it correct. I think i still need to practice a bit at home.
No comments:
Post a Comment