Sunday, March 22, 2015

Week #9: Linked Lists

This week we learned about a new data structure, linked lists. I felt that this data structure is much more logical than recursive procedures. Even though you have to write much more code that recursive functions, iterative functions feel much more natural. Even though I love recursion I feel that iterative functions have some more advantages.

First of all recursive functions are less efficient, not sure about this but I believe if you can write it iteratively it would be more efficient to do it that way. Secondly, I feel that iterative functions are simpler to debug and test.

I thought it was interesting to learn about linked lists. It is a mutable data structure, it can probably increase efficiency in many cases in the future..

No comments:

Post a Comment