2016年2月11日星期四

abstract data type and stack(Week 4)

The abstract data type is a new thing we learnt this week. It is  a mathematical model for a certain class of data structures that have similar behaviour. The stack is a specific thing we are getting to. There are three basic functions we are using usually, push, top, pop.

I think the between with stack and queue is that stack is first in first out, queue is first in last out. but sometimes I still confused about how actually we could create a stack or queue with python and use them.


没有评论:

发表评论