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...

The element being searched for is not found in an array of
100 elements. What is the average number of comparisons
needed in a sequential search to determine that the element
is not there, if the elements are completely unordered?

Answer Posted / pankaj

(sum of all 1 to 100) - (sum of given numbers)= number missing
for this no comparison required

Is This Answer Correct ?    4 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the order of selection sort?

805


Define an algorithm. What are the types of algorithms?

1011


What is the need for path compression?

1084


Why use a tuple instead of a list?

862


What is the height of an empty tree?

949


State the merit of linked representation of binary trees?

927


What is bubble insertion selection sort?

860


Will this code give error if I try to add two heterogeneous elements in the arraylist? And why?

948


Does hashmap allow duplicate keys?

1000


What are the types of linked list?

900


What is a map in programming?

883


How to fill element (initialize at once) in an array?

1014


What is array traversing?

887


Explain the uses of b+ tree.

920


What is frozenset?

899