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

Differentiate between singly and doubly linked lists?

1054


Define a priority queue?

1199


How do you find the size of an arraylist?

880


What is a reverse linked list.

1103


What is the difference between data types and data structures?

999


What is the difference between arrays sort and collections sort?

840


How can we delete the first node from the singly linked list?

1026


What do you mean by quadratic probing?

1010


How do you access the values within an array?

1121


What is difference between capacity and size of arraylist?

1122


Why hashtable is faster than arraylist?

1004


Is char array null terminated?

933


Why do we use binary search?

973


What is the difference between Array and Arraylist?

1155


How to show internal storage representation of data structure in RDBM?

1043