package orsetto
Install
Dune Dependency
Authors
Maintainers
Sources
sha512=9b654edb663ae697563f150824047052f3b1bf760398f24bce6350553f031f73c46b6337239a1acd871e61238597ea92046809e3358290ff14d6ba671b449085
doc/orsetto.cf/Cf_bsearch_data/index.html
Module Cf_bsearch_data
Data structures founded on sorted vectors.
Overview
This module implements some useful data structures, e.g. sets and maps, on the foundation of a general abstraction of a vector initialized with totally ordered values in sorted order.
Signatures
module Vector : sig ... end
This module contains the signature of a random-access vector containing data accessible at constant order cost for any index. Distinguished instances of the signature include char
type values in string
type vectors and int
type values in int array
vectors.
module Table : sig ... end
This module contains the signature of a search table comprising a vector of data sorted in multiplicative binary search order and an ancillary vector of adjustments for searching the final rank of the tree. Distinguished instances are provided for table searchable by char
, int
and string
values.
module Set : sig ... end
This module contains the signature of an immutable set constructed from a binary search table of containing elements of the set. Distinguished instances are provided for tables of char
and int
type values.
module Map : sig ... end
This module contains the signature of an immutable map constructed from a binary search table of containing key elements of the map and an co-domain array of the co-domain elements. Distinguished instances are provided for maps from char
and int
type values.