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 / ruchi baghel

it require n comparison where n=position of the element


if element is on 50th position
we just require 50 comparison bcz it is sequential search
one by one

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What actions are performed when a function returns?

988


What is the difference between list and arraylist?

994


What's the difference between an array and vector?

938


What is space complexity of a program?

938


What is sort function?

942


Mention the steps to insert data at the starting of a singly linked list?

1018


Does list allow null values?

982


What is array simple?

982


Why might quick sort might be better than merge sort?

1069


What are arrays used for?

1009


What are some of the best practices relating to the java collection framework?

956


What is array indexing?

1071


What is the difference between hashset and hashtable?

1001


What is map keyset?

930


How to find the missing element in integer array of 1 to 7?

1007