binary-search: Binary and exponential searches
This package provides varieties of binary search functions. c.f. Numeric.Search for the examples.
These search function can search for pure and monadic predicates, of type:
pred :: Eq b => a -> b pred :: (Eq b, Monad m) => a -> m b
The predicates must satisfy that the domain range for any codomain value
is continuous; that is,
∀x≦y≦z. pred x == pred z ⇒ pred y == pred x .
For example, we can address the problem of finding the boundary of an upward-closed set of integers, using a combination of exponential and binary searches.
Variants are provided
for searching within bounded and unbounded intervals of
Integer and bounded integral types.
The package was created by Ross Paterson, and extended by Takayuki Muranushi, to be used together with SMT solvers.
The Module Structure
Numeric.Search provides the generic search combinator, to search for pure and monadic predicates.
|Versions [faq]||0.0, 0.1, 0.9, 1.0, 22.214.171.124, 126.96.36.199, 188.8.131.52|
|Dependencies||base (>=4.8 && <5), containers (>=0.4 && <0.6) [details]|
|Author||Ross Paterson <email@example.com>, Takayuki Muranushi <firstname.lastname@example.org>|
|Maintainer||Takayuki Muranushi <email@example.com>|
|Revised||Revision 1 made by HerbertValerioRiedel at Sun Nov 27 16:06:16 UTC 2016|
|Source repo||head: git clone https://github.com/nushio3/binary-search|
|Uploaded||by TakayukiMuranushi at Wed Jan 20 06:28:22 UTC 2016|
|Distributions||LTSHaskell:184.108.40.206, NixOS:220.127.116.11, Stackage:18.104.22.168|
|Downloads||4766 total (147 in the last 30 days)|
|Rating||(no votes yet) [estimated by rule of succession]|
Docs uploaded by user
Build status unknown [no reports yet]
- binary-search-1.0.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
For package maintainers and hackage trustees