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 / anupama singh

| Binary search | Linear search |
-------------------------------------------------------------------------------------------------------------------------
1).Data must be in a sorted order | 1).Data any order
2).Time complexity is O(log n) | 2).Time complexity is O(n).
3).Only 1 "When" condition used | 3).Any no. of "When" condition used
4).Only "=" relation operator is used | 4).any relation operator is used
5).Access is faster | 5).Access is slow
6).Only single dimensional array used | 6).single/multi dimensional array used

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need to code a loop statement in both the pbo and pai events for each table in the screen?

1148


How can one distinguish between different kinds of parameters? : abap modularization

1144


How many lists can a program can produce?

1118


What is an “on request field” statement?

1261


What are the functional modules used in sequence in bdc? : abap hr

1178


How to create a button in selection screen ?

2054


What is the master data necessary before you can start posting in MM?

1324


What is abap dictionary or data dictionary? What is the transaction to access abap dictionary? : abap data dictionary

1018


What is the maximum number of structures that can be included in a table or structure

1115


What is a sequence of event-triggered in report?

1152


Search help exit details.

1344


How do you send files to the legacy systems from sap and vice versa? How does one know that the legacy files have come on to the sap server you are working on? : abap bdc

1136


What are the basic objects of the data dictionary? : abap data dictionary

1123


Can a constructor be redefined?

1425


Setting up a BDC program where you find information from?

1268