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 object in oop?

1099


What are the benefits of oop?

1230


What is abstraction in oops?

1021


Is abstract thinking intelligence?

1030


What is the purpose of enum?

998


What are constructors in oop?

1151


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

2305


Can a varargs method be overloaded?

1084


What makes a language oop?

1033


What is constructor overloading in oop?

1117


What is abstraction example?

1082


Why is abstraction needed?

1023


What are the types of abstraction?

1055


is there any choice in opting subjects like 4 out of 7

2164


How to improve object oriented design skills?

996