Skip to content
Surf Wiki
Save to docs
general/abstract-data-types

From Surf Wiki (app.surf) — the open knowledge base

Pile (abstract data type)

Pile (abstract data type)

In computer science, a pile is an abstract data type for storing data in a loosely ordered way. There are two different usages of the term; one refers to an ordered double-ended queue, the other to an improved heap.

Ordered double-ended queue

The first version combines the properties of the double-ended queue (deque) and a priority queue and may be described as an ordered deque.

An item may be added to the head of the list if the new item is valued less than or equal to the current head or to the tail of the list if the new item is greater than or equal to the current tail. Elements may be removed from both the head and the tail.

Piles of this kind are used in the "UnShuffle sort" sorting algorithm.

Improved heap

The second version is a subject of patents and improves the heap data structure.

The whole data pile based system can be generalized as shown:

Data Pile Architecture

References

References

  1. Art S. Kagel, [https://xlinux.nist.gov/dads/HTML/pile.html xlinux.nist.gov]; "pile", in ''[[Dictionary of Algorithms and Data Structures]]'' [online], Paul E. Black, ed., [[National Institute of Standards and Technology]], assessed September 27, 2007.
  2. [http://www.patentstorm.us/patents/6952696-fulltext.html "Data structure and method for sorting using heap-supernodes"], U.S. patent 728147 (2000, issued 2005)
  3. [http://www.patentstorm.us/patents/7007021-fulltext.html "Data structure and method for pipeline heap-sorting"], U.S. patent 09727534 (2000, issued 2006)
Info: Wikipedia Source

This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.

Want to explore this topic further?

Ask Mako anything about Pile (abstract data type) — get instant answers, deeper analysis, and related topics.

Research with Mako

Free with your Surf account

Content sourced from Wikipedia, available under CC BY-SA 4.0.

This content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.

Report