> For the complete documentation index, see [llms.txt](https://alex-myznikov.gitbook.io/adsjs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alex-myznikov.gitbook.io/adsjs/api/searches.md).

# Searches

Algorithms for identification of a single element on a linear collection of arbitrary elements according to the specified rules.

Import alias `'ads-js/searches'`

### Table of contents

[Binary search](/adsjs/api/searches/binarysearch.md) - implementation of a search algorithm on a sorted array which looks up for the specified value by repeatedly dividing the search interval in half.

[Quick select](/adsjs/api/searches/quickselect.md) - implementation of a selection algorithm on an unsorted array related to the quicksort sorting algorithm which finds the nth smallest element in O(n) average time.
