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 are the types of sorting?

481


Define forest?

555


How do I rearrange rows in numbers?

467


Is binary tree balanced?

476


What are the 3 types of measurement?

544






Define rehashing?

616


What is bitonic search?

559


Can we insert null in set?

477


What is the Difference between sax and dom parser?

570


Which interfaces are implemented by enumset?

501


Define collision in hashing?

496


What is garbage collection in data structure?

496


What is the difference between collections class vs collections interface?

536


Is hashmap synchronized?

509


What is complete binary tree in data structure?

517