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 / abhishek chakladar

though average number of comparison of sequential search is (N+1)/2 then in the question N=100 so that the answer will be (100+1)/2
=101/2
=50.5

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can someone display singly linked list from first to last?

801


How do you declare A pointer to array of three chars

942


What are three common types of traversals?

910


Which sorting algorithm has minimum number of swaps?

838


What are basic algorithms?

852


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

901


Can we put null value in hashmap?

816


Can hashset contain null?

950


What is adt in data structure with example?

958


What is a data structure? What are the types of data structures? Briefly explain them

906


What is the best sorting technique?

879


How do I sort a hashmap key?

818


What is the order of b tree?

887


Is selection sort greedy?

829


What is a hash index?

825