What is Linear Search in Data Structure?
/ July 21, 2018

The study of data structures for facilitating rapid searching is a fascinating subject of both practical and theoretical interest. Sorting and Searching are two fundamental operations in a computer science. Sorting means arranging on data in given order such that increment or decrement. Searching means find out location or find out an element of a given item in a collection of item. Searching element is any type of a numerical data, alphabet, String, character data. Every searching algorithm depends on specific problem, property of data and algorithm complexity. A search algorithm is the step by step procedure used to locate specific data among the collections of data. Searching is considered as the most fundamental procedure in computer science. When the data is to be searched, the difference between a fast application and a slower one lies in the use of proper search algorithms. Definition of Linear Search Linear search, also known as sequential search, is a process that checks every element in the list sequentially until the desired element is found. The computational complexity for linear search is O(n), making it generally much less efficient than binary search (O(log n)). Linear search (sequential search) is the most simple approach to…

Insert math as
$${}$$