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 is a 'z' report?
What two statements would be used to exchange data between programs using abap memory?
what is 3 tire architecture and how does SAP utilizes this architecture. and how do netweaver came into picture?
Name some data dictionary objects?
What has to be done to the packed fields before submitting to a BDC session.
What are the advantages of logical databases?
Can we set page headers to details lists?
What is the tcode for sapscript forms?
How to write a bdc – how do you go about it?
What are the disadvantages of different types of bdc's?
Can i Have Some Realtime Examples on Badi ?
How can you manipulate the presentation and attributes of interactive lists?
Event handling in oops
How to combine multiple order in one Delivery ( Step by Step)?
What is projection view?