Science, asked by dd288300, 8 months ago

Compare linear and binary search with sutibale example​

Answers

Answered by shanvisharma
2

Answer:

Linear search and binary search are the two methods which are used in arrays for searching the elements.

binary search takes less time to search an element from the sorted list of elements. So it is inferred that efficiency of binary search method is greater than linear search.

there is a prerequisite for the binary search, i.e., the elements must be sorted while in linear search there is no such prerequisite.

HOPE IT HELPED U DUDE.✌️✌️

Similar questions