Last in, first out

Last in, first out

Last In, First Out, souvent abrégé par l'acronyme LIFO, signifie « dernier arrivé, premier sorti ». Cette expression est utilisée en informatique pour décrire une manière de traiter un groupe de données. La dernière donnée ajoutée à la structure est ainsi la première à être retirée (sauf commande particulière). La structure de pile repose sur ce principe.

Une illustration courante de ce traitement est la pile d'assiettes sales : la dernière posée sur le dessus de la pile est, logiquement, la première lavée.

Cette expression est également très utilisée en comptabilité analytique et d'une manière générale dans les techniques de gestion des stocks. Elle est dans ce cas souvent traduite par DEPS pour « Dernier entré, premier sorti ».

Sommaire

LIFO ou FIFO

Le traitement FIFO (first in, first out) est un peu différent du LIFO car il traite les données en fonction de leur ordre d'entré dans la pile, la première arrivée est aussi la première sortie, ce qui est le traitement habituel d'un stock, géré de manière optimale.

Exemple de comptabilité avec LIFO-DEPS

Supposons qu'il y a une sortie de 120 articles dans notre stock aujourd'hui (Juin 2009), et qu'ils aient été achetés à trois dates differentes:

Date Quantité Prix Unitaire (EURO)
Mars 2009 15 10
Avril 2009 55 11
Mai 2009 50 12

Le prix LIFO-DEPS commence avec le plus récent. Puisqu'on doit calculer le prix de 120 articles, on considère que les 50 premiers ont un prix unitaire de 12 €; que les 55 suivantes ont un prix unitaire de 11 €, et que les 15 articles restantes (120-50-55) valent 10 € l'unité.

Alors, le prix LIFO-DEPS est 11,29 € :

LIFO=\frac{50\times 12+55\times 11+15\times 10}{120}=11,29

Il faut bien remarquer qu'en présence d'inflation le prix LIFO-DEPS sur-évalue les sorties (les 120 articles dans l'exemple). Donc, puisque les sorties sont plus grandes, le LIFO-DEPS tend à sous-évaluer le stock[1].

Utilisation dans des jeux de société

Cette expression est aussi employée dans les règles du jeu de cartes à collectionner Magic : l'assemblée, dans lequel, si plusieurs sorts et effets sont activés à la suite, le dernier joué prendra effet en premier. Par exemple, si un joueur veut tuer une créature en lui lançant un sort de foudre, et qu'un autre joueur lance ensuite un sort qui renforce ou protège la créature, alors le second sort agit avant la foudre et peut lui permettre de résister à la foudre.

Notes et références

  1. ↑ Gérar MELYON, "Comptabilité analytique",3rd Ed. Bréal Ed. Lexifac. Cliquez ici

Wikimedia Foundation. 2010.

Contenu soumis à la licence CC-BY-SA. Source : Article Last in, first out de Wikipédia en français (auteurs)

Игры ⚽ Поможем написать реферат

Regardez d'autres dictionnaires:

  • last-in first-out — adjective Date: 1934 of, relating to, or being a method of inventory accounting that values stock on hand according to costs at the time of acquisition and not according to the cost of replacement …   New Collegiate Dictionary

  • Last and First Men — infobox Book | name = Last and First Men image caption = First edition cover author = Olaf Stapledon illustrator = cover artist = country = United Kingdom language = English genre = Science fiction novel publisher = Methuen release date = 1930… …   Wikipedia

  • First-mover advantage — is the advantage gained by the initial occupant of a market segment. This advantage may stem from the fact that the first entrant can gain control of resources that followers may not be able to match.cite book |last=Grant |first=Robert M.… …   Wikipedia

  • First Light (Preston book) — First Light: The Search for the Edge of the Universe is a 1987 non fiction book on astronomy and astronomers by Richard Preston.The title refers to the astronomical term first light, which is when a telescope is first used to take an astronomical …   Wikipedia

  • First Kuwaiti Trading & Contracting — First Kuwaiti Trading Contracting, also known as First Kuwaiti Trading Company and FKTC, is a construction company that was contracted to build the Embassy of the United States in Baghdad in 2004. It was founded in 1996 by Wadih al Absi and… …   Wikipedia

  • First Lady of the United States — is the unofficial title of the hostess of the White House. Because this position is traditionally filled by the wife of the President of the United States, the title is sometimes taken to apply only to the wife of a sitting President. However,… …   Wikipedia

  • First-Foot — First Footing, in British folklore, especially that of the north and Scotland, is the first person who crosses the threshold after midnight at the end of New Year s Eve (in other words, the first person to enter the house on New Year s Day).… …   Wikipedia

  • First Fruits — are a religious offering of the first agricultural produce of the harvest. In classical Greek, Roman, Hebrew and Christian religions, the first fruits were offered to the temple or church. First Fruits were often a primary source of income to… …   Wikipedia

  • First Indochina War — Infobox Military Conflict conflict=First Indochina War partof= caption=A French Foreign Legion unit patrols in a communist controlled area. date=December 19 1946 ndash; August 1 1954 place=French Indochina, mainly North Vietnam casus=The Haiphong …   Wikipedia

  • First Vision — The First Vision (also called the grove experience) is a religious belief held by many members of the Latter Day Saint movement (commonly called Mormonism) that God the Father and Jesus Christ appeared to the fourteen year old Joseph Smith, Jr.… …   Wikipedia

  • First International Syndicalist Congress — The First International Syndicalist Congress was a meeting of European and Latin American syndicalist organizations at Holborn Town Hall in London from September 27 to October 2, 1913. Upon a proposal by the Dutch National Labor Secretariat (NAS) …   Wikipedia

Share the article and excerpts

Direct link
… Do a right-click on the link above
and select “Copy Link”