Differentiate between Binary Search and Linear search??
Answers
Hey mate!!!
The differences between linear search and binary search are as follows:
1) linear search works on sorted and unsorted data items whereas binary search takes olace oy on sorted data items that is in ascending or descending order.
2) the search begings at the start of an array that is from the 0th position. Whereas in binary search an array is divided into halves and then the desired data item is searched either in the first half or in the second half.
Hope this helps you
Mark as brainliest.
Hey mate!!!
The differences between linear search and binary search are as follows:
1) linear search works on sorted and unsorted data items whereas binary search takes olace oy on sorted data items that is in ascending or descending order.
2) the search begings at the start of an array that is from the 0th position. Whereas in binary search an array is divided into halves and then the desired data item is searched either in the first half or in the second half.
Hope this helps you
Mark as brainliest.