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 are th control break events in abap?
please any one can tell me How to validate the data in Table maintinance generator?how can u validate the table field values if u r entering the data into fields .it shows record is wrong?wher we can done validation in table maitenance generator before getting the data as out ?
How do you find number of records present in internal table?
What are the two methods for modifying sap standard tables?
What functions does a data dictionary perform ?
What are the differences between table and structure in data dictionary?
In a loop of an internal table, what is the use of at first & at last statements?
What is the difference between Check and Continue?
Event handling in oops
Explain the disadvantages of abap query tool?
What is the logo in sap script?
Is a logical database a requirement/must to write an abap/4 query?
What is table buffer?
What is the difference between call transaction and session method? : abap bdc
What are the two ways for restricting the value range for a domain? : sap abap data dictionary