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 / bipin from utkal university mc

suppose there are five element 23,56,78,12,90
minimum time require means searching element present at
first so it takes only one comparison
maximum time require means searching element present at
last so it takes n No. of comparison(here 5 )

so avarage comarison=(1+n)/2

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we insert null in hashset?

1029


Which is the parent class of hashmap class?

1097


Explain Array

926


What is 1d array?

899


What is a string or array type?

784


What is example of data?

1041


What are the average and worst time complexity in a sorted binary tree is

942


what is the difference between dynamic as well as non - dynamic data structures.

926


Is arraylist fail fast?

904


What is data type and its types?

892


What do you mean by data types?

917


Which is better merge or quick sort?

909


If we add enum constants to a sorted collection ( treemap , treeset ), what will be the order in which they will be maintained?

927


List out the advantages of using a linked list?

829


Define an algorithm. What are the properties of an algorithm? What are the types of algorithms?

883