Treffer: Functional Pearls: Explaining Binomial Heaps
Title:
Functional Pearls: Explaining Binomial Heaps
Authors:
Contributors:
The Pennsylvania State University CiteSeerX Archives
Publication Year:
1999
Collection:
CiteSeerX
Document Type:
Fachzeitschrift
text
File Description:
application/postscript
Language:
English
Availability:
Rights:
Metadata may be used without restrictions as long as the oai identifier remains attached to it.
Accession Number:
edsbas.BC644C7D
Database:
BASE
Weitere Informationen
This paper explains binomial heaps, a beautiful data structure for priority queues, using the functional programming language Haskell (Peterson & Hammond, 1997). We largely follow a deductive approach: using the metaphor of a tennis tournament we show that binomial heaps arise naturally through a number of logical steps. Haskell supports the deductive style of presentation very well: new types are introduced at ease, algorithms can be expressed clearly and succinctly, and Haskell's type classes allow to capture common algorithmic patterns. The paper aims at the level of an undergraduate student who has experience in reading and writing Haskell programs, and who is familiar with the concept of a priority queue. 2 Priority queues