Find a element in an array of size 'n' in not more than n/2 operations using linear search algorithm | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Find a element in an array of size 'n' in not more than n/2 operations using linear search algorithm

Can anyone help me with this?

26th Mar 2020, 10:55 AM
Manan Bedi
Manan Bedi - avatar
1 Answer
+ 2
https://www.gatevidyalay.com/linear-search-searching-algorithms/. With linear search algorithm you need up to n operations. You can only achieve less operations if not using linear search
29th Mar 2020, 2:47 PM
Alexander Thiem
Alexander Thiem - avatar