Days are going by fast and CSC148 is getting more and more interesting day by day.
This week we learned linked lists, stacks and queues. When I studied stacks and queues on my own they seemed like data structures that one would only see examples of in a professional setting. This week's lectures proved me wrong. I was surprised to hear that something like checking for matching parentheses, which we take advantage of everyday, is implemented using stacks.
Another topic I enjoyed was linked lists. At first sight, it seemed like a replica of lists (although the usage is the same, to store a list of objects) but several noteworthy, yet subtle differences became manifest. For one, unlike lists, linked lists don't need a long block of memory. Second, when deleting things from a linked list, one doesn't need to move the rest of the items. One need only change the reference of the element that was pointing to it to the next element. Both these features will be especially useful in making large scale processes, that are heavy on memory, have optimal efficiency.
I think I learned very important data structures this week that will help improve my programming skills. I look forward to learning more data structures in the rest of the course!
No comments:
Post a Comment