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

What thread means?

861


Are hash tables ordered?

864


What is sorting an array?

875


Define graph traversals?

954


Which sorting method is slowest?

926


Which sorting technique is faster?

857


Which method will arrange the element of an array in alphabetical order?

1963


Is copyonwritearraylist thread safe?

826


What are the two traversal strategies used in traversing a graph?

933


Calculate the efficiency of sequential search?

900


Differentiate between arraylist and linkedlist.

1066


Which list does not allow duplicates?

840


Which is the simplest file structure?

972


Define a queue?

959


What is comparable interface?

921