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

What is array and its types?

956


What is comparable interface?

935


Who created quicksort?

962


Does arraylist shrink?

868


How to use appendNode() in linkedlist()?

1075


What do you mean by secondary clustering?

921


What do you mean by back edge?

1050


What are the different types of hash functions?

932


Which sorting algorithm is best for large data?

862


Does treeset remove duplicates?

907


Define graph?

1093


What are the types of queues?

1078


Explain different methods in which you can traverse a tree?

885


Define an abstract data type (adt)?

958


What is a b+ tree? Explain its uses.

940