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

what is the difference b/w linear search and binary search?
(how can these search)

Answer Posted / jeyachandran.p

Binary search is an efficient search compared to linear
search.Binary search requires sorted array while linear
search operates on unsorted array.

In binary search ,we looks through half of the list i.e
the element to be search is compared with mid value, if it
equals to mid value,search operation is over.otherwise if
the search element is smaller we have to search in the first
half of the list else we have to look in second half of the
list.

But linear search or sequential search requires an complete
search over the list.As far as ,Binary search is very best
in time and efficiency.It requires O[log n} times but linear
search requires O[n]times.

Is This Answer Correct ?    14 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is logical database? : abap hr

1043


SAP query how to use end users?

2193


HI GUYS , FOR SAP INSTITUTION ATOS I BEST OR NOT? IAM PLANNING TO LEARN SAP COURSE IN ATOS... GIVE ME UR SUGGESTION ABOT ATOS?

2840


Which infotype records can not be deleted ? : abap hr

1090


What are different abap/4 editors?

1092


Where can you find error log for call transaction? : abap bdc

1257


what are the various types of parameters and how are they distinguished from one another?

1209


Explain the difference between tables and structures?

981


Can a constructor be declared private? If yes then in which scenario?

1415


wht is the diff. b/n initialization and lotus of event

1935


How to eliminate duplicate entries in internal tables?

1162


To find the date difference & excude saturday & sunday in between them

2025


Can any tell me ECC 5.0, ECC 6.0 Released year? and difference between them?

2492


Differentiate between report and dialog program

1071


How do you read files from the presentation server ? : abap bdc

1093