package orsetto
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=81283687ce3204263bc955a332dd7b90bf5b648a990c01160f33aaa77d80962f
md5=7346293aa013c2a8974c6fb7c521166a
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.