package orsetto
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=151ca6df499bd3de7aa89a4e1627411fbee24c4dea6e0e71ce21f06f181ee654
md5=00393728b481c2bf15919a8202732335
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.