Computes the minimal elements of a partially ordered set.
Computes the minimal elements of a partially ordered set. If the poset contains multiple copies of a minimal element, the function will only return a single copy of it.
Works by constructing the set of minimal elements for the first k elements of the poset, for k = 1 .. length.
With n is the size of the poset and w <= n its width, the algorithm requires O(w) space and O(w*n) time.
Performs a binary search, returns an index using the same convention as java.
Performs a binary search, returns an index using the same convention as java.util.Arrays.binarySearch.
Performs a binary search, returns an index using the same convention as java.
Performs a binary search, returns an index using the same convention as java.util.Arrays.binarySearch.
Performs a binary search, returns an index using the same convention as java.
Performs a binary search, returns an index using the same convention as java.util.Arrays.binarySearch.
Performs a binary search, returns an index using the same convention as java.
Performs a binary search, returns an index using the same convention as java.util.Arrays.binarySearch.