Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Avarage number of comparision will be (N+1)/2(N-size of
array).
Because:If elements is in 1st position no of cpmparision
will be one and if the element is in the last position then
no of comparisions will be N.

Is This Answer Correct ?    31 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can array store heterogeneous data?

836


What type of algorithm is binary search?

838


What are arrays used for?

963


What is bubble sort and quick sort?

948


Which sorting is used in collections sort?

876


What is array sort?

886


Why would we use dynamically allocated arrays vs vectors?

882


What is the difference between null and void?

950


What is the difference between sorting and classifying?

937


What are the properties of an algorithm?

1023


What are different types of sorting algorithms?

1004


What is the best complexity of bubble sort?

921


How many sorting are there in data structure?

883


What is the complexity of sorting algorithm?

887


Which interfaces are implemented by printerstatereasons?

902