Debutant of Recursion
Although the two assignments of computer science had really messed me up, I became even more stressful at the Monday class of the 4th week. The first thought of recursion was that I was not suitable for learning computer science. I was about to drop the course or even change my major. Though it was a little bit exaggerated, you could still imagine how I felt about it. Recursion was something completely incomprehensible at the first glace.
Panacea
However, with the introduction of the concept of recursion, the professor had also kindly provided us a piece of sheet for the first time. He started to explain the details, that is, tracing recursion. I began to understand more of recursion, and get confused, and understand more, and get confused, and so on... Wow, how amazing it is!!! Recursion is a function that uses itself in the same function. What a wonderful yet quite effective method!!! Who thought about it? Recursion seems mysterious and infinite to me while tracing is like a panacea in computer science that can help me perceive all the mysteries in recursion.
Afterwards
Recursion is something unbelievable and fascinating in my mind now. It also solves many problems that have lingered in my mind for a long time, exempli gratia, how to get the sum of a list that has countless nested lists. After I was enjoying in tracing all the codes, the fact struck me again... I found it extremely hard to write one by myself! To write one seems much harder than to trace one. How could that happen?? Does that mean I didn't carefully listen to my teacher? No it's not, after going to piazza, a website to ask and answer questions about the courses, I realize it is not required at that point. Yet, I still successfully created one during the laboratory at Thursday night.
No comments:
Post a Comment