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 two-dimensional array?

909


How does a selection sort work for an array?

850


What is data structure geeksforgeeks?

1190


What does sorting an array do?

886


What is merge sort in daa?

820


What is the difference between data type and data structure?

809


Why do we use arrays?

862


Is null allowed in list?

805


Define secondary clustering?

856


Which is faster hashmap or treemap?

831


How can I learn data structures?

879


Define Data Structures?

914


What do you understand by doubly linked list?

859


Why we need cursor implementation of linked lists?

938


What is the difference between length () and size () of arraylist?

839