Friday, 6 February 2015

Impressions of tracing recursion from Week 4

We mostly did tracing recursive function exercises in week 4. "Recursion in computer science is a method where the solution of a problem depends on solutions to smaller instances of the same problem"(Wikipedia). Tracing means that when given a body of a function you have to show the steps the function will go through and the output it will produce. I really liked tracing recursion after doing some exercises I totally understood it. Writing a recursive function is harder than tracing because in tracing they give you the code and in writing you have to think and write it. It requires more time to write. There was a tracing recursion question in term test, I think I did it right.

No comments:

Post a Comment