Computer Science, asked by deeksha912, 1 year ago

Differentiate between Binary Search and Linear search??​

Answers

Answered by Anonymous
9

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.

Answered by dkdivyanshkrishna341
0

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.

Similar questions