Opentopia Directory Encyclopedia Tools

LIFO

Encyclopedia : L : LI : LIF : LIFO


In a stack, the topmost item, which is added last, is taken out first. Hence a stack is a LIFO structure.
In a stack, the topmost item, which is added last, is taken out first. Hence a stack is a LIFO structure.

LIFO stands for last in, first out which in computer science and queuing theory refers to the way items stored in a data structure are processed. The last data to be added to the structure will be the first data to be removed. LIFO mechanisms include data structures such as stacks. Sometimes the term FILO ("first in, last out") is used synonymously.

A LIFO structure can be illustrated with the example of a crowded elevator. When the elevator reaches its destination, the last people to get on are typically the first to get off.

See also

 


From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.

Search Titles
0123456789
ABCDEFGHIJ
KLMNOPQRST
UVWXYZ?

E-mail this article to:

Personal Message: