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

(n+1)/2
here n= 100
so (100+1)/2
then 50.5 answer

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to traverse data in a linked list in forward and backward direction, write the algorithm?

923


How do you find the height of a binary tree?

895


Which type of sorting is best?

933


What are the operations that can be performed on a stack?

919


Which is better selection or bubble sort?

887


Draw the B-tree of order 3 created by inserting the following data arriving in sequence – 92 24 6 7 11 8 22 4 5 16 19 20 78

1623


What are the advantages of merge sort?

843


What is map entry?

888


What is modcount in hashmap?

895


Tell me what should be done in the base case for this recursive problem?

894


What is an array vs list?

868


Is treemap synchronized?

925


What do you mean by the term “percolate up”?

955


What is minimum depth of binary tree?

973


Explain the most efficient method to reverse a linked list?

862