"Impressions of Week 8"
During the past weeks we have engaged in learning of linked lists and how they are applied in programming. It is a clear extension (or branch) off of the idea of trees. The construction of the nodes and linked lists is was a straight forward extension from trees, proving to be not difficult to implement with the former knowledge of trees. It seems like a practical way of linearly storing data to have a clear path of access, the programming benefits are apparent.
During class a basis of the understanding of linked lists and linked lists nodes was developed but it was with the lab (which did not occur, but the solutions were posted nonetheless) which my understanding was solidified. I attempted many of the problems on my own and had some difficulty but was ultimately able to finish most of the lab without consulting the posted solutions. I drew pictures out of necessity, not just because the lab handout suggested the use of diagrams, it was greatly beneficial. I found that many of the functions were similar to other ones so solving one would make it easier to solve the other, for example this was the case when solving insert_before and delete_after. Although the two functions are inherently very different, the way of thinking to solve them was similar. I initially had trouble solving the insert_before function but thorough review of the contains function was helpful in my understanding which ultimately led to me solving the problem, as it could be considered just an extension of that function.
No comments:
Post a Comment