In linear search, we start searching of value from start until the value is not found or end of file. If it is, then you can stop searching and report that you have found the record.
Serial searching is excellent if your records are unordered.
Compared to a binary search, serial searching is a very easy to implement.
Serial searching isn’t very efficient. That's because it takes lots of comparisons to find a particular record in big files, compared to binary searching. It takes longer on average to find a record in a big file compared to binary searching.
Example: For a file of size 2^20, there are 2^20 comparisons required in worst case.
Compared to a linear search, binary searching is a very efficient.
Example: For a file of size 2^20, there are 20 comparisons required in worst case.
Comparisons required: log(2^20) = 20.
Binary searching cannot be applied on the unordered array.
It is little complex to write binary search compare to linear search.