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 ?    50 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between ienumerable and list?

635


Does hashmap maintain insertion order?

699


Define depth and height of a node?

689


Which interfaces are implemented by abstractsequentiallist?

674


How do I push an element into a stack?

634


How will you explain circular linked list?

693


Can we add heterogeneous elements into treemap?

718


What is mean by selection sort?

665


What do you mean by overflow and underflow?

696


What is the time complexity of arrays sort?

652


How remove all from arraylist?

649


What is hashing technique?

702


State the difference between arrays and linked lists?

717


Which interfaces are implemented by abstractqueue?

687


What are linked lists most commonly used for?

653