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

Which is faster hashmap or treemap?

831


What is pivot in quicksort?

839


What is a string or array type?

762


Why use a tuple instead of a list?

806


What is the default size of arraylist?

903


Explain the term tail recursion?

949


Why it is important to have aligned addresses? What is the exception generated when there is a misaligned address?

838


Is merge sort better than quick?

845


Define an abstract data type (adt)?

915


Differentiate between list and map.

969


Can you distinguish between ArrayList and Array?

1013


State the merit of linked representation of binary trees?

876


Does hashmap maintain insertion order?

870


What do you mean by secondary clustering?

883


Why is sorting necessary?

801