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 in a sequential
search?

Answer Posted / kalyani

Searching an element in an array, the search starts from the first element till the last element the average number of comparisons in a sequential search is (N+1)/2,where N is the size. The number of comparisons will be 1, if element is in the first position and if element is in the last position the number of comparisons will be N.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define linked lists?

970


What is the difference between adt and data structure?

1083


Can arraylist store primitives?

993


Define articulation point?

1201


write a program to accept name & sort them?

961


What is difference between set and map?

1076


Why is sorting and classifying important?

893


In an avl tree, at explain what condition the balancing is to be done?

1000


What is weight balanced tree in data structure?

944


What is raid (redundant array of inexpensive disks)?

1038


Which sorting method is slowest?

1003


In rdbms, explain what is the efficient data structure used in the internal storage representation?

999


What do you mean by structure property in a heap?

1126


Can we add duplicate keys in a hashmap?

959


Will arraylist maintain insertion order?

967