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

Why null is allowed in hashmap?

883


What type of algorithm is binary search?

841


Which is faster hashmap or linkedhashmap?

918


Is json a data structure?

938


What are different methods of collision resolution in hashing.

950


Why do we need linked lists?

938


How does linkedhashset work internally?

967


Which interfaces are implemented by printerstatereasons?

905


Explain binary representation?

885


Can you dynamically allocate arrays in expanded memory?

1044


What is an object array?

947


What is a list in data structure?

955


What are the Advantages and disadvantages of Array?

1156


Explain the priority queue?

975


What are the differences between b tree and b+ tree?

919