The element being searched for is not found in an array of
100 elements. What is the average number of comparisons
needed in a sequential search to determine that the element
is not there, if the elements are completely unordered?

Answer Posted / pankaj

(sum of all 1 to 100) - (sum of given numbers)= number missing
for this no comparison required

Is This Answer Correct ?    4 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between tree and forest?

510


What is an recursive algorithm?

521


Run time memory allocation is known as in data structure?

526


What are binary trees?

581


Why concurrenthashmap is fail safe?

511






What is the difference between Array and LinkedList?

558


What is the use of sorting the data?

545


What is the best case complexity of quicksort?

509


What are the two types of data?

475


Explain what is B-tree?

556


What is advantage and disadvantage of linked list?

454


What is red black tree in data structure?

511


What is the types of data structure?

479


Write the steps involved in the insertion and deletion of an element in the stack.

902


What is a pass in bubble sort?

485