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 type of algorithm is binary search?

837


How would you swap the Kth node from beginning with Kth node from end in a Linked List.

927


Define the term “percolate down”?

999


What is a map in programming?

890


Is vector synchronized?

922


Can we insert null in hashset?

1072


Is it possible to make an array volatile in java?

920


How does a hashtable work?

888


Does arraylist have a tostring?

886


Which sorting is best for large data?

932


Where will be the free node available while inserting a new node in a linked list?

924


What is selection sort with example?

979


Why arraylist is not efficient for manipulation?

864


What is meant by binary tree traversal?

975


How do you sort an array by value?

858