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 / ntrphanikumar

100 comparisions

since element is not there and the data is unordered we need
to compare with each and every element

Is This Answer Correct ?    50 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How hashmap increases its size?

1060


How do stacks work?

979


Two linked lists are given, find out the sum of them without altering the linked list?

1013


Difference between arrays and linked list?

993


Define an algorithm. What are the properties of an algorithm? What are the types of algorithms?

968


What is the height of an empty tree?

1010


How does the bubble sort work?

983


Which interface provides the capability to store objects using a key-value pair?

1163


Why do we use insertion sort?

902


Describe queue operation.

1036


Is array a data structure?

1066


Tell me can the size of operator be used to tell the size of an array passed to a function?

1049


How is the front of the queue calculated ?

1254


Can we apply binary search algorithm to a sorted linked list, why?

991


How do you sort an array in descending order?

924