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 events used for logical database?
What is the meaning of abap editor integrated with abap data dictionary? : abap data dictionary
Explain the advantages and disadvantages of different types of bdc's?
what is 3 tire architecture and how does SAP utilizes this architecture. and how do netweaver came into picture?
What is the last entry in all bdc tables? : abap bdc
What is help view?
Explain what is a foreign key relationship? Explain this with the help of an example.
How do you use structures in the abap programs?
What is For-period and In-period
What are the different attributes that can be assigned to a variant?
What data is contained? : abap data dictionary
Explain enhancements
Explain the Types of Select statements?
How can we access the correction and transport system?
what precautions or prerequisites do you follow to update a record into database table and how