What is the average number of comparisons needed in a
sequential search to determine the position of an element in
an array of 100 elements, if the elements are ordered from
largest to smallest?

Answer Posted / abhishek chakladar

though average number of comparison of sequential search is (N+1)/2 then in the question N=100 so that the answer will be (100+1)/2
=101/2
=50.5

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by 2-3-4 tree?

567


How do you sort a list in reverse order?

474


Why merge sort is better than insertion sort?

476


Explain binary searching, Fibonacci search.

548


What is binary tree and its types?

497






What are the properties of binary tree?

513


What is time complexity of bubble sort?

461


What is a matrix?

551


What is the best case complexity of bubble sort?

486


What is definition list?

520


What is hashing technique? Describe in brief.

523


What do you mean by linear probing?

594


What is advantage and disadvantage of linked list?

460


Explain what is linear search?

581


If you do not initialize an array what will happen?

598