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 / shailesh pratapwar

The avrage case complexity of any linear search alogrithm is
n/2.
So we need 50 comparisons to search in 100 elements.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define graph?

1167


What are control structures?

1003


What is an ordered map?

968


What is difference between linear and non linear data structure?

1245


What is difference between arraylist and list?

991


Name few classes that implement collection interface?

974


What is difference between list and array?

976


Does hashset maintain order?

975


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

973


How do you find the height of a binary tree?

942


What is the difference between array list and vector list?

956


Which interfaces are implemented by abstractsequentiallist?

961


What is the minimum number of queues needed when implementing a priority queue?

1055


What is stack and queue in data structure?

986


What is the difference between ienumerable and list?

918