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

Answer Posted / indrani chowdhury

1.linear search is easy bt takes more time to search an
element as it compare all element sequentially...
2.elements r arranged randomly.

1. in binary search it start searching from middle, if the
searching element is not found in middle then it goes to
1/4,and vice versa..
and hence take less time than linear search.
2.elements r arranged in sorted orrder.

Is This Answer Correct ?    17 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When you prefer lsmw?

594


What is the difference between RETURNING and CHANGING parameters for a method?

1008


What is the difference between a dialog program and a report?

561


What are the different abap/4 editors?

579


In what ways we can get the context sensitive f1 help on a field?

600






What are function modules?

582


What is Group by in Select statement?

655


Is it possible to pass data to and from include programs explicitly?

588


What is ole?

684


What is client in the sap system? : sap abap hr

575


what will happen if called program is not executable ?

1701


Can we create field without data element? If yes, how?

696


How to eliminate duplicate entries in internal tables? : abap data dictionary

790


Explain the function module in bdc?

582


Define abap/4 layer?

764