What is linear search in data structure?
Answers
Answered by
0
Linear search is used to find a specific character or number in an array
Answered by
0
It is basically a algorithm in which we break the array in two parts but most important thing is that you must have a sorted list of array then this algorithm works so I was saying you have to break the array in two parts then search for first half if you are lucky then you will get the number or character you are searching but if you have get nothing then search for other half this is taken as time saving way. Otherwise simple search in array take more time.
Similar questions