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 modification assistant?
1.If there is one receiver,then To send 10 materials at a time through BD10 tcode, How many Master Idoc create? 2.If there is one receiver,then To send 1 material at a time through BD10 tcode, how many Master Idoc generated? 3.Can I Send Multiple Messges through BD10 tcode?
Define abap/4 layer?
Can you print decimals in type n?
What are dml commands in abap?
What is the meaning of client independent?
What is append search help? : sap abap data dictionary
any one can tell me which is the tables can store in ddic plese dont say db02l,please give me different ways of resideing the tables ?
What are the events used in abap in the order of execution?
How can we determine a vendor is Bloc/Unblock from the table LFA1?
Can a constructor be redefined?
What is an abap instance?
What happens if a function module runs in an update task? : abap modularization
How do you set up background jobs in sap?
What is projection view?