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

How is a hashset implemented?

877


Is array immutable?

846


What is stack in geography?

811


Explain binary tree traversals?

861


Tell me about circular linked list?

886


Which is more efficient merge sort vs quicksort?

804


Why quicksort is better than merge sort?

860


Which is better selection or bubble sort?

819


How many types of arrays are there in visual basic?

869


What is non linear data structure with example?

876


What is the difference between null and void pointer in data structures?

1105


What is difference between hashmap and map?

979


What is impact of signed numbers on the memory using data structures?

977


Is hashmap synchronized?

945


Write an algorithm through which the inserting and deleting of elements can take place in circular queue?

1036