Jump to content

In-place algorithm

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by TakuyaMurata (talk | contribs) at 00:33, 2 May 2003 (stub). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

In computer programming, work-in-place is a technique requring no extra memory space to when manipulating the order of lists, mostly sorting. In languages that automatically manages memory space for lists, the distinction between code with work-in-place and code without it is meaningless.

See Quicksort article for an example.

Sort algorithms that can be written using work-in-place include: