Linked Lists
The idea of a linked list is very different when compared to objects like vectors or lists. The presence of a "node" to keep track of objects or information in linked lists is definitely a very interesting concept, even though a bit complicated to absorb at first glance. I was having trouble understanding why it was necessary for us to use linked lists, when simpler tools like lists or dictionaries exist to perform similar activities. But after researching linked lists, trying out some codes as a trial and error process of learning, and absorbing information from the lectures and course notes, I realized that linked lists have its own unique advantages that make it a very useful tool in programming when it comes to insertion or deletion of objects. In a list, the insertion or deletion of a specific object, like a number, at a specific place, would require the entire list after the number to be shifted left or right, depending on the type of modification. When there are hundreds or thousands of numbers on a list, and an insertion into a specific index is necessary for a particular number, this process can be very inefficient when using lists, due to the necessity of shifting each value after that required index. But when using linked lists, the presence of the nodes connecting each element makes this process much faster, just changing the node's focus from the number in front of it, to the new number, and have the node of the new number connect to the next occurring number. Obviously, lists have its own advantages as well, like being able to call upon specific objects very efficiently due to the presence of index values, and the disconnected presence of each element on the list. Thus, linked lists is a more efficient way of adding or removing elements onto the list without having the computer perform extra work. Stacks and Queues
Stacks and queues are simpler concepts to understand compared to linked lists, and my previous experience with coding in Java and C++ made these lessons easier to contemplate and utilize. The lab was also a very useful material in order to bring together these tools into a programming assignment and realize why it is important to have such tools present for use in a coding environment.
Overall, I believe my greatest achievement this week was just being able to understand the necessity of all these new tools, and how they can be implemented into the Python language for more efficient, seamless coding. Introduction of these new concepts are helping me reach greater depths in terms of what we can accomplish with our knowledge of coding, And it means we can now delve into much more complicated assignments and labs, that can be connected to real-life situations, like developing a super-class of Vehicles, and having sub-classes for various types of vehicles, like cars, trucks or bicycles, while each class will have its own properties and characteristics. We can even use linked lists to join multiple vehicle objects in order to keep track of them, and easily insert or delete specific vehicles from the list when necessary. Many such problems can now be solved due to our familiarity with these new tools, and I cannot wait to learn more about the awesome Python language.