Treffer: Functional Pearl: Explaining binomial heaps

Title:
Functional Pearl: Explaining binomial heaps
Authors:
Publication Year:
2016
Collection:
Oxford University Research Archive (ORA)
Document Type:
Fachzeitschrift article in journal/newspaper
Language:
unknown
DOI:
10.1017/S0956796899003317
Rights:
info:eu-repo/semantics/embargoedAccess
Accession Number:
edsbas.7CDAECA1
Database:
BASE

Weitere Informationen

Functional programming languages are an excellent tool for teaching algorithms and data structures. This paper explains binomial heaps, a beautiful data structure for priority queues, using the functional programming language Haskell. 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.