what is the difference b/w linear search and binary search?
(how can these search)
Answer Posted / prabhjot singh
1.linear search is easy bt takes more time to search an
element as it compare all element sequentially...
2.elements r arranged randomly.
1. in binary search it start searching from middle, if the
searching element is not found in middle then it goes to
1/4,and vice versa..
and hence take less time than linear search.
2.elements r arranged in sorted orrder.
| Is This Answer Correct ? | 32 Yes | 9 No |
Post New Answer View All Answers
What is abap dictionary or data dictionary? What is the transaction to access abap dictionary? : abap data dictionary
How do you use structures in the abap programs?
Why do we use types statement in abap programming?
Why we are using Macros instead of Function Modules
What are the different functions used in sap script? What are the parameters used in each function?
What is a function group? : abap modularization
What is size category?
What is erp? : sap abap hr
Suppose the client wants me the vacancy to be displayed on a website as well as ess. How should I do it? : sap abap hr
What is an abap dictionary? : abap data dictionary
Specify the types of data dictionary objects.
How many ways you can create table? : abap data dictionary
If a table that is to be extended contains a long field, we cannot use append structures why? : abap data dictionary
Difference between open sql and native sql? : abap data dictionary
What are conditional chain statement?