Last In, First Out

Last In, First Out

Last in, first out

Algorithmes d'ordonnancement

EDF • Rate-monotonic • Round-robin

LIFO • FIFO

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 des données. La dernière donnée ajoutée à la structure est ainsi la première à être retirée. 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 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 ».

Cette expression est aussi employée dans les règles du jeu de cartes à collectionner Magic : l'assemblée, où 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.

Exemple de comptabilité avec LIFO-DEPS

Supposons qu'il y a une sortie de 120 articles de notre stock aujourd'hui. (Juin 2009), et qu'ils ont été acheté dans trois différentes dates:

Date Quantité Prix Unitaire (EURO)
Mars 2009 50 10
Avril 2009 55 11
Mai 2009 52 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 FIFO-PEPS est 11,29 € :

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

Il vaut 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].

Notes et références

  1. ↑ Gérar MELYON, "Comptabilité analitique",3rd Ed. Bréal Ed. Lexifac. Cliquez ici
  • Portail de la programmation informatique Portail de la programmation informatique
Ce document provient de « Last in, first out ».

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 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 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

  • Last.fm — Infobox Website name = Last.fm favicon = caption = url = [http://www.last.fm/ www.last.fm] commercial = Yes type = Music, Statistics Community registration = Free, or subscribe for £1.50 per month ($3 USD) owner = CBS Interactive language =… …   Wikipedia

  • Out of the Unknown — For the collection of short stories by A. E. van Vogt and E. Mayne Hull, see Out of the Unknown (collection). Out of the Unknown Format Anthology Science fiction Drama …   Wikipedia

  • First Allied Airborne Army — Infobox Military Unit unit name=First Allied Airborne Army caption=Badge of the First Allied Airborne Army dates=2 August 1944 20 May 1945 country= allegiance=Allied branch=Air Force type=Airborne forces role= size= command structure= garrison=… …   Wikipedia

  • First Fleet — The First Fleet is the name given to the 11 ships which sailed from Great Britain on 13 May 1787 to establish the first European colony in New South Wales. It was a convict settlement, marking the beginnings of transportation to Australia. The… …   Wikipedia

  • First Chief Directorate — The First Chief Directorate (Russian: Первое Главное Управление) (or PGU) of the Committee for State Security (KGB), was the organization responsible for foreign operations and intelligence collection activities by the training and management of… …   Wikipedia

  • First Great Awakening — The First Great Awakening (referred to by some historians as the Great Awakening) was a period of heightened religious activity, primarily in Great Britain and its North American colonies in the 1730s and 1740s. In New England, the Great… …   Wikipedia

Share the article and excerpts

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