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 needed in a
sequential search to determine the position of an element in
an array of 100 elements, if the elements are ordered from
largest to smallest?

Answer Posted / dj

Answer is log n (base 2), Maximum camparision required to
search the array of 100 elments is 8. ( modified binary
search)

Is This Answer Correct ?    10 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List out the advantages of using a linked list?

850


What is the difference between null and void?

943


Which is the parent class of abstractsequentiallist class?

932


How is a queue works?

954


How can I learn data structures?

932


how to add an item to the beginning of the list?

970


Which is better hashmap or arraylist?

1000


Which type of memory allocation is referred for linked list?

1189


What do you know about the big-o notation and can you give some examples with respect to different data structures?

923


What is a property class?

1005


Why do we use dynamic arrays?

861


Explain what are the major data structures used in the rdbms?

961


Define primary clustering?

933


What are the operations that can be performed on a stack?

913


Define data type and what are the types of data type?

889