58 of 59 menu

LIFO data organization method

The LIFO (Last In, First Out) data organization method assumes that the last data added to memory (or stack) will be the first to be taken out of it, i.e. will be at the very top of the stack, while the first data stored will be at the bottom.

LIFO is widely used in cases where it is necessary that the newest (last added) data should be the first processed or deleted. For example, such a well-known data type as stack works on the basis of LIFO.

See also

  • data type stack,
    which is widely used in programming
  • heap data type,
    which is widely used in programming
  • a way of organizing data FIFO,
    which is widely used in programming
enru