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 there any difference between int[] a and int a[]?

1065


What is mean by sorting?

834


What is data type explain?

1033


How do you find the time complexity of a bubble sort?

795


Explain binary search tree?

906


What is the difference between 1d and 2d array?

902


What are the properties of binary tree?

868


What do you mean by open addressing?

919


Which is faster hashmap or linkedhashmap?

860


What is queue example?

856


What is the difference between hashset and linkedhashset?

935


What is the difference between hashset and hashmap?

975


Why do we need a data structure?

926


How will you reverse Linked List.

846


What is the difference between data types and data structures?

856