Tuesday, February 2, 2016

sLog Week 2

This week the professor introduced us a new content called sack and stack, and to be honest, I cannot recognize the difference of them very well. I have to ask my friends who also take CSC148 for details. They told me that "sack" and "stack" are two relatively similar structures. Stacks put a new item on top of it, and when we want to remove an item, we start from the top. However, since sack has no order, we just randomly remove one in sack. The linked list confused me a little bit as well, but my friends taught me to think of it as a train, it has to have a head and a tail, that makes a lot more sense to me. I will understand those more thoroughly in the future.

No comments:

Post a Comment