The binary-search package
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||0.0, 0.1, 0.9, 1.0, 18.104.22.168, 22.214.171.124, 126.96.36.199|
|Dependencies||base (>=4.5 && <5), containers (>=0.4), transformers [details]|
|Author||Ross Paterson <firstname.lastname@example.org>, Takayuki Muranushi <email@example.com>|
|Maintainer||Takayuki Muranushi <firstname.lastname@example.org>|
|Source repository||head: git clone https://github.com/nushio3/binary-search|
|Uploaded||Fri Jan 22 01:28:44 UTC 2016 by TakayukiMuranushi|
|Distributions||LTSHaskell:188.8.131.52, NixOS:184.108.40.206, Stackage:220.127.116.11, Tumbleweed:18.104.22.168|
|Downloads||2579 total (373 in the last 30 days)|
|Rating||(no votes yet) [estimated by rule of succession]|
|Status||Docs available [build log]
Last success reported on 2016-10-27 [all 1 reports]
Hackage Matrix CI
For package maintainers and hackage trustees