Journal of Functional Programming · 2001 · 65 citations · 9 references
ComputingComputer ScienceData StructuresProgramming LanguagesSyntaxAbstract Syntax TreesData TypesFunctional ProgrammingType CheckingType SystemsDatatypes TheoryFunctional Data StructuresPolymorphic TypesRecursive TypesRed-black TreesType Polymorphism
Chris Okasaki showed how to implement red-black trees in a functional programming language. Ralf Hinze incorporated even the invariants of such data structures into their types, using higher-order nested datatypes. We show how one can achieve something very similar without the usual performance penalty of such types, by combining the features of nested datatypes, phantom types and existential type variables.
9
V. J. Rayward‐Smith, Thomas H. Cormen, Charles E. Leiserson et al. · Journal of the Operational Research Society · 1991 · 17K citations
Symmetric binary B-Trees: Data structure and maintenance algorithms
Rudolf Bayer · Acta Informatica · 1972 · 496 citations
Calling hell from heaven and heaven from hell
Sigbjørn Finne, Daan Leijen, Erik Meijer et al. · 1999 · 79 citations
Red-black trees in a functional setting
Chris Okasaki · Journal of Functional Programming · 1999 · 74 citations · Full text