Saturday, March 5, 2016

SLOG Week #7

This week, I am going to write about Abstract Data Types (ADT). ADT is one of the topics I really enjoyed learning. ADTs are objects with information and behavior, meaning what kind of data it stores and what kind of operations will it use on that data. Examples we have seen are stack and queues and both of them are examples that we see in the real world often. Stacks are ordered so that last thing stored is the first one to get out. We can think of it as stacking dishes in the shelves, last dish getting stacked is one top of the stack, above all dishes, so when we take out a dish it will the one at the top, which is the last dish stacked. Queue is the opposite. First thing in the queue is the first thing to get remove. It works like lining up for food in a restaurant. If you are the first one in the line, you will the first one to get served. Since we focus on the real world situations like stacks and queues, it was really helpful to learn and understand the concept. I personally enjoyed this topic very much because the same reason. I really liked how we use the real world situations as examples and it showed me how it can be used and why it is important. Even on the assignment #1, we had to use ADT for storing rider using Queue, and storing events using PriorityQueue and showed how these ADTs can work in the real world situations. I personally think that ADTs are really important topic to learn as I feel like it will be used a lot for programming things like applications, because since we can change how ADTs behave, using it will make organizing data a lot simpler and easier.

No comments:

Post a Comment