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

What are different types of sorting techniques?

936


Define depth and height of a node?

923


Is priority queue sorted?

971


What is a bubble sort and how do you perform it?

1014


Can we insert null in list?

896


What is time complexity of hashmap?

1092


What is a minimum spanning tree?

1073


What is the procedure to insert into a sorted array?

985


What are the advantages and disadvantages of copyonwritearraylist?

1130


How do you find the second largest element in an array of integers?

1051


how to display Singly Linked List from First to Last?

896


Why is hashmap faster?

929


What is heap and its types?

973


How will you free the memory that is allocated at run time?

976


How is bubble sort done?

852