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...

should we use linear search or binary search if elements
are placed in random order or mixed?in both cases? i need a
little bit detail ans?thnks

Answer Posted / indira

We have to use Linear Search only when elms r in random or
mixed .
In order to use Binary Search u have to sort these elems
whose order of complexity is n2.
so its better to use linear search whose complexity is of o(n)

Is This Answer Correct ?    14 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is balance factor?

1017


What is the main feature of oop?

1098


What is pointer in oop?

969


Can we create object of interface?

1064


How to use CMutex, CSemaphore in VC++ MFC

4737


What are the 3 principles of oop?

1054


What is destructor give example?

1012


What is a function in oop?

1019


Can you inherit a private class?

1058


What does <> mean pseudocode?

1114


What is object in oop with example?

1177


Advantage and disadvantage of routing in telecom sector

1249


Why do we use class in oops?

914


What is oops concept with example?

968


Who invented oop?

1064