~~~ Search algorithm ~~~
Title: What is Search algorithm?, Explain Search algorithm, Define Search algorithm
Created on: 2018-10-24
Source Link: https://en.wikipedia.org/wiki/Search_...
------
Description: In computer science, a search algorithm is any algorithm which solves the search problem, namely, to retrieve information stored within some data structure, or calculated in the search space of a problem domain. Examples of such structures include but are not limited to a linked list, an array data structure, or a search tree. The appropriate search algorithm often depends on the data structure being searched, and may also include prior knowledge about the data. Searching also encompasses algorithms that query the data structure, such as the SQL SELECT command. Search algorithms can be classified based on their mechanism of searching. Linear search algorithms check every record for the one associated with a target key in a linear fashion. Binary, or half interval searches, repeatedly target the center of the search structure and divide the search space in half. Comparison search algorithms improve on linear searching by successively eliminating records based on comparisons of the keys until the target record is found, and can be applied on data structures with a defined order. Digital search algorithms work based on the properties of digits in data structures that use numerical keys. Finally, hashing directly maps keys to records based on a hash function. Searches outside a linear search require that the data be sorted in some way. Search functions are also evaluated on the basis of their complexity, or maximum theoretical run time. Binary search functions, for example, have a maximum complexity of O, or logarithmic time. This means that the maximum number of operations needed to find the search target is a logarithmic function of the size of the search space.
------
To see your favorite topic here, fill out this request form: https://docs.google.com/forms/d/e/1FA...
------
Source: Wikipedia.org articles, adapted under https://creativecommons.org/licenses/... license.
Support: Donations can be made from https://wikimediafoundation.org/wiki/... to support Wikimedia Foundation and knowledge sharing.