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

100

Is This Answer Correct ?    18 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of sorting?

516


Given an array of integers, devise a program to replace every element with the next greatest element on the right side in the array. Also, replace the last element with 5 as there no element on the right side of it.

567


What are the 3 control structures in programming?

504


What actions are performed when a function is called?

573


What is the use of substring?

467






How many pointers are necessary to implement a simple linked list?

687


What is the most used data structure?

464


Run time memory allocation is known as ?

564


Which list does not allow duplicates?

509


What are the different data structures?

518


Which sorting algorithm is considered the fastest?

599


Differentiate between iterable and iterator.

675


How do you get placements?

474


Which is better selection or bubble sort?

496


Does treemap sort on key or value?

491