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
What are the Control levels in internal tables?
What are the user groups?
what next in SAP-ABAP/4 is it going to be change?
What are the events used for logical database?
What will happen when we use fully buffered in abap?
What is a table pool? : abap data dictionary
What is the difference between getting and get late?
What are the main uses of the primary key?
What are data classes? What are the various data classes available for selection? : abap data dictionary
What is the maximum number of structures that can be included in a table or structure : abap data dictionary
How can you manipulate the presentation and attributes of interactive lists?
Is it possible to pass data to and from include programs explicitly?
Difference between BDC vs Direct Loads?
How did you test the form you developed? How did you taken print?
How do you set up background jobs in sap? What are the steps? What are the events driven batch jobs?