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 / ntrphanikumar

100 comparisions

since element is not there and the data is unordered we need
to compare with each and every element

Is This Answer Correct ?    46 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we search the data in a linked list?

506


What is difference between hashmap and linkedhashmap?

466


What is 1d array?

474


Differentiate between file and structure storage structure.

515


What is the height of binary tree?

511






Is it possible to insert different type of elements in a stack? How?

537


How do we find duplicate elements in an array?

561


Which is the parent class of deque class?

503


List the applications of queues?

501


What is the minimum number of queues needed when implementing a priority queue?

545


Does mentioning the array name gives the base address in all the contexts?

781


How to find if linked list has loop?

662


Does arraylist contain duplicates?

483


List out the disadvantages of using a linked list?

521


What are AVL trees?

576