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

Is stack a dynamic data structure?

890


What is different between array and list?

922


Can a binary tree be empty?

921


How would you dynamically allocate a one-dimensional and two-dimensional array of integers?

982


How does a treemap sort?

829


Which is better stack or queue?

853


What are the properties of an algorithm?

1014


What is adt example?

1009


Which one is the simplest sorting in data structure?

1054


Does set allow null values?

843


What does arraylist remove return?

910


If I try to add enum constants to a treeset, what sorting order will it use?

1149


Are hash tables ordered?

896


What is bubble sort and selection sort?

966


Why linked list is required?

843