What is the average number of comparisons needed in a
sequential search to determine the position of an element in
an array of 100 elements, if the elements are ordered from
largest to smallest?

Answer Posted / shyam

see
http://www.cs.odu.edu/~cmo/classes/msim602/studyGuide/ch10.doc.

for details..

the fact that the array is already sorted does not affect
the number of comparisons ..

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is linear-logarithm chasm?

537


Why is sorting important?

470


How many sorting are there in data structure?

487


What is data structure definition?

487


What is different between array and list?

482






Why hashtable is faster than arraylist?

533


What is hash data type?

527


What are three common types of traversals?

449


What are scalar values?

492


How to sequentially represent max-heap?

517


What is ds tree?

512


What do you mean by primary clustering?

562


What is sorting and its types?

510


How do you find the number of comparisons in bubble sort?

508


What is array and string?

473