Give difference between linear search and binary search
If you don't know please don't answer
Answers
Answered by
11
Answer:
◆Linear search is an algorithm to find an element in a list by sequentially checking the elements of the list until finding the matching element.
◆Binary search is an algorithm that finds the position of a target value within a sorted array.
Thus, this is the main difference between linear search and binary search.
FOLLOW ME!!
#Sara❤️
MARK AS BRAINLIEST ✌️✌️✌️
Answered by
4
Answer:
mark me as brainliest
Explanation:
Linear search:It is a method of finding an element within a list
Binary search:It compares the target value to the middle element of the array
please follow me
mark me as brainliest ❤❤❤❤❤
Similar questions
Science,
5 months ago
Social Sciences,
5 months ago
Chemistry,
5 months ago
Hindi,
10 months ago
Math,
10 months ago