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

What do you mean by breadth first search (bfs)?

933


What do you mean by structure property in a heap?

1019


Define Data Structures?

918


Name few concurrent collection classes?

856


Can we search the data in a linked list?

875


What is heap tree in data structure?

859


Is hashmap a collection?

852


What sort of serious problems have you experienced, and how have you handled them?

902


What is complexity of bubble sort?

821


Can we insert null in hashset?

992


What are three common types of traversals?

912


What is collections singletonlist?

822


What are the advantages and disadvantages of copyonwritearraylist?

1072


What method is used to place a value onto the top of a stack?

974


In what order the elements of a hashset are retrieved?

899