WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center

BinarySearch [l,k]

searches sorted list l for key k and gives the position of l containing k, if k is present in l. Otherwise, if k is absent in l, the function returns where k falls between the elements of l in positions and .

BinarySearch [l,k,f]

gives the position of k in the list obtained from l by applying f to each element in l.

Details and Options
Details and Options Details and Options
See Also
Tech Notes
Related Guides
Combinatorica`
Combinatorica`

BinarySearch

BinarySearch [l,k]

searches sorted list l for key k and gives the position of l containing k, if k is present in l. Otherwise, if k is absent in l, the function returns where k falls between the elements of l in positions and .

BinarySearch [l,k,f]

gives the position of k in the list obtained from l by applying f to each element in l.

Details and Options

See Also

SelectionSort

Tech Notes

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /