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
Why do we need to code a loop statement in both the pbo and pai events for each table in the screen?
How can one distinguish between different kinds of parameters? : abap modularization
How many lists can a program can produce?
What is an “on request field” statement?
What are the functional modules used in sequence in bdc? : abap hr
How to create a button in selection screen ?
What is the master data necessary before you can start posting in MM?
What is abap dictionary or data dictionary? What is the transaction to access abap dictionary? : abap data dictionary
What is the maximum number of structures that can be included in a table or structure
What is a sequence of event-triggered in report?
Search help exit details.
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
What are the basic objects of the data dictionary? : abap data dictionary
Can a constructor be redefined?
Setting up a BDC program where you find information from?