Friday 17 July 2015

Data Structure in Python

Cited from What Are Linear Structures?

"What distinguishes one linear structure from another is the way in which items are added and removed, in particular the location where these additions and removals occur."

=================================================
Cited from What is a Stack?

'A stack (sometimes called a “push-down stack”) is an ordered collection of items where the addition of new items and the removal of existing items always takes place at the same end. This end is commonly referred to as the “top.” The end opposite the top is known as the "base."'

'The base of the stack is significant since items stored in the stack that are closer to the base represent those that have been in the stack the longest. The most recently added item is the one that is in position to be removed first.'

=================================================


 

No comments:

Post a Comment