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

Which is better merge sort or quick sort?

806


How do you determine if a binary tree is height balanced?

905


Explain Array

912


Can we extend an array after initialization?

994


List out a few of the applications that make use of Multilinked Structures?

1116


What is queue in data structure?

906


Is boolean a data type?

890


What are the difference between malloc() and calloc()?

938


How do you empty an arraylist?

911


What are the advantage of collection classes over arrays?

856


What is the difference between array and stack?

984


What is difference between tree and binary tree?

927


What do you mean by double hashing?

1002


Can value be null in treemap?

841


What are the advantages of stack?

800