PlanetMath (more info)
 Math for the people, by the people. Sponsor PlanetMath
Encyclopedia | Requests | Forums | Docs | Wiki | Random | RSS  
Login
create new user
name:
pass:
forget your password?
Main Menu
Owner confidence rating: High Entry average rating: No information on entry rating
stack (Definition)

A stack is a one-dimensional data structure to which new members or elements are generally added (pushed) at the end and removed (popped) from the start. (Compare this to a queue).

Obviously a new pushed element gets an index number one higher than the most recently pushed element. Whether the actual implementation puts the first element at the highest memory address available for the stack (and decreases the stack pointer with each push) or the lowest (and increases the stack with each push) there is no need to re-index elements as might be the case with a queue.




"stack" is owned by Mravinci.
(view preamble | get metadata)

View style:


Attachments:
push (Definition) by Mravinci
pop (Definition) by Mravinci
Log in to rate this entry.
(view current ratings)

Cross-references: push, number, index, queue, structure
There are 15 references to this entry.

This is version 1 of stack, born on 2006-09-16.
Object id is 8361, canonical name is Stack.
Accessed 1778 times total.

Classification:
AMS MSC68P05 (Computer science :: Theory of data :: Data structures)

Pending Errata and Addenda
None.
Discussion
Style: Expand: Order:
forum policy
Does this belong to planetmath? by Koro on 2006-09-20 11:20:22
Stack, pop, push, queue. The entries are out of context in the encyclopedia. Terms like "memory adress" and "implementation" make this evident. These terms are not defined in planetmath, and if they are i suspect they will be out of context.
There has to be some limit to decide what belongs to a mathematics encyclopedia. These will probably fit well in PlanetComputing or something, but if entries like these begin to proliferate, they could encourage other people to post entries which are loosely (if at all) related to mathematics.
I may be wrong here, but that's how I feel about it.
[ reply | up ]

Interact
post | correct | update request | add derivation | add example | add (any)