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

Explain linear linked implementation of Stack and Queue?

1121


What are the difference between arraylist and linkedlist from the perspective of sorting?

1051


Draw the B-tree of order 3 created by inserting the following data arriving in sequence – 92 24 6 7 11 8 22 4 5 16 19 20 78

1690


Explain binary tree traversals?

989


Define terminal nodes in a tree?

1099


Draw a binary Tree for the expression : A * B - (C + D) * (P / Q)

1479


List the data structures which are used in hierarchical data model.

1019


Can you use Bubble Sort To sort the number of elements.

923


When would you use a tuple?

907


Who invented data structure?

1150


Explain recursive function & what is the data structures used to perform recursion?

1103


Complete structure of hashmap, very detail description, along with the basic coding of the hashmap internal implementation.

1159


Which language is best to learn data structures?

1051


Why hashmap is faster than hashset?

1068


Does mentioning the array name gives the base address in all the contexts?

1466